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()
241 val = gctx->divmul[0]; in atom_get_src_int()
244 val = gctx->divmul[1]; in atom_get_src_int()
247 val = gctx->data_block; in atom_get_src_int()
250 val = gctx->shift; in atom_get_src_int()
253 val = 1 << gctx->shift; in atom_get_src_int()
256 val = ~(1 << gctx->shift); in atom_get_src_int()
259 val = gctx->fb_base; in atom_get_src_int()
262 val = gctx->io_attr; in atom_get_src_int()
265 val = gctx->reg_block; in atom_get_src_int()
278 if (gctx->data_block) in atom_get_src_int()
279 DEBUG("ID[0x%04X+%04X]", idx, gctx->data_block); in atom_get_src_int()
283 val = U32(idx + gctx->data_block); in atom_get_src_int()
288 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
290 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
293 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
329 val = gctx->card->pll_read(gctx->card, idx); in atom_get_src_int()
336 val = gctx->card->mc_read(gctx->card, idx); in atom_get_src_int()
461 struct atom_context *gctx = ctx->ctx; in atom_put_dst() local
472 idx += gctx->reg_block; in atom_put_dst()
473 switch (gctx->io_mode) { in atom_put_dst()
476 gctx->card->reg_write(gctx->card, idx, in atom_put_dst()
479 gctx->card->reg_write(gctx->card, idx, val); in atom_put_dst()
488 if (!(gctx->io_mode & 0x80)) { in atom_put_dst()
492 if (!gctx->iio[gctx->io_mode & 0xFF]) { in atom_put_dst()
494 gctx->io_mode & 0x7F); in atom_put_dst()
497 atom_iio_execute(gctx, gctx->iio[gctx->io_mode & 0xFF], in atom_put_dst()
517 gctx->divmul[0] = val; in atom_put_dst()
520 gctx->divmul[1] = val; in atom_put_dst()
523 gctx->data_block = val; in atom_put_dst()
526 gctx->shift = val; in atom_put_dst()
532 gctx->fb_base = val; in atom_put_dst()
535 gctx->io_attr = val; in atom_put_dst()
538 gctx->reg_block = val; in atom_put_dst()
551 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
553 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
555 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
562 gctx->card->pll_write(gctx->card, idx, val); in atom_put_dst()
568 gctx->card->mc_write(gctx->card, idx, val); in atom_put_dst()