Home
last modified time | relevance | path

Searched refs:gpc (Results 1 – 25 of 26) sorted by relevance

12

/drivers/gpu/drm/nouveau/core/engine/graph/
Dnve4.c203 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 …]
Dgm107.c329 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 …]
Dctxnvc0.c1059 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 …]
Dctxgm107.c907 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 …]
Dnvc0.c762 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 …]
Dctxnvd7.c195 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,
Dctxnvc1.c744 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,
Dctxnve4.c889 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,
Dctxgk20a.c46 .gpc = nve4_grctx_pack_gpc,
Dctxgk110b.c87 .gpc = nvf0_grctx_pack_gpc,
Dctxnvc4.c97 .gpc = nvc0_grctx_pack_gpc,
Dctxnvc8.c348 .gpc = nvc8_grctx_pack_gpc,
Dctxnvd9.c516 .gpc = nvd9_grctx_pack_gpc,
Dctxnv108.c548 .gpc = nv108_grctx_pack_gpc,
Dctxnvf0.c826 .gpc = nvf0_grctx_pack_gpc,
Dctxnvc0.h31 const struct nvc0_graph_pack *gpc; member
/drivers/gpu/drm/nouveau/core/engine/graph/fuc/
Dgpcgm107.fuc533 #include "gpc.fuc"
40 #include "gpc.fuc"
Dgpcnv108.fuc533 #include "gpc.fuc"
40 #include "gpc.fuc"
Dgpcnvd7.fuc33 #include "gpc.fuc"
40 #include "gpc.fuc"
Dgpcnve0.fuc33 #include "gpc.fuc"
40 #include "gpc.fuc"
Dgpcnvc0.fuc33 #include "gpc.fuc"
40 #include "gpc.fuc"
Dgpcnvf0.fuc33 #include "gpc.fuc"
40 #include "gpc.fuc"
/drivers/gpio/
Dgpio-lpc32xx.c169 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/
Dnvc0.c611 u32 gpc = (stat & 0x1f000000) >> 24; in nvc0_fifo_intr_fault() local
654 snprintf(gpcid, sizeof(gpcid), "%d", gpc); in nvc0_fifo_intr_fault()
Dnve0.c726 u32 gpc = (stat & 0x1f000000) >> 24; in nve0_fifo_intr_fault() local
769 snprintf(gpcid, sizeof(gpcid), "%d", gpc); in nve0_fifo_intr_fault()

12