Lines Matching refs:gpc
909 int gpc, ppc, n = 0; in gm107_grctx_generate_attrib() local
917 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gm107_grctx_generate_attrib()
918 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++, n++) { in gm107_grctx_generate_attrib()
919 const u32 as = alpha * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
920 const u32 bs = attrib * priv->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 += impl->attrib_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
928 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
937 int gpc, tpc, id; in gm107_grctx_generate_tpcid() local
940 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gm107_grctx_generate_tpcid()
941 if (tpc < priv->tpc_nr[gpc]) { in gm107_grctx_generate_tpcid()
942 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); in gm107_grctx_generate_tpcid()
943 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm107_grctx_generate_tpcid()
944 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x088), id); in gm107_grctx_generate_tpcid()
948 nv_wr32(priv, GPC_UNIT(gpc, 0x0c08), priv->tpc_nr[gpc]); in gm107_grctx_generate_tpcid()
949 nv_wr32(priv, GPC_UNIT(gpc, 0x0c8c), priv->tpc_nr[gpc]); in gm107_grctx_generate_tpcid()
961 gf100_gr_mmio(priv, oclass->gpc); in gm107_grctx_generate_main()
1011 .gpc = gm107_grctx_pack_gpc,