Lines Matching refs:idx

180 	uint32_t idx, val = 0xCDCDCDCD, align, arg;  in atom_get_src_int()  local
186 idx = U16(*ptr); in atom_get_src_int()
189 DEBUG("REG[0x%04X]", idx); in atom_get_src_int()
190 idx += gctx->reg_block; in atom_get_src_int()
193 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int()
217 idx, 0); in atom_get_src_int()
221 idx = U8(*ptr); in atom_get_src_int()
225 val = get_unaligned_le32((u32 *)&ctx->ps[idx]); in atom_get_src_int()
227 DEBUG("PS[0x%02X,0x%04X]", idx, val); in atom_get_src_int()
230 idx = U8(*ptr); in atom_get_src_int()
233 DEBUG("WS[0x%02X]", idx); in atom_get_src_int()
234 switch (idx) { in atom_get_src_int()
263 val = ctx->ws[idx]; in atom_get_src_int()
267 idx = U16(*ptr); in atom_get_src_int()
271 DEBUG("ID[0x%04X+%04X]", idx, gctx->data_block); in atom_get_src_int()
273 DEBUG("ID[0x%04X]", idx); in atom_get_src_int()
275 val = U32(idx + gctx->data_block); in atom_get_src_int()
278 idx = U8(*ptr); in atom_get_src_int()
280 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
282 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
285 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
287 DEBUG("FB[0x%02X]", idx); in atom_get_src_int()
317 idx = U8(*ptr); in atom_get_src_int()
320 DEBUG("PLL[0x%02X]", idx); in atom_get_src_int()
321 val = gctx->card->pll_read(gctx->card, idx); in atom_get_src_int()
324 idx = U8(*ptr); in atom_get_src_int()
327 DEBUG("MC[0x%02X]", idx); in atom_get_src_int()
328 val = gctx->card->mc_read(gctx->card, idx); in atom_get_src_int()
453 val, idx; in atom_put_dst() local
462 idx = U16(*ptr); in atom_put_dst()
464 DEBUG("REG[0x%04X]", idx); in atom_put_dst()
465 idx += gctx->reg_block; in atom_put_dst()
468 if (idx == 0) in atom_put_dst()
469 gctx->card->reg_write(gctx->card, idx, in atom_put_dst()
472 gctx->card->reg_write(gctx->card, idx, val); in atom_put_dst()
494 idx, val); in atom_put_dst()
498 idx = U8(*ptr); in atom_put_dst()
500 DEBUG("PS[0x%02X]", idx); in atom_put_dst()
501 ctx->ps[idx] = cpu_to_le32(val); in atom_put_dst()
504 idx = U8(*ptr); in atom_put_dst()
506 DEBUG("WS[0x%02X]", idx); in atom_put_dst()
507 switch (idx) { in atom_put_dst()
533 ctx->ws[idx] = val; in atom_put_dst()
537 idx = U8(*ptr); in atom_put_dst()
539 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
541 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
543 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
544 DEBUG("FB[0x%02X]", idx); in atom_put_dst()
547 idx = U8(*ptr); in atom_put_dst()
549 DEBUG("PLL[0x%02X]", idx); in atom_put_dst()
550 gctx->card->pll_write(gctx->card, idx, val); in atom_put_dst()
553 idx = U8(*ptr); in atom_put_dst()
555 DEBUG("MC[0x%02X]", idx); in atom_put_dst()
556 gctx->card->mc_write(gctx->card, idx, val); in atom_put_dst()
622 int idx = U8((*ptr)++); in atom_op_calltable() local
625 if (idx < ATOM_TABLE_NAMES_CNT) in atom_op_calltable()
626 SDEBUG(" table: %d (%s)\n", idx, atom_table_names[idx]); in atom_op_calltable()
628 SDEBUG(" table: %d\n", idx); in atom_op_calltable()
629 if (U16(ctx->ctx->cmd_table + 4 + 2 * idx)) in atom_op_calltable()
630 r = atom_execute_table_locked(ctx->ctx, idx, ctx->ps + ctx->ps_shift); in atom_op_calltable()
836 int idx = U8(*ptr); in atom_op_setdatablock() local
838 SDEBUG(" block: %d\n", idx); in atom_op_setdatablock()
839 if (!idx) in atom_op_setdatablock()
841 else if (idx == 255) in atom_op_setdatablock()
844 ctx->ctx->data_block = U16(ctx->ctx->data_table + 4 + 2 * idx); in atom_op_setdatablock()
1367 int idx = CU16(ctx->data_table + offset); in atom_parse_data_header() local
1374 *size = CU16(idx); in atom_parse_data_header()
1376 *frev = CU8(idx + 2); in atom_parse_data_header()
1378 *crev = CU8(idx + 3); in atom_parse_data_header()
1379 *data_start = idx; in atom_parse_data_header()
1387 int idx = CU16(ctx->cmd_table + offset); in atom_parse_cmd_header() local
1394 *frev = CU8(idx + 2); in atom_parse_cmd_header()
1396 *crev = CU8(idx + 3); in atom_parse_cmd_header()