Lines Matching refs:gpc
1063 int gpc, tpc; in gf100_grctx_generate_attrib() local
1070 for (gpc = 0; gpc < gr->gpc_nr; gpc++) { in gf100_grctx_generate_attrib()
1071 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib()
1072 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib()
1089 int gpc, tpc, id; in gf100_grctx_generate_tpcid() local
1092 for (gpc = 0; gpc < gr->gpc_nr; gpc++) { in gf100_grctx_generate_tpcid()
1093 if (tpc < gr->tpc_nr[gpc]) { in gf100_grctx_generate_tpcid()
1094 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gf100_grctx_generate_tpcid()
1095 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), id); in gf100_grctx_generate_tpcid()
1096 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gf100_grctx_generate_tpcid()
1097 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gf100_grctx_generate_tpcid()
1101 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c08), gr->tpc_nr[gpc]); in gf100_grctx_generate_tpcid()
1102 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c8c), gr->tpc_nr[gpc]); in gf100_grctx_generate_tpcid()
1125 int gpc, tpc, i; in gf100_grctx_generate_r4060a8() local
1130 gpc = -1; in gf100_grctx_generate_r4060a8()
1133 gpc = (gpc + 1) % gr->gpc_nr; in gf100_grctx_generate_r4060a8()
1134 } while (!tpcnr[gpc]); in gf100_grctx_generate_r4060a8()
1135 tpcnr[gpc]--; in gf100_grctx_generate_r4060a8()
1136 data[tpc] = gpc; in gf100_grctx_generate_r4060a8()
1150 int gpc, tpc, i; in gf100_grctx_generate_r418bb8() local
1155 gpc = -1; in gf100_grctx_generate_r418bb8()
1158 gpc = (gpc + 1) % gr->gpc_nr; in gf100_grctx_generate_r418bb8()
1159 } while (!tpcnr[gpc]); in gf100_grctx_generate_r418bb8()
1160 tpcnr[gpc]--; in gf100_grctx_generate_r418bb8()
1162 data[tpc / 6] |= gpc << ((tpc % 6) * 5); in gf100_grctx_generate_r418bb8()
1208 int gpc, tpc; in gf100_grctx_generate_r406800() local
1212 for (gpc = 0; gpc < gr->gpc_nr; gpc++) in gf100_grctx_generate_r406800()
1213 tpc_mask |= ((1ULL << gr->tpc_nr[gpc]) - 1) << (gpc * 8); in gf100_grctx_generate_r406800()
1215 for (i = 0, gpc = -1, b = -1; i < 32; i++) { in gf100_grctx_generate_r406800()
1220 gpc = (gpc + 1) % gr->gpc_nr; in gf100_grctx_generate_r406800()
1221 } while (!tpcnr[gpc]); in gf100_grctx_generate_r406800()
1222 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gf100_grctx_generate_r406800()
1224 tpc_set |= 1ULL << ((gpc * 8) + tpc); in gf100_grctx_generate_r406800()
1245 gf100_gr_mmio(gr, grctx->gpc); in gf100_grctx_generate_main()
1391 .gpc = gf100_grctx_pack_gpc,