/drivers/gpu/drm/nouveau/core/engine/graph/ |
D | nve4.c | 203 int gpc, tpc, rop; in nve4_graph_init() local 228 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { in nve4_graph_init() 230 gpc = (gpc + 1) % priv->gpc_nr; in nve4_graph_init() 231 } while (!tpcnr[gpc]); in nve4_graph_init() 232 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; in nve4_graph_init() 242 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in nve4_graph_init() 243 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), in nve4_graph_init() 244 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); in nve4_graph_init() 245 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | in nve4_graph_init() 247 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); in nve4_graph_init() [all …]
|
D | gm107.c | 329 int gpc, tpc, ppc, rop; in gm107_graph_init() local 350 for (i = 0, gpc = -1; i < priv->tpc_total; i++) { in gm107_graph_init() 352 gpc = (gpc + 1) % priv->gpc_nr; in gm107_graph_init() 353 } while (!tpcnr[gpc]); in gm107_graph_init() 354 tpc = priv->tpc_nr[gpc] - tpcnr[gpc]--; in gm107_graph_init() 364 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gm107_graph_init() 365 nv_wr32(priv, GPC_UNIT(gpc, 0x0914), in gm107_graph_init() 366 priv->magic_not_rop_nr << 8 | priv->tpc_nr[gpc]); in gm107_graph_init() 367 nv_wr32(priv, GPC_UNIT(gpc, 0x0910), 0x00040000 | in gm107_graph_init() 369 nv_wr32(priv, GPC_UNIT(gpc, 0x0918), magicgpc918); in gm107_graph_init() [all …]
|
D | ctxnvc0.c | 1059 int gpc, tpc; in nvc0_grctx_generate_attrib() local 1066 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in nvc0_grctx_generate_attrib() 1067 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { in nvc0_grctx_generate_attrib() 1068 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in nvc0_grctx_generate_attrib() 1084 int gpc, tpc, id; in nvc0_grctx_generate_tpcid() local 1087 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in nvc0_grctx_generate_tpcid() 1088 if (tpc < priv->tpc_nr[gpc]) { in nvc0_grctx_generate_tpcid() 1089 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x698), id); in nvc0_grctx_generate_tpcid() 1090 nv_wr32(priv, TPC_UNIT(gpc, tpc, 0x4e8), id); in nvc0_grctx_generate_tpcid() 1091 nv_wr32(priv, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in nvc0_grctx_generate_tpcid() [all …]
|
D | ctxgm107.c | 907 int gpc, ppc, n = 0; in gm107_grctx_generate_attrib() local 915 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gm107_grctx_generate_attrib() 916 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++, n++) { in gm107_grctx_generate_attrib() 917 const u32 as = alpha * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib() 918 const u32 bs = attrib * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib() 920 const u32 o = PPC_UNIT(gpc, ppc, 0); in gm107_grctx_generate_attrib() 923 bo += impl->attrib_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib() 926 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib() 935 int gpc, tpc, id; in gm107_grctx_generate_tpcid() local 938 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in gm107_grctx_generate_tpcid() [all …]
|
D | nvc0.c | 762 nvc0_graph_trap_gpc_rop(struct nvc0_graph_priv *priv, int gpc) in nvc0_graph_trap_gpc_rop() argument 767 trap[0] = nv_rd32(priv, GPC_UNIT(gpc, 0x0420)); in nvc0_graph_trap_gpc_rop() 768 trap[1] = nv_rd32(priv, GPC_UNIT(gpc, 0x0434)); in nvc0_graph_trap_gpc_rop() 769 trap[2] = nv_rd32(priv, GPC_UNIT(gpc, 0x0438)); in nvc0_graph_trap_gpc_rop() 770 trap[3] = nv_rd32(priv, GPC_UNIT(gpc, 0x043c)); in nvc0_graph_trap_gpc_rop() 772 nv_error(priv, "GPC%d/PROP trap:", gpc); in nvc0_graph_trap_gpc_rop() 784 nv_wr32(priv, GPC_UNIT(gpc, 0x0420), 0xc0000000); in nvc0_graph_trap_gpc_rop() 807 nvc0_graph_trap_mp(struct nvc0_graph_priv *priv, int gpc, int tpc) in nvc0_graph_trap_mp() argument 809 u32 werr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x648)); in nvc0_graph_trap_mp() 810 u32 gerr = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x650)); in nvc0_graph_trap_mp() [all …]
|
D | ctxnvd7.c | 195 int gpc, ppc; in nvd7_grctx_generate_attrib() local 202 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in nvd7_grctx_generate_attrib() 203 for (ppc = 0; ppc < priv->ppc_nr[gpc]; ppc++) { in nvd7_grctx_generate_attrib() 204 const u32 a = alpha * priv->ppc_tpc_nr[gpc][ppc]; in nvd7_grctx_generate_attrib() 205 const u32 b = beta * priv->ppc_tpc_nr[gpc][ppc]; in nvd7_grctx_generate_attrib() 207 const u32 o = PPC_UNIT(gpc, ppc, 0); in nvd7_grctx_generate_attrib() 210 bo += impl->attrib_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in nvd7_grctx_generate_attrib() 212 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; in nvd7_grctx_generate_attrib() 226 nvc0_graph_mmio(priv, oclass->gpc); in nvd7_grctx_generate_main() 267 .gpc = nvd7_grctx_pack_gpc,
|
D | ctxnvc1.c | 744 int gpc, tpc; in nvc1_grctx_generate_attrib() local 751 for (gpc = 0; gpc < priv->gpc_nr; gpc++) { in nvc1_grctx_generate_attrib() 752 for (tpc = 0; tpc < priv->tpc_nr[gpc]; tpc++) { in nvc1_grctx_generate_attrib() 756 const u32 o = TPC_UNIT(gpc, tpc, 0x500); in nvc1_grctx_generate_attrib() 791 .gpc = nvc1_grctx_pack_gpc,
|
D | ctxnve4.c | 889 int gpc, tpc, i; in nve4_grctx_generate_r418bb8() local 894 gpc = -1; in nve4_grctx_generate_r418bb8() 897 gpc = (gpc + 1) % priv->gpc_nr; in nve4_grctx_generate_r418bb8() 898 } while (!tpcnr[gpc]); in nve4_grctx_generate_r418bb8() 899 tpcnr[gpc]--; in nve4_grctx_generate_r418bb8() 901 data[tpc / 6] |= gpc << ((tpc % 6) * 5); in nve4_grctx_generate_r418bb8() 950 nvc0_graph_mmio(priv, oclass->gpc); in nve4_grctx_generate_main() 1003 .gpc = nve4_grctx_pack_gpc,
|
D | ctxgk20a.c | 46 .gpc = nve4_grctx_pack_gpc,
|
D | ctxgk110b.c | 87 .gpc = nvf0_grctx_pack_gpc,
|
D | ctxnvc4.c | 97 .gpc = nvc0_grctx_pack_gpc,
|
D | ctxnvc8.c | 348 .gpc = nvc8_grctx_pack_gpc,
|
D | ctxnvd9.c | 516 .gpc = nvd9_grctx_pack_gpc,
|
D | ctxnv108.c | 548 .gpc = nv108_grctx_pack_gpc,
|
D | ctxnvf0.c | 826 .gpc = nvf0_grctx_pack_gpc,
|
D | ctxnvc0.h | 31 const struct nvc0_graph_pack *gpc; member
|
/drivers/gpu/drm/nouveau/core/engine/graph/fuc/ |
D | gpcgm107.fuc5 | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
D | gpcnv108.fuc5 | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
D | gpcnvd7.fuc | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
D | gpcnve0.fuc | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
D | gpcnvc0.fuc | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
D | gpcnvf0.fuc | 33 #include "gpc.fuc" 40 #include "gpc.fuc"
|
/drivers/gpio/ |
D | gpio-lpc32xx.c | 169 struct gpio_chip *gpc) in to_lpc32xx_gpio() argument 171 return container_of(gpc, struct lpc32xx_gpio_chip, chip); in to_lpc32xx_gpio()
|
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
D | nvc0.c | 611 u32 gpc = (stat & 0x1f000000) >> 24; in nvc0_fifo_intr_fault() local 654 snprintf(gpcid, sizeof(gpcid), "%d", gpc); in nvc0_fifo_intr_fault()
|
D | nve0.c | 726 u32 gpc = (stat & 0x1f000000) >> 24; in nve0_fifo_intr_fault() local 769 snprintf(gpcid, sizeof(gpcid), "%d", gpc); in nve0_fifo_intr_fault()
|