Lines Matching refs:engn
109 gf100_fifo_engidx(struct gf100_fifo *fifo, u32 engn) in gf100_fifo_engidx() argument
111 switch (engn) { in gf100_fifo_engidx()
112 case NVKM_ENGINE_GR : engn = 0; break; in gf100_fifo_engidx()
113 case NVKM_ENGINE_MSVLD : engn = 1; break; in gf100_fifo_engidx()
114 case NVKM_ENGINE_MSPPP : engn = 2; break; in gf100_fifo_engidx()
115 case NVKM_ENGINE_MSPDEC: engn = 3; break; in gf100_fifo_engidx()
116 case NVKM_ENGINE_CE0 : engn = 4; break; in gf100_fifo_engidx()
117 case NVKM_ENGINE_CE1 : engn = 5; break; in gf100_fifo_engidx()
122 return engn; in gf100_fifo_engidx()
126 gf100_fifo_engine(struct gf100_fifo *fifo, u32 engn) in gf100_fifo_engine() argument
130 switch (engn) { in gf100_fifo_engine()
131 case 0: engn = NVKM_ENGINE_GR; break; in gf100_fifo_engine()
132 case 1: engn = NVKM_ENGINE_MSVLD; break; in gf100_fifo_engine()
133 case 2: engn = NVKM_ENGINE_MSPPP; break; in gf100_fifo_engine()
134 case 3: engn = NVKM_ENGINE_MSPDEC; break; in gf100_fifo_engine()
135 case 4: engn = NVKM_ENGINE_CE0; break; in gf100_fifo_engine()
136 case 5: engn = NVKM_ENGINE_CE1; break; in gf100_fifo_engine()
141 return nvkm_device_engine(device, engn); in gf100_fifo_engine()
151 u32 engn, engm = 0; in gf100_fifo_recover_work() local
159 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) in gf100_fifo_recover_work()
160 engm |= 1 << gf100_fifo_engidx(fifo, engn); in gf100_fifo_recover_work()
163 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) { in gf100_fifo_recover_work()
164 if ((engine = nvkm_device_engine(device, engn))) { in gf100_fifo_recover_work()
323 u32 engn; in gf100_fifo_intr_sched_ctxsw() local
326 for (engn = 0; engn < 6; engn++) { in gf100_fifo_intr_sched_ctxsw()
327 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x04)); in gf100_fifo_intr_sched_ctxsw()
338 engine = gf100_fifo_engine(fifo, engn); in gf100_fifo_intr_sched_ctxsw()
462 gf100_fifo_intr_engine_unit(struct gf100_fifo *fifo, int engn) in gf100_fifo_intr_engine_unit() argument
466 u32 intr = nvkm_rd32(device, 0x0025a8 + (engn * 0x04)); in gf100_fifo_intr_engine_unit()
470 nvkm_wr32(device, 0x0025a8 + (engn * 0x04), intr); in gf100_fifo_intr_engine_unit()
480 engn, unkn, ints); in gf100_fifo_intr_engine_unit()