Lines Matching refs:gpc
1063 int gpc, tpc; in gf100_grctx_generate_attrib() local
1070 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gf100_grctx_generate_attrib()
1071 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib()
1072 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib()
1088 int gpc, tpc, id; in gf100_grctx_generate_tpcid() local
1091 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gf100_grctx_generate_tpcid()
1092 if (tpc < priv->tpc_nr[gpc]) { in gf100_grctx_generate_tpcid()
1093 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); in gf100_grctx_generate_tpcid()
1094 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x4e8), id); in gf100_grctx_generate_tpcid()
1095 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gf100_grctx_generate_tpcid()
1096 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x088), id); in gf100_grctx_generate_tpcid()
1100 nv_wr32(priv, GPC_UNIT(gpc, 0x0c08), priv->tpc_nr[gpc]); in gf100_grctx_generate_tpcid()
1101 nv_wr32(priv, GPC_UNIT(gpc, 0x0c8c), priv->tpc_nr[gpc]); in gf100_grctx_generate_tpcid()
1122 int gpc, tpc, i; in gf100_grctx_generate_r4060a8() local
1127 gpc = -1; in gf100_grctx_generate_r4060a8()
1130 gpc = (gpc + 1) % priv->gpc_nr; in gf100_grctx_generate_r4060a8()
1131 } while (!tpcnr[gpc]); in gf100_grctx_generate_r4060a8()
1132 tpcnr[gpc]--; in gf100_grctx_generate_r4060a8()
1133 data[tpc] = gpc; in gf100_grctx_generate_r4060a8()
1146 int gpc, tpc, i; in gf100_grctx_generate_r418bb8() local
1151 gpc = -1; in gf100_grctx_generate_r418bb8()
1154 gpc = (gpc + 1) % priv->gpc_nr; in gf100_grctx_generate_r418bb8()
1155 } while (!tpcnr[gpc]); in gf100_grctx_generate_r418bb8()
1156 tpcnr[gpc]--; in gf100_grctx_generate_r418bb8()
1158 data[tpc / 6] |= gpc << ((tpc % 6) * 5); in gf100_grctx_generate_r418bb8()
1203 int gpc, tpc; in gf100_grctx_generate_r406800() local
1207 for (gpc = 0; gpc < priv->gpc_nr; gpc++) in gf100_grctx_generate_r406800()
1208 tpc_mask |= ((1ULL << priv->tpc_nr[gpc]) - 1) << (gpc * 8); in gf100_grctx_generate_r406800()
1210 for (i = 0, gpc = -1, b = -1; i < 32; i++) { in gf100_grctx_generate_r406800()
1215 gpc = (gpc + 1) % priv->gpc_nr; in gf100_grctx_generate_r406800()
1216 } while (!tpcnr[gpc]); in gf100_grctx_generate_r406800()
1217 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; in gf100_grctx_generate_r406800()
1219 tpc_set |= 1ULL << ((gpc * 8) + tpc); in gf100_grctx_generate_r406800()
1239 gf100_gr_mmio(priv, oclass->gpc); in gf100_grctx_generate_main()
1378 .gpc = gf100_grctx_pack_gpc,