/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | gk104.c | 204 int gpc, tpc, rop; gk104_gr_init() local 229 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { gk104_gr_init() 231 gpc = (gpc + 1) % priv->gpc_nr; gk104_gr_init() 232 } while (!tpcnr[gpc]); gk104_gr_init() 233 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gk104_gr_init() 243 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gk104_gr_init() 244 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), gk104_gr_init() 245 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); gk104_gr_init() 246 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | gk104_gr_init() 248 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); gk104_gr_init() 273 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gk104_gr_init() 274 nv_wr32(priv, GPC_UNIT(gpc, 0x3038), 0xc0000000); gk104_gr_init() 275 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); gk104_gr_init() 276 nv_wr32(priv, GPC_UNIT(gpc, 0x0900), 0xc0000000); gk104_gr_init() 277 nv_wr32(priv, GPC_UNIT(gpc, 0x1028), 0xc0000000); gk104_gr_init() 278 nv_wr32(priv, GPC_UNIT(gpc, 0x0824), 0xc0000000); gk104_gr_init() 279 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gk104_gr_init() 280 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); gk104_gr_init() 281 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); gk104_gr_init() 282 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); gk104_gr_init() 283 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); gk104_gr_init() 284 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); gk104_gr_init() 285 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x644), 0x001ffffe); gk104_gr_init() 286 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x64c), 0x0000000f); gk104_gr_init() 288 nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), 0xffffffff); gk104_gr_init() 289 nv_wr32(priv, GPC_UNIT(gpc, 0x2c94), 0xffffffff); gk104_gr_init()
|
H A D | gm107.c | 330 int gpc, tpc, ppc, rop; gm107_gr_init() local 351 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { gm107_gr_init() 353 gpc = (gpc + 1) % priv->gpc_nr; gm107_gr_init() 354 } while (!tpcnr[gpc]); gm107_gr_init() 355 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gm107_gr_init() 365 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm107_gr_init() 366 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), gm107_gr_init() 367 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); gm107_gr_init() 368 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | gm107_gr_init() 370 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); gm107_gr_init() 393 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm107_gr_init() 394 for (ppc = 0; ppc < 2 /* priv->ppc_nr[gpc] */; ppc++) gm107_gr_init() 395 nv_wr32(priv, PPC_UNIT(gpc, ppc, 0x038), 0xc0000000); gm107_gr_init() 396 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); gm107_gr_init() 397 nv_wr32(priv, GPC_UNIT(gpc, 0x0900), 0xc0000000); gm107_gr_init() 398 nv_wr32(priv, GPC_UNIT(gpc, 0x1028), 0xc0000000); gm107_gr_init() 399 nv_wr32(priv, GPC_UNIT(gpc, 0x0824), 0xc0000000); gm107_gr_init() 400 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gm107_gr_init() 401 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); gm107_gr_init() 402 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); gm107_gr_init() 403 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); gm107_gr_init() 404 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); gm107_gr_init() 405 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); gm107_gr_init() 406 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); gm107_gr_init() 407 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); gm107_gr_init() 408 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x64c), 0x00000005); gm107_gr_init() 410 nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), 0xffffffff); gm107_gr_init() 411 nv_wr32(priv, GPC_UNIT(gpc, 0x2c94), 0xffffffff); gm107_gr_init()
|
H A D | gm204.c | 259 int gpc, tpc, ppc, rop; gm204_gr_init() local 288 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { gm204_gr_init() 290 gpc = (gpc + 1) % priv->gpc_nr; gm204_gr_init() 291 } while (!tpcnr[gpc]); gm204_gr_init() 292 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gm204_gr_init() 302 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm204_gr_init() 303 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), gm204_gr_init() 304 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); gm204_gr_init() 305 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | gm204_gr_init() 307 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); gm204_gr_init() 331 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm204_gr_init() 332 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++) gm204_gr_init() 333 nv_wr32(priv, PPC_UNIT(gpc, ppc, 0x038), 0xc0000000); gm204_gr_init() 334 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); gm204_gr_init() 335 nv_wr32(priv, GPC_UNIT(gpc, 0x0900), 0xc0000000); gm204_gr_init() 336 nv_wr32(priv, GPC_UNIT(gpc, 0x1028), 0xc0000000); gm204_gr_init() 337 nv_wr32(priv, GPC_UNIT(gpc, 0x0824), 0xc0000000); gm204_gr_init() 338 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gm204_gr_init() 339 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); gm204_gr_init() 340 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); gm204_gr_init() 341 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); gm204_gr_init() 342 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); gm204_gr_init() 343 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); gm204_gr_init() 344 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); gm204_gr_init() 345 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); gm204_gr_init() 346 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x64c), 0x00000005); gm204_gr_init() 348 nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), 0xffffffff); gm204_gr_init() 349 nv_wr32(priv, GPC_UNIT(gpc, 0x2c94), 0xffffffff); gm204_gr_init()
|
H A D | gf100.c | 773 gf100_gr_trap_gpc_rop(struct gf100_gr_priv *priv, int gpc) gf100_gr_trap_gpc_rop() argument 778 trap[0] = nv_rd32(priv, GPC_UNIT(gpc, 0x0420)); gf100_gr_trap_gpc_rop() 779 trap[1] = nv_rd32(priv, GPC_UNIT(gpc, 0x0434)); gf100_gr_trap_gpc_rop() 780 trap[2] = nv_rd32(priv, GPC_UNIT(gpc, 0x0438)); gf100_gr_trap_gpc_rop() 781 trap[3] = nv_rd32(priv, GPC_UNIT(gpc, 0x043c)); gf100_gr_trap_gpc_rop() 783 nv_error(priv, "GPC%d/PROP trap:", gpc); gf100_gr_trap_gpc_rop() 795 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); gf100_gr_trap_gpc_rop() 838 gf100_gr_trap_mp(struct gf100_gr_priv *priv, int gpc, int tpc) gf100_gr_trap_mp() argument 840 u32 werr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x648)); gf100_gr_trap_mp() 841 u32 gerr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x650)); gf100_gr_trap_mp() 843 nv_error(priv, "GPC%i/TPC%i/MP trap:", gpc, tpc); gf100_gr_trap_mp() 851 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x648), 0x00000000); gf100_gr_trap_mp() 852 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x650), gerr); gf100_gr_trap_mp() 856 gf100_gr_trap_tpc(struct gf100_gr_priv *priv, int gpc, int tpc) gf100_gr_trap_tpc() argument 858 u32 stat = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0508)); gf100_gr_trap_tpc() 861 u32 trap = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0224)); gf100_gr_trap_tpc() 862 nv_error(priv, "GPC%d/TPC%d/TEX: 0x%08x\n", gpc, tpc, trap); gf100_gr_trap_tpc() 863 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x0224), 0xc0000000); gf100_gr_trap_tpc() 868 gf100_gr_trap_mp(priv, gpc, tpc); gf100_gr_trap_tpc() 873 u32 trap = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0084)); gf100_gr_trap_tpc() 874 nv_error(priv, "GPC%d/TPC%d/POLY: 0x%08x\n", gpc, tpc, trap); gf100_gr_trap_tpc() 875 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x0084), 0xc0000000); gf100_gr_trap_tpc() 880 u32 trap = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x048c)); gf100_gr_trap_tpc() 881 nv_error(priv, "GPC%d/TPC%d/L1C: 0x%08x\n", gpc, tpc, trap); gf100_gr_trap_tpc() 882 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x048c), 0xc0000000); gf100_gr_trap_tpc() 887 nv_error(priv, "GPC%d/TPC%d/0x%08x: unknown\n", gpc, tpc, stat); gf100_gr_trap_tpc() 892 gf100_gr_trap_gpc(struct gf100_gr_priv *priv, int gpc) gf100_gr_trap_gpc() argument 894 u32 stat = nv_rd32(priv, GPC_UNIT(gpc, 0x2c90)); gf100_gr_trap_gpc() 898 gf100_gr_trap_gpc_rop(priv, gpc); gf100_gr_trap_gpc() 903 u32 trap = nv_rd32(priv, GPC_UNIT(gpc, 0x0900)); gf100_gr_trap_gpc() 904 nv_error(priv, "GPC%d/ZCULL: 0x%08x\n", gpc, trap); gf100_gr_trap_gpc() 905 nv_wr32(priv, GPC_UNIT(gpc, 0x0900), 0xc0000000); gf100_gr_trap_gpc() 910 u32 trap = nv_rd32(priv, GPC_UNIT(gpc, 0x1028)); gf100_gr_trap_gpc() 911 nv_error(priv, "GPC%d/CCACHE: 0x%08x\n", gpc, trap); gf100_gr_trap_gpc() 912 nv_wr32(priv, GPC_UNIT(gpc, 0x1028), 0xc0000000); gf100_gr_trap_gpc() 917 u32 trap = nv_rd32(priv, GPC_UNIT(gpc, 0x0824)); gf100_gr_trap_gpc() 918 nv_error(priv, "GPC%d/ESETUP: 0x%08x\n", gpc, trap); gf100_gr_trap_gpc() 919 nv_wr32(priv, GPC_UNIT(gpc, 0x0824), 0xc0000000); gf100_gr_trap_gpc() 923 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gf100_gr_trap_gpc() 926 gf100_gr_trap_tpc(priv, gpc, tpc); gf100_gr_trap_gpc() 927 nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), mask); gf100_gr_trap_gpc() 933 nv_error(priv, "GPC%d/0x%08x: unknown\n", gpc, stat); gf100_gr_trap_gpc() 941 int rop, gpc, i; gf100_gr_trap_intr() local 1011 for (gpc = 0; stat && gpc < priv->gpc_nr; gpc++) { gf100_gr_trap_intr() 1012 u32 mask = 0x00000001 << gpc; gf100_gr_trap_intr() 1014 gf100_gr_trap_gpc(priv, gpc); gf100_gr_trap_intr() 1059 u32 gpc; gf100_gr_ctxctl_debug() local 1062 for (gpc = 0; gpc < gpcnr; gpc++) gf100_gr_ctxctl_debug() 1063 gf100_gr_ctxctl_debug_unit(priv, 0x502000 + (gpc * 0x8000)); gf100_gr_ctxctl_debug() 1386 gf100_gr_init_csdata(priv, cclass->gpc, 0x41a000, 0x000, 0x418000); gf100_gr_init_ctxctl() 1419 int gpc, tpc, rop; gf100_gr_init() local 1438 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { gf100_gr_init() 1440 gpc = (gpc + 1) % priv->gpc_nr; gf100_gr_init() 1441 } while (!tpcnr[gpc]); gf100_gr_init() 1442 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gf100_gr_init() 1452 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf100_gr_init() 1453 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), gf100_gr_init() 1454 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); gf100_gr_init() 1455 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | gf100_gr_init() 1457 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); gf100_gr_init() 1484 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf100_gr_init() 1485 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); gf100_gr_init() 1486 nv_wr32(priv, GPC_UNIT(gpc, 0x0900), 0xc0000000); gf100_gr_init() 1487 nv_wr32(priv, GPC_UNIT(gpc, 0x1028), 0xc0000000); gf100_gr_init() 1488 nv_wr32(priv, GPC_UNIT(gpc, 0x0824), 0xc0000000); gf100_gr_init() 1489 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gf100_gr_init() 1490 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); gf100_gr_init() 1491 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); gf100_gr_init() 1492 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); gf100_gr_init() 1493 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); gf100_gr_init() 1494 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); gf100_gr_init() 1495 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x644), 0x001ffffe); gf100_gr_init() 1496 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x64c), 0x0000000f); gf100_gr_init() 1498 nv_wr32(priv, GPC_UNIT(gpc, 0x2c90), 0xffffffff); gf100_gr_init() 1499 nv_wr32(priv, GPC_UNIT(gpc, 0x2c94), 0xffffffff); gf100_gr_init()
|
H A D | ctxgf100.c | 1063 int gpc, tpc; gf100_grctx_generate_attrib() local 1070 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf100_grctx_generate_attrib() 1071 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gf100_grctx_generate_attrib() 1072 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); gf100_grctx_generate_attrib() 1088 int gpc, tpc, id; gf100_grctx_generate_tpcid() local 1091 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf100_grctx_generate_tpcid() 1092 if (tpc < priv->tpc_nr[gpc]) { gf100_grctx_generate_tpcid() 1093 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); gf100_grctx_generate_tpcid() 1094 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x4e8), id); gf100_grctx_generate_tpcid() 1095 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); gf100_grctx_generate_tpcid() 1096 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x088), id); gf100_grctx_generate_tpcid() 1100 nv_wr32(priv, GPC_UNIT(gpc, 0x0c08), priv->tpc_nr[gpc]); gf100_grctx_generate_tpcid() 1101 nv_wr32(priv, GPC_UNIT(gpc, 0x0c8c), priv->tpc_nr[gpc]); gf100_grctx_generate_tpcid() 1122 int gpc, tpc, i; gf100_grctx_generate_r4060a8() local 1127 gpc = -1; gf100_grctx_generate_r4060a8() 1130 gpc = (gpc + 1) % priv->gpc_nr; gf100_grctx_generate_r4060a8() 1131 } while (!tpcnr[gpc]); gf100_grctx_generate_r4060a8() 1132 tpcnr[gpc]--; gf100_grctx_generate_r4060a8() 1133 data[tpc] = gpc; gf100_grctx_generate_r4060a8() 1146 int gpc, tpc, i; gf100_grctx_generate_r418bb8() local 1151 gpc = -1; gf100_grctx_generate_r418bb8() 1154 gpc = (gpc + 1) % priv->gpc_nr; gf100_grctx_generate_r418bb8() 1155 } while (!tpcnr[gpc]); gf100_grctx_generate_r418bb8() 1156 tpcnr[gpc]--; gf100_grctx_generate_r418bb8() 1158 data[tpc / 6] |= gpc << ((tpc % 6) * 5); gf100_grctx_generate_r418bb8() 1203 int gpc, tpc; gf100_grctx_generate_r406800() local 1207 for (gpc = 0; gpc < priv->gpc_nr; gpc++) gf100_grctx_generate_r406800() 1208 tpc_mask |= ((1ULL << priv->tpc_nr[gpc]) - 1) << (gpc * 8); gf100_grctx_generate_r406800() 1210 for (i = 0, gpc = -1, b = -1; i < 32; i++) { gf100_grctx_generate_r406800() 1215 gpc = (gpc + 1) % priv->gpc_nr; gf100_grctx_generate_r406800() 1216 } while (!tpcnr[gpc]); gf100_grctx_generate_r406800() 1217 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gf100_grctx_generate_r406800() 1219 tpc_set |= 1ULL << ((gpc * 8) + tpc); gf100_grctx_generate_r406800() 1239 gf100_gr_mmio(priv, oclass->gpc); gf100_grctx_generate_main() 1378 .gpc = gf100_grctx_pack_gpc,
|
H A D | ctxgf117.c | 197 int gpc, ppc; gf117_grctx_generate_attrib() local 204 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf117_grctx_generate_attrib() 205 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++) { gf117_grctx_generate_attrib() 206 const u32 a = alpha * priv->ppc_tpc_nr[gpc][ppc]; gf117_grctx_generate_attrib() 207 const u32 b = beta * priv->ppc_tpc_nr[gpc][ppc]; gf117_grctx_generate_attrib() 209 const u32 o = PPC_UNIT(gpc, ppc, 0); gf117_grctx_generate_attrib() 212 bo += impl->attrib_nr_max * priv->ppc_tpc_nr[gpc][ppc]; gf117_grctx_generate_attrib() 214 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; gf117_grctx_generate_attrib() 228 gf100_gr_mmio(priv, oclass->gpc); gf117_grctx_generate_main() 269 .gpc = gf117_grctx_pack_gpc,
|
H A D | ctxgm107.c | 909 int gpc, ppc, n = 0; gm107_grctx_generate_attrib() local 917 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm107_grctx_generate_attrib() 918 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++, n++) { gm107_grctx_generate_attrib() 919 const u32 as = alpha * priv->ppc_tpc_nr[gpc][ppc]; gm107_grctx_generate_attrib() 920 const u32 bs = attrib * priv->ppc_tpc_nr[gpc][ppc]; gm107_grctx_generate_attrib() 922 const u32 o = PPC_UNIT(gpc, ppc, 0); gm107_grctx_generate_attrib() 925 bo += impl->attrib_nr_max * priv->ppc_tpc_nr[gpc][ppc]; gm107_grctx_generate_attrib() 928 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; gm107_grctx_generate_attrib() 937 int gpc, tpc, id; gm107_grctx_generate_tpcid() local 940 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm107_grctx_generate_tpcid() 941 if (tpc < priv->tpc_nr[gpc]) { gm107_grctx_generate_tpcid() 942 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); gm107_grctx_generate_tpcid() 943 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); gm107_grctx_generate_tpcid() 944 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x088), id); gm107_grctx_generate_tpcid() 948 nv_wr32(priv, GPC_UNIT(gpc, 0x0c08), priv->tpc_nr[gpc]); gm107_grctx_generate_tpcid() 949 nv_wr32(priv, GPC_UNIT(gpc, 0x0c8c), priv->tpc_nr[gpc]); gm107_grctx_generate_tpcid() 961 gf100_gr_mmio(priv, oclass->gpc); gm107_grctx_generate_main() 1011 .gpc = gm107_grctx_pack_gpc,
|
H A D | ctxgm204.c | 924 int gpc, tpc, id; gm204_grctx_generate_tpcid() local 927 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gm204_grctx_generate_tpcid() 928 if (tpc < priv->tpc_nr[gpc]) { gm204_grctx_generate_tpcid() 929 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); gm204_grctx_generate_tpcid() 930 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); gm204_grctx_generate_tpcid() 931 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x088), id); gm204_grctx_generate_tpcid() 953 int tpc, gpc, i; gm204_grctx_generate_405b60() local 961 for (gpc = -1, i = 0; i < priv->tpc_total; i++) { gm204_grctx_generate_405b60() 963 gpc = (gpc + 1) % priv->gpc_nr; gm204_grctx_generate_405b60() 964 } while(!tpcnr[gpc]); gm204_grctx_generate_405b60() 965 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; gm204_grctx_generate_405b60() 967 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); gm204_grctx_generate_405b60() 968 gpcs[gpc] |= i << (tpc * 8); gm204_grctx_generate_405b60() 985 gf100_gr_mmio(priv, oclass->gpc); gm204_grctx_generate_main() 1037 .gpc = gm204_grctx_pack_gpc,
|
H A D | ctxgk20a.c | 45 .gpc = gk104_grctx_pack_gpc,
|
H A D | ctxgf104.c | 96 .gpc = gf100_grctx_pack_gpc,
|
H A D | ctxgk110b.c | 86 .gpc = gk110_grctx_pack_gpc,
|
H A D | ctxgm206.c | 66 .gpc = gm206_grctx_pack_gpc,
|
H A D | ctxgf108.c | 745 int gpc, tpc; gf108_grctx_generate_attrib() local 752 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { gf108_grctx_generate_attrib() 753 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { gf108_grctx_generate_attrib() 757 const u32 o = TPC_UNIT(gpc, tpc, 0x500); gf108_grctx_generate_attrib() 792 .gpc = gf108_grctx_pack_gpc,
|
H A D | ctxgk104.c | 891 int gpc, tpc, i; gk104_grctx_generate_r418bb8() local 896 gpc = -1; gk104_grctx_generate_r418bb8() 899 gpc = (gpc + 1) % priv->gpc_nr; gk104_grctx_generate_r418bb8() 900 } while (!tpcnr[gpc]); gk104_grctx_generate_r418bb8() 901 tpcnr[gpc]--; gk104_grctx_generate_r418bb8() 903 data[tpc / 6] |= gpc << ((tpc % 6) * 5); gk104_grctx_generate_r418bb8() 960 gf100_gr_mmio(priv, oclass->gpc); gk104_grctx_generate_main() 1007 .gpc = gk104_grctx_pack_gpc,
|
H A D | ctxgf100.h | 30 const struct gf100_gr_pack *gpc; member in struct:gf100_grctx_oclass
|
H A D | ctxgf110.c | 347 .gpc = gf110_grctx_pack_gpc,
|
H A D | ctxgf119.c | 515 .gpc = gf119_grctx_pack_gpc,
|
H A D | ctxgk208.c | 547 .gpc = gk208_grctx_pack_gpc,
|
H A D | ctxgk110.c | 825 .gpc = gk110_grctx_pack_gpc,
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | gpc.c | 276 OF_DECLARE_2(irqchip, imx_gpc, "fsl,imx6q-gpc", imx_gpc_init); 282 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-gpc"); imx_gpc_check_dt() 454 { .compatible = "fsl,imx6q-gpc" }, 455 { .compatible = "fsl,imx6sl-gpc" }, 461 .name = "imx-gpc",
|
H A D | pm-imx6.c | 144 .gpc_compat = "fsl,imx6q-gpc", 153 .gpc_compat = "fsl,imx6q-gpc", 162 .gpc_compat = "fsl,imx6sl-gpc", 171 .gpc_compat = "fsl,imx6sx-gpc", 510 pr_warn("%s: failed to get gpc base %d!\n", __func__, ret); imx6q_suspend_init()
|
H A D | Makefile | 82 obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
|
/linux-4.1.27/arch/arm/plat-samsung/include/plat/ |
H A D | gpio-core.h | 84 static inline struct samsung_gpio_chip *to_samsung_gpio(struct gpio_chip *gpc) to_samsung_gpio() argument 86 return container_of(gpc, struct samsung_gpio_chip, chip); to_samsung_gpio()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | gk104.c | 118 ret = nvkm_perfdom_new(&priv->base, "gpc", mask, 0x180000, gk104_pm_ctor()
|
H A D | gf100.c | 129 ret = nvkm_perfdom_new(&priv->base, "gpc", mask, 0x180000, gf100_pm_ctor()
|
/linux-4.1.27/drivers/pinctrl/samsung/ |
H A D | pinctrl-s3c24xx.c | 567 PIN_BANK_2BIT(16, 0x020, "gpc"), 587 PIN_BANK_2BIT(16, 0x020, "gpc"), 609 PIN_BANK_2BIT(16, 0x020, "gpc"), 629 PIN_BANK_2BIT(16, 0x020, "gpc"),
|
H A D | pinctrl-s3c64xx.c | 786 PIN_BANK_4BIT_EINTG(8, 0x040, "gpc", 16),
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-lpc32xx.c | 169 struct gpio_chip *gpc) to_lpc32xx_gpio() 171 return container_of(gpc, struct lpc32xx_gpio_chip, chip); to_lpc32xx_gpio() 168 to_lpc32xx_gpio( struct gpio_chip *gpc) to_lpc32xx_gpio() argument
|
/linux-4.1.27/kernel/rcu/ |
H A D | tree_trace.c | 371 seq_printf(m, "gpc=%ld gps=%ld nn=%ld ndw%ld\n", print_one_rcu_pending()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gf100.c | 603 u32 gpc = (stat & 0x1f000000) >> 24; gf100_fifo_intr_fault() local 646 snprintf(gpcid, sizeof(gpcid), "%d", gpc); gf100_fifo_intr_fault()
|
H A D | gk104.c | 717 u32 gpc = (stat & 0x1f000000) >> 24; gk104_fifo_intr_fault() local 760 snprintf(gpcid, sizeof(gpcid), "%d", gpc); gk104_fifo_intr_fault()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_main.c | 6495 u32 gpc; ixgbe_check_for_bad_vf() local 6502 gpc = IXGBE_READ_REG(hw, IXGBE_TXDGPC); ixgbe_check_for_bad_vf() 6503 if (gpc) /* If incrementing then no need for the check below */ ixgbe_check_for_bad_vf()
|