/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgp102.c | 43 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp102_grctx_generate_attrib() local 44 const u32 alpha = grctx->alpha_nr; in gp102_grctx_generate_attrib() 45 const u32 attrib = grctx->attrib_nr; in gp102_grctx_generate_attrib() 46 const u32 gfxp = grctx->gfxp_nr; in gp102_grctx_generate_attrib() 48 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gp102_grctx_generate_attrib() 76 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gp102_grctx_generate_attrib() 88 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp102_grctx_generate_attrib_cb_size() local 89 u32 size = grctx in gp102_grctx_generate_attrib_cb_size() [all...] |
H A D | ctxgm20b.c | 29 const struct gf100_grctx_func *grctx = gr->func->grctx; in gm20b_grctx_generate_main() local 39 grctx->attrib_cb(chan, chan->attrib_cb->addr, grctx->attrib_cb_size(gr)); in gm20b_grctx_generate_main() 40 grctx->attrib(chan); in gm20b_grctx_generate_main() 42 grctx->unkn(gr); in gm20b_grctx_generate_main() 68 grctx->pagepool(chan, chan->pagepool->addr); in gm20b_grctx_generate_main() 69 grctx->bundle(chan, chan->bundle_cb->addr, grctx->bundle_size); in gm20b_grctx_generate_main()
|
H A D | ctxgk20a.c | 32 const struct gf100_grctx_func *grctx = gr->func->grctx; in gk20a_grctx_generate_main() local 42 grctx->attrib_cb(chan, chan->attrib_cb->addr, grctx->attrib_cb_size(gr)); in gk20a_grctx_generate_main() 43 grctx->attrib(chan); in gk20a_grctx_generate_main() 45 grctx->unkn(gr); in gk20a_grctx_generate_main() 65 grctx->pagepool(chan, chan->pagepool->addr); in gk20a_grctx_generate_main() 66 grctx->bundle(chan, chan->bundle_cb->addr, grctx->bundle_size); in gk20a_grctx_generate_main()
|
H A D | ctxgp100.c | 45 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp100_grctx_generate_attrib() local 46 const u32 alpha = grctx->alpha_nr; in gp100_grctx_generate_attrib() 47 const u32 attrib = grctx->attrib_nr; in gp100_grctx_generate_attrib() 49 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gp100_grctx_generate_attrib() 71 bo += grctx->attrib_nr_max * gr->ppc_tpc_max; in gp100_grctx_generate_attrib() 74 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gp100_grctx_generate_attrib() 95 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp100_grctx_generate_attrib_cb_size() local 96 u32 size = grctx in gp100_grctx_generate_attrib_cb_size() [all...] |
H A D | ctxgf100.c | 1035 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf100_grctx_generate_attrib() local 1036 const u32 attrib = grctx->attrib_nr; in gf100_grctx_generate_attrib() 1047 bo += grctx->attrib_nr_max; in gf100_grctx_generate_attrib() 1062 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf100_grctx_generate_attrib_cb_size() local 1064 return 0x20 * (grctx->attrib_nr_max + grctx->alpha_nr_max) * gr->tpc_total; in gf100_grctx_generate_attrib_cb_size() 1305 const struct gf100_grctx_func *func = gr->func->grctx; in gf100_grctx_generate_floorsweep() 1346 const struct gf100_grctx_func *grctx in gf100_grctx_generate_main() local 1438 const struct gf100_grctx_func *grctx = gr->func->grctx; gf100_grctx_generate() local [all...] |
H A D | ctxgv100.c | 65 const struct gf100_grctx_func *grctx = gr->func->grctx; in gv100_grctx_generate_attrib() local 66 const u32 alpha = grctx->alpha_nr; in gv100_grctx_generate_attrib() 67 const u32 attrib = grctx->attrib_nr; in gv100_grctx_generate_attrib() 68 const u32 gfxp = grctx->gfxp_nr; in gv100_grctx_generate_attrib() 70 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gv100_grctx_generate_attrib() 96 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gv100_grctx_generate_attrib()
|
H A D | ctxgf117.c | 247 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf117_grctx_generate_attrib() local 248 const u32 alpha = grctx->alpha_nr; in gf117_grctx_generate_attrib() 249 const u32 beta = grctx->attrib_nr; in gf117_grctx_generate_attrib() 253 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gf117_grctx_generate_attrib() 270 bo += grctx->attrib_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib() 272 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
|
H A D | ctxgm107.c | 881 const struct gf100_grctx_func *grctx = chan->gr->func->grctx; in gm107_grctx_generate_bundle() local 882 const u32 state_limit = min(grctx->bundle_min_gpm_fifo_depth, size / 0x20); in gm107_grctx_generate_bundle() 883 const u32 token_limit = grctx->bundle_token_limit; in gm107_grctx_generate_bundle() 903 const struct gf100_grctx_func *grctx = gr->func->grctx; in gm107_grctx_generate_attrib() local 904 const u32 alpha = grctx->alpha_nr; in gm107_grctx_generate_attrib() 905 const u32 attrib = grctx->attrib_nr; in gm107_grctx_generate_attrib() 908 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gm107_grctx_generate_attrib() 926 bo += grctx in gm107_grctx_generate_attrib() [all...] |
H A D | gf100.c | 429 if (gr->func->grctx->unknown_size) { in gf100_gr_chan_new() 471 gr->func->grctx->pagepool(chan, chan->pagepool->addr); in gf100_gr_chan_new() 472 gr->func->grctx->bundle(chan, chan->bundle_cb->addr, gr->func->grctx->bundle_size); in gf100_gr_chan_new() 473 gr->func->grctx->attrib_cb(chan, chan->attrib_cb->addr, gr->func->grctx->attrib_cb_size(gr)); in gf100_gr_chan_new() 474 gr->func->grctx->attrib(chan); in gf100_gr_chan_new() 475 if (gr->func->grctx->patch_ltc) in gf100_gr_chan_new() 476 gr->func->grctx->patch_ltc(chan); in gf100_gr_chan_new() 477 if (gr->func->grctx in gf100_gr_chan_new() 1833 const struct gf100_grctx_func *grctx = gr->func->grctx; gf100_gr_init_ctxctl_int() local [all...] |
H A D | gp10b.c | 66 .grctx = &gp100_grctx,
|
H A D | gp104.c | 54 .grctx = &gp104_grctx,
|
H A D | gp107.c | 56 .grctx = &gp107_grctx,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgp100.c | 35 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gp100_grctx_generate_pagepool() local 37 const int b = mmio_vram(info, grctx->pagepool_size, (1 << s), true); in gp100_grctx_generate_pagepool() 48 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp100_grctx_generate_attrib() local 49 const u32 alpha = grctx->alpha_nr; in gp100_grctx_generate_attrib() 50 const u32 attrib = grctx->attrib_nr; in gp100_grctx_generate_attrib() 53 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gp100_grctx_generate_attrib() 59 size += grctx->attrib_nr_max * gr->ppc_nr[gpc] * gr->ppc_tpc_max; in gp100_grctx_generate_attrib() 83 bo += grctx in gp100_grctx_generate_attrib() [all...] |
H A D | ctxgm20b.c | 28 const struct gf100_grctx_func *grctx = gr->func->grctx; in gm20b_grctx_generate_main() local 38 grctx->attrib(info); in gm20b_grctx_generate_main() 40 grctx->unkn(gr); in gm20b_grctx_generate_main() 66 grctx->pagepool(info); in gm20b_grctx_generate_main() 67 grctx->bundle(info); in gm20b_grctx_generate_main()
|
H A D | ctxgk20a.c | 31 const struct gf100_grctx_func *grctx = gr->func->grctx; in gk20a_grctx_generate_main() local 41 grctx->attrib(info); in gk20a_grctx_generate_main() 43 grctx->unkn(gr); in gk20a_grctx_generate_main() 63 grctx->pagepool(info); in gk20a_grctx_generate_main() 64 grctx->bundle(info); in gk20a_grctx_generate_main()
|
H A D | ctxgf100.c | 1042 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gf100_grctx_generate_bundle() local 1044 const int b = mmio_vram(info, grctx->bundle_size, (1 << s), true); in gf100_grctx_generate_bundle() 1046 mmio_wr32(info, 0x408008, 0x80000000 | (grctx->bundle_size >> s)); in gf100_grctx_generate_bundle() 1048 mmio_wr32(info, 0x41880c, 0x80000000 | (grctx->bundle_size >> s)); in gf100_grctx_generate_bundle() 1054 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gf100_grctx_generate_pagepool() local 1056 const int b = mmio_vram(info, grctx->pagepool_size, (1 << s), true); in gf100_grctx_generate_pagepool() 1067 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf100_grctx_generate_attrib() local 1367 const struct gf100_grctx_func *grctx = gr->func->grctx; gf100_grctx_generate_main() local 1438 const struct gf100_grctx_func *grctx = gr->func->grctx; gf100_grctx_generate() local [all...] |
H A D | ctxgp102.c | 43 const struct gf100_grctx_func *grctx = gr->func->grctx; in gp102_grctx_generate_attrib() local 44 const u32 alpha = grctx->alpha_nr; in gp102_grctx_generate_attrib() 45 const u32 attrib = grctx->attrib_nr; in gp102_grctx_generate_attrib() 46 const u32 gfxp = grctx->gfxp_nr; in gp102_grctx_generate_attrib() 49 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gp102_grctx_generate_attrib() 55 size += grctx->gfxp_nr * gr->ppc_nr[gpc] * gr->ppc_tpc_max; in gp102_grctx_generate_attrib() 85 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gp102_grctx_generate_attrib()
|
H A D | ctxgf117.c | 247 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf117_grctx_generate_attrib() local 248 const u32 alpha = grctx->alpha_nr; in gf117_grctx_generate_attrib() 249 const u32 beta = grctx->attrib_nr; in gf117_grctx_generate_attrib() 250 const u32 size = 0x20 * (grctx->attrib_nr_max + grctx->alpha_nr_max); in gf117_grctx_generate_attrib() 256 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gf117_grctx_generate_attrib() 274 bo += grctx->attrib_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib() 276 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
|
H A D | ctxgv100.c | 65 const struct gf100_grctx_func *grctx = gr->func->grctx; in gv100_grctx_generate_attrib() local 66 const u32 alpha = grctx->alpha_nr; in gv100_grctx_generate_attrib() 67 const u32 attrib = grctx->attrib_nr; in gv100_grctx_generate_attrib() 68 const u32 gfxp = grctx->gfxp_nr; in gv100_grctx_generate_attrib() 70 u32 size = grctx->alpha_nr_max * gr->tpc_total; in gv100_grctx_generate_attrib() 76 size += grctx->gfxp_nr * gr->ppc_nr[gpc] * gr->ppc_tpc_max; in gv100_grctx_generate_attrib() 103 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gv100_grctx_generate_attrib()
|
H A D | ctxgm107.c | 881 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gm107_grctx_generate_bundle() local 882 const u32 state_limit = min(grctx->bundle_min_gpm_fifo_depth, in gm107_grctx_generate_bundle() 883 grctx->bundle_size / 0x20); in gm107_grctx_generate_bundle() 884 const u32 token_limit = grctx->bundle_token_limit; in gm107_grctx_generate_bundle() 886 const int b = mmio_vram(info, grctx->bundle_size, (1 << s), true); in gm107_grctx_generate_bundle() 888 mmio_wr32(info, 0x408008, 0x80000000 | (grctx->bundle_size >> s)); in gm107_grctx_generate_bundle() 890 mmio_wr32(info, 0x418e28, 0x80000000 | (grctx->bundle_size >> s)); in gm107_grctx_generate_bundle() 897 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gm107_grctx_generate_pagepool() local 912 const struct gf100_grctx_func *grctx = gr->func->grctx; gm107_grctx_generate_attrib() local [all...] |
H A D | ctxgk104.c | 877 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gk104_grctx_generate_bundle() local 878 const u32 state_limit = min(grctx->bundle_min_gpm_fifo_depth, in gk104_grctx_generate_bundle() 879 grctx->bundle_size / 0x20); in gk104_grctx_generate_bundle() 880 const u32 token_limit = grctx->bundle_token_limit; in gk104_grctx_generate_bundle() 882 const int b = mmio_vram(info, grctx->bundle_size, (1 << s), true); in gk104_grctx_generate_bundle() 884 mmio_wr32(info, 0x408008, 0x80000000 | (grctx->bundle_size >> s)); in gk104_grctx_generate_bundle() 886 mmio_wr32(info, 0x41880c, 0x80000000 | (grctx->bundle_size >> s)); in gk104_grctx_generate_bundle() 893 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gk104_grctx_generate_pagepool() local [all...] |
H A D | ctxgf108.c | 739 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf108_grctx_generate_attrib() local 740 const u32 alpha = grctx->alpha_nr; in gf108_grctx_generate_attrib() 741 const u32 beta = grctx->attrib_nr; in gf108_grctx_generate_attrib() 742 const u32 size = 0x20 * (grctx->attrib_nr_max + grctx->alpha_nr_max); in gf108_grctx_generate_attrib() 748 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gf108_grctx_generate_attrib() 764 bo += grctx->attrib_nr_max; in gf108_grctx_generate_attrib() 766 ao += grctx->alpha_nr_max; in gf108_grctx_generate_attrib()
|
H A D | gp10b.c | 63 .grctx = &gp100_grctx,
|
H A D | gp104.c | 51 .grctx = &gp104_grctx,
|
H A D | gp107.c | 53 .grctx = &gp107_grctx,
|