Lines Matching refs:gctx
186 struct atom_context *gctx = ctx->ctx; in atom_get_src_int() local
195 idx += gctx->reg_block; in atom_get_src_int()
196 switch (gctx->io_mode) { in atom_get_src_int()
198 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int()
207 if (!(gctx->io_mode & 0x80)) { in atom_get_src_int()
211 if (!gctx->iio[gctx->io_mode & 0x7F]) { in atom_get_src_int()
213 gctx->io_mode & 0x7F); in atom_get_src_int()
217 atom_iio_execute(gctx, in atom_get_src_int()
218 gctx->iio[gctx->io_mode & 0x7F], in atom_get_src_int()
238 val = gctx->divmul[0]; in atom_get_src_int()
241 val = gctx->divmul[1]; in atom_get_src_int()
244 val = gctx->data_block; in atom_get_src_int()
247 val = gctx->shift; in atom_get_src_int()
250 val = 1 << gctx->shift; in atom_get_src_int()
253 val = ~(1 << gctx->shift); in atom_get_src_int()
256 val = gctx->fb_base; in atom_get_src_int()
259 val = gctx->io_attr; in atom_get_src_int()
262 val = gctx->reg_block; in atom_get_src_int()
272 if (gctx->data_block) in atom_get_src_int()
273 DEBUG("ID[0x%04X+%04X]", idx, gctx->data_block); in atom_get_src_int()
277 val = U32(idx + gctx->data_block); in atom_get_src_int()
282 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
284 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
287 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
323 val = gctx->card->pll_read(gctx->card, idx); in atom_get_src_int()
330 val = gctx->card->mc_read(gctx->card, idx); in atom_get_src_int()
456 struct atom_context *gctx = ctx->ctx; in atom_put_dst() local
467 idx += gctx->reg_block; in atom_put_dst()
468 switch (gctx->io_mode) { in atom_put_dst()
471 gctx->card->reg_write(gctx->card, idx, in atom_put_dst()
474 gctx->card->reg_write(gctx->card, idx, val); in atom_put_dst()
483 if (!(gctx->io_mode & 0x80)) { in atom_put_dst()
487 if (!gctx->iio[gctx->io_mode & 0xFF]) { in atom_put_dst()
489 gctx->io_mode & 0x7F); in atom_put_dst()
492 atom_iio_execute(gctx, gctx->iio[gctx->io_mode & 0xFF], in atom_put_dst()
508 gctx->divmul[0] = val; in atom_put_dst()
511 gctx->divmul[1] = val; in atom_put_dst()
514 gctx->data_block = val; in atom_put_dst()
517 gctx->shift = val; in atom_put_dst()
523 gctx->fb_base = val; in atom_put_dst()
526 gctx->io_attr = val; in atom_put_dst()
529 gctx->reg_block = val; in atom_put_dst()
538 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
540 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
542 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
549 gctx->card->pll_write(gctx->card, idx, val); in atom_put_dst()
555 gctx->card->mc_write(gctx->card, idx, val); in atom_put_dst()