Lines Matching refs:gr

866 	const struct gf100_grctx_func *grctx = info->gr->func->grctx;  in gm107_grctx_generate_bundle()
883 const struct gf100_grctx_func *grctx = info->gr->func->grctx; in gm107_grctx_generate_pagepool()
898 struct gf100_gr *gr = info->gr; in gm107_grctx_generate_attrib() local
899 const struct gf100_grctx_func *grctx = gr->func->grctx; in gm107_grctx_generate_attrib()
905 const int b = mmio_vram(info, size * gr->tpc_total, (1 << s), access); in gm107_grctx_generate_attrib()
908 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gm107_grctx_generate_attrib()
917 for (gpc = 0; gpc < gr->gpc_nr; gpc++) { in gm107_grctx_generate_attrib()
918 for (ppc = 0; ppc < gr->ppc_nr[gpc]; ppc++, n++) { in gm107_grctx_generate_attrib()
919 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
920 const u32 bs = attrib * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
925 bo += grctx->attrib_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
928 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
935 gm107_grctx_generate_tpcid(struct gf100_gr *gr) in gm107_grctx_generate_tpcid() argument
937 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_grctx_generate_tpcid()
941 for (gpc = 0; gpc < gr->gpc_nr; gpc++) { in gm107_grctx_generate_tpcid()
942 if (tpc < gr->tpc_nr[gpc]) { in gm107_grctx_generate_tpcid()
949 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c08), gr->tpc_nr[gpc]); in gm107_grctx_generate_tpcid()
950 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c8c), gr->tpc_nr[gpc]); in gm107_grctx_generate_tpcid()
956 gm107_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info) in gm107_grctx_generate_main() argument
958 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_grctx_generate_main()
959 const struct gf100_grctx_func *grctx = gr->func->grctx; in gm107_grctx_generate_main()
962 gf100_gr_mmio(gr, grctx->hub); in gm107_grctx_generate_main()
963 gf100_gr_mmio(gr, grctx->gpc); in gm107_grctx_generate_main()
964 gf100_gr_mmio(gr, grctx->zcull); in gm107_grctx_generate_main()
965 gf100_gr_mmio(gr, grctx->tpc); in gm107_grctx_generate_main()
966 gf100_gr_mmio(gr, grctx->ppc); in gm107_grctx_generate_main()
973 grctx->unkn(gr); in gm107_grctx_generate_main()
975 gm107_grctx_generate_tpcid(gr); in gm107_grctx_generate_main()
976 gf100_grctx_generate_r406028(gr); in gm107_grctx_generate_main()
977 gk104_grctx_generate_r418bb8(gr); in gm107_grctx_generate_main()
978 gf100_grctx_generate_r406800(gr); in gm107_grctx_generate_main()
985 nvkm_wr32(device, 0x405b00, (gr->tpc_total << 8) | gr->gpc_nr); in gm107_grctx_generate_main()
987 gk104_grctx_generate_rop_active_fbps(gr); in gm107_grctx_generate_main()
989 gf100_gr_icmd(gr, grctx->icmd); in gm107_grctx_generate_main()
991 gf100_gr_mthd(gr, grctx->mthd); in gm107_grctx_generate_main()