Lines Matching refs:gctx

184 	struct atom_context *gctx = ctx->ctx;  in atom_get_src_int()  local
193 idx += gctx->reg_block; in atom_get_src_int()
194 switch (gctx->io_mode) { in atom_get_src_int()
196 val = gctx->card->reg_read(gctx->card, idx); in atom_get_src_int()
205 if (!(gctx->io_mode & 0x80)) { in atom_get_src_int()
209 if (!gctx->iio[gctx->io_mode & 0x7F]) { in atom_get_src_int()
211 gctx->io_mode & 0x7F); in atom_get_src_int()
215 atom_iio_execute(gctx, in atom_get_src_int()
216 gctx->iio[gctx->io_mode & 0x7F], in atom_get_src_int()
239 val = gctx->divmul[0]; in atom_get_src_int()
242 val = gctx->divmul[1]; in atom_get_src_int()
245 val = gctx->data_block; in atom_get_src_int()
248 val = gctx->shift; in atom_get_src_int()
251 val = 1 << gctx->shift; in atom_get_src_int()
254 val = ~(1 << gctx->shift); in atom_get_src_int()
257 val = gctx->fb_base; in atom_get_src_int()
260 val = gctx->io_attr; in atom_get_src_int()
263 val = gctx->reg_block; in atom_get_src_int()
276 if (gctx->data_block) in atom_get_src_int()
277 DEBUG("ID[0x%04X+%04X]", idx, gctx->data_block); in atom_get_src_int()
281 val = U32(idx + gctx->data_block); in atom_get_src_int()
286 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
288 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
291 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
327 val = gctx->card->pll_read(gctx->card, idx); in atom_get_src_int()
334 val = gctx->card->mc_read(gctx->card, idx); in atom_get_src_int()
460 struct atom_context *gctx = ctx->ctx; in atom_put_dst() local
471 idx += gctx->reg_block; in atom_put_dst()
472 switch (gctx->io_mode) { in atom_put_dst()
475 gctx->card->reg_write(gctx->card, idx, in atom_put_dst()
478 gctx->card->reg_write(gctx->card, idx, val); in atom_put_dst()
487 if (!(gctx->io_mode & 0x80)) { in atom_put_dst()
491 if (!gctx->iio[gctx->io_mode & 0xFF]) { in atom_put_dst()
493 gctx->io_mode & 0x7F); in atom_put_dst()
496 atom_iio_execute(gctx, gctx->iio[gctx->io_mode & 0xFF], in atom_put_dst()
516 gctx->divmul[0] = val; in atom_put_dst()
519 gctx->divmul[1] = val; in atom_put_dst()
522 gctx->data_block = val; in atom_put_dst()
525 gctx->shift = val; in atom_put_dst()
531 gctx->fb_base = val; in atom_put_dst()
534 gctx->io_attr = val; in atom_put_dst()
537 gctx->reg_block = val; in atom_put_dst()
550 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
552 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
554 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
561 gctx->card->pll_write(gctx->card, idx, val); in atom_put_dst()
567 gctx->card->mc_write(gctx->card, idx, val); in atom_put_dst()