Home
last modified time | relevance | path

Searched refs:engn (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgf100.c109 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
[all …]
Dchan.c45 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_fini() local
49 if (--engn->usecount) in nvkm_fifo_chan_child_fini()
61 if (engn->object) { in nvkm_fifo_chan_child_fini()
62 ret = nvkm_object_fini(engn->object, suspend); in nvkm_fifo_chan_child_fini()
78 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_init() local
82 if (engn->usecount++) in nvkm_fifo_chan_child_init()
85 if (engn->object) { in nvkm_fifo_chan_child_init()
86 ret = nvkm_object_init(engn->object); in nvkm_fifo_chan_child_init()
111 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_del() local
116 if (!--engn->refcount) { in nvkm_fifo_chan_child_del()
[all …]
Dgk104.c52 gk104_fifo_engine_status(struct gk104_fifo *fifo, int engn, in gk104_fifo_engine_status() argument
55 struct nvkm_engine *engine = fifo->engine[engn].engine; in gk104_fifo_engine_status()
58 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x08)); in gk104_fifo_engine_status()
90 engn, status->busy, status->faulted, in gk104_fifo_engine_status()
103 if (oclass->engn == &fifo->func->chan) { in gk104_fifo_class_new()
104 const struct gk104_fifo_chan_user *user = oclass->engn; in gk104_fifo_class_new()
107 if (oclass->engn == &fifo->func->user) { in gk104_fifo_class_new()
108 const struct gk104_fifo_user_user *user = oclass->engn; in gk104_fifo_class_new()
124 oclass->engn = &fifo->func->user; in gk104_fifo_class_get()
130 oclass->engn = &fifo->func->chan; in gk104_fifo_class_get()
[all …]
Dgpfifogf100.c114 u64 addr = chan->engn[engine->subdev.index].vma->addr; in gf100_fifo_gpfifo_engine_init()
129 nvkm_vmm_put(chan->base.vmm, &chan->engn[engine->subdev.index].vma); in gf100_fifo_gpfifo_engine_dtor()
130 nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); in gf100_fifo_gpfifo_engine_dtor()
139 int engn = engine->subdev.index; in gf100_fifo_gpfifo_engine_ctor() local
145 ret = nvkm_object_bind(object, NULL, 0, &chan->engn[engn].inst); in gf100_fifo_gpfifo_engine_ctor()
149 ret = nvkm_vmm_get(chan->base.vmm, 12, chan->engn[engn].inst->size, in gf100_fifo_gpfifo_engine_ctor()
150 &chan->engn[engn].vma); in gf100_fifo_gpfifo_engine_ctor()
154 return nvkm_memory_map(chan->engn[engn].inst, 0, chan->base.vmm, in gf100_fifo_gpfifo_engine_ctor()
155 chan->engn[engn].vma, NULL, 0); in gf100_fifo_gpfifo_engine_ctor()
Dchang84.c97 u32 engn, save; in g84_fifo_chan_engine_fini() local
105 engn = g84_fifo_chan_engine(engine); in g84_fifo_chan_engine_fini()
106 save = nvkm_mask(device, 0x002520, 0x0000003f, 1 << engn); in g84_fifo_chan_engine_fini()
137 struct nvkm_gpuobj *engn = chan->engn[engine->subdev.index]; in g84_fifo_chan_engine_init() local
144 limit = engn->addr + engn->size - 1; in g84_fifo_chan_engine_init()
145 start = engn->addr; in g84_fifo_chan_engine_init()
165 int engn = engine->subdev.index; in g84_fifo_chan_engine_ctor() local
170 return nvkm_object_bind(object, NULL, 0, &chan->engn[engn]); in g84_fifo_chan_engine_ctor()
Dgpfifogk104.c133 u64 addr = chan->engn[engine->subdev.index].vma->addr; in gk104_fifo_gpfifo_engine_init()
154 nvkm_vmm_put(chan->base.vmm, &chan->engn[engine->subdev.index].vma); in gk104_fifo_gpfifo_engine_dtor()
155 nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); in gk104_fifo_gpfifo_engine_dtor()
164 int engn = engine->subdev.index; in gk104_fifo_gpfifo_engine_ctor() local
170 ret = nvkm_object_bind(object, NULL, 0, &chan->engn[engn].inst); in gk104_fifo_gpfifo_engine_ctor()
174 ret = nvkm_vmm_get(chan->base.vmm, 12, chan->engn[engn].inst->size, in gk104_fifo_gpfifo_engine_ctor()
175 &chan->engn[engn].vma); in gk104_fifo_gpfifo_engine_ctor()
179 return nvkm_memory_map(chan->engn[engn].inst, 0, chan->base.vmm, in gk104_fifo_gpfifo_engine_ctor()
180 chan->engn[engn].vma, NULL, 0); in gk104_fifo_gpfifo_engine_ctor()
Dchannv50.c106 struct nvkm_gpuobj *engn = chan->engn[engine->subdev.index]; in nv50_fifo_chan_engine_init() local
113 limit = engn->addr + engn->size - 1; in nv50_fifo_chan_engine_init()
114 start = engn->addr; in nv50_fifo_chan_engine_init()
133 nvkm_gpuobj_del(&chan->engn[engine->subdev.index]); in nv50_fifo_chan_engine_dtor()
142 int engn = engine->subdev.index; in nv50_fifo_chan_engine_ctor() local
147 return nvkm_object_bind(object, NULL, 0, &chan->engn[engn]); in nv50_fifo_chan_engine_ctor()
Ddmanv40.c102 inst = chan->engn[engine->subdev.index]->addr >> 4; in nv40_fifo_dma_engine_init()
124 nvkm_gpuobj_del(&chan->engn[engine->subdev.index]); in nv40_fifo_dma_engine_dtor()
133 const int engn = engine->subdev.index; in nv40_fifo_dma_engine_ctor() local
139 return nvkm_object_bind(object, NULL, 0, &chan->engn[engn]); in nv40_fifo_dma_engine_ctor()
Dchangf100.h18 } engn[NVKM_SUBDEV_NR]; member
Dchannv04.h12 struct nvkm_gpuobj *engn[NVKM_SUBDEV_NR]; member
Dchannv50.h18 struct nvkm_gpuobj *engn[NVKM_SUBDEV_NR]; member
Dchangk104.h22 } engn[NVKM_SUBDEV_NR]; member
Dbase.c237 const struct nvkm_fifo_chan_oclass *sclass = oclass->engn; in nvkm_fifo_class_new()
265 oclass->engn = sclass; in nvkm_fifo_class_get()
Dgpfifogv100.c100 addr = chan->engn[engine->subdev.index].vma->addr; in gv100_fifo_gpfifo_engine_init()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dbase.c54 const struct nvkm_sw_chan_sclass *sclass = oclass->engn; in nvkm_sw_oclass_new()
66 oclass->engn = &sw->func->sclass[index]; in nvkm_sw_oclass_get()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/top/
Dbase.c143 nvkm_top_engine(struct nvkm_device *device, int index, int *runl, int *engn) in nvkm_top_engine() argument
152 *engn = info->engine; in nvkm_top_engine()
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvkm/core/
Doclass.h22 const void *engn; member
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dtop.h18 enum nvkm_devidx nvkm_top_engine(struct nvkm_device *, int, int *runl, int *engn);
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dfifo.h32 struct nvkm_fifo_engn engn[NVKM_SUBDEV_NR]; member
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dbase.c74 sclass->engn = oclass; in nvkm_dma_oclass_base_get()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dbase.c168 const struct nvkm_disp_oclass *sclass = oclass->engn; in nvkm_disp_class_new()
202 oclass->engn = root; in nvkm_disp_class_get()