Lines Matching refs:gpc
909 int gpc, ppc, n = 0; in gm107_grctx_generate_attrib() local
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()
922 const u32 o = PPC_UNIT(gpc, ppc, 0); 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()
938 int gpc, tpc, id; in gm107_grctx_generate_tpcid() local
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()
943 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gm107_grctx_generate_tpcid()
944 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm107_grctx_generate_tpcid()
945 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); 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()
963 gf100_gr_mmio(gr, grctx->gpc); in gm107_grctx_generate_main()
1004 .gpc = gm107_grctx_pack_gpc,