/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | chan.c | 133 nvkm_fifo_chan_child_new(const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_fifo_chan_child_new() argument 136 struct nvkm_engine *engine = oclass->engine; in nvkm_fifo_chan_child_new() 137 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(oclass->parent); in nvkm_fifo_chan_child_new() 144 nvkm_oproxy_ctor(&nvkm_fifo_chan_child_func, oclass, &object->oproxy); in nvkm_fifo_chan_child_new() 150 .client = oclass->client, in nvkm_fifo_chan_child_new() 151 .engine = oclass->engine, in nvkm_fifo_chan_child_new() 169 ret = chan->func->engine_ctor(chan, oclass->engine, in nvkm_fifo_chan_child_new() 176 ret = oclass->base.ctor(&(const struct nvkm_oclass) { in nvkm_fifo_chan_child_new() 177 .base = oclass->base, in nvkm_fifo_chan_child_new() 178 .engn = oclass->engn, in nvkm_fifo_chan_child_new() [all …]
|
D | base.c | 220 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_fifo_class_new_() argument 223 struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); in nvkm_fifo_class_new_() 224 return fifo->func->class_new(fifo, oclass, data, size, pobject); in nvkm_fifo_class_new_() 234 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_fifo_class_new() argument 237 const struct nvkm_fifo_chan_oclass *sclass = oclass->engn; in nvkm_fifo_class_new() 238 struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); in nvkm_fifo_class_new() 239 return sclass->ctor(fifo, oclass, data, size, pobject); in nvkm_fifo_class_new() 248 nvkm_fifo_class_get(struct nvkm_oclass *oclass, int index, in nvkm_fifo_class_get() argument 251 struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); in nvkm_fifo_class_get() 256 int ret = fifo->func->class_get(fifo, index, oclass); in nvkm_fifo_class_get() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | ioctl.c | 56 struct nvkm_oclass oclass = { .client = client }; in nvkm_ioctl_sclass() local 63 if (size != args->v0.count * sizeof(args->v0.oclass[0])) in nvkm_ioctl_sclass() 67 object->func->sclass(object, i, &oclass) >= 0) { in nvkm_ioctl_sclass() 69 args->v0.oclass[i].oclass = oclass.base.oclass; in nvkm_ioctl_sclass() 70 args->v0.oclass[i].minver = oclass.base.minver; in nvkm_ioctl_sclass() 71 args->v0.oclass[i].maxver = oclass.base.maxver; in nvkm_ioctl_sclass() 90 struct nvkm_oclass oclass; in nvkm_ioctl_new() local 97 args->v0.version, args->v0.handle, args->v0.oclass, in nvkm_ioctl_new() 108 memset(&oclass, 0x00, sizeof(oclass)); in nvkm_ioctl_new() 109 oclass.handle = args->v0.handle; in nvkm_ioctl_new() [all …]
|
D | client.c | 35 nvkm_uclient_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_uclient_new() argument 47 NULL, oclass->client->ntfy, &client); in nvkm_uclient_new() 53 client->object.client = oclass->client; in nvkm_uclient_new() 54 client->object.handle = oclass->handle; in nvkm_uclient_new() 55 client->object.route = oclass->route; in nvkm_uclient_new() 56 client->object.token = oclass->token; in nvkm_uclient_new() 57 client->object.object = oclass->object; in nvkm_uclient_new() 58 client->debug = oclass->client->debug; in nvkm_uclient_new() 65 .oclass = NVIF_CLASS_CLIENT, 231 nvkm_client_child_new(const struct nvkm_oclass *oclass, in nvkm_client_child_new() argument [all …]
|
D | object.c | 295 const struct nvkm_oclass *oclass, struct nvkm_object *object) in nvkm_object_ctor() argument 298 object->client = oclass->client; in nvkm_object_ctor() 299 object->engine = nvkm_engine_ref(oclass->engine); in nvkm_object_ctor() 300 object->oclass = oclass->base.oclass; in nvkm_object_ctor() 301 object->handle = oclass->handle; in nvkm_object_ctor() 302 object->route = oclass->route; in nvkm_object_ctor() 303 object->token = oclass->token; in nvkm_object_ctor() 304 object->object = oclass->object; in nvkm_object_ctor() 313 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_object_new_() argument 319 nvkm_object_ctor(func, oclass, *pobject); in nvkm_object_new_() [all …]
|
D | oproxy.c | 99 struct nvkm_oclass *oclass) in nvkm_oproxy_sclass() argument 102 oclass->parent = oproxy->object; in nvkm_oproxy_sclass() 105 return oproxy->object->func->sclass(oproxy->object, index, oclass); in nvkm_oproxy_sclass() 195 const struct nvkm_oclass *oclass, struct nvkm_oproxy *oproxy) in nvkm_oproxy_ctor() argument 197 nvkm_object_ctor(&nvkm_oproxy_func, oclass, &oproxy->base); in nvkm_oproxy_ctor() 203 const struct nvkm_oclass *oclass, struct nvkm_oproxy **poproxy) in nvkm_oproxy_new_() argument 207 nvkm_oproxy_ctor(func, oclass, *poproxy); in nvkm_oproxy_new_()
|
/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | base.c | 50 nvkm_sw_oclass_new(const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_sw_oclass_new() argument 53 struct nvkm_sw_chan *chan = nvkm_sw_chan(oclass->parent); in nvkm_sw_oclass_new() 54 const struct nvkm_sw_chan_sclass *sclass = oclass->engn; in nvkm_sw_oclass_new() 55 return sclass->ctor(chan, oclass, data, size, pobject); in nvkm_sw_oclass_new() 59 nvkm_sw_oclass_get(struct nvkm_oclass *oclass, int index) in nvkm_sw_oclass_get() argument 61 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_oclass_get() 66 oclass->engn = &sw->func->sclass[index]; in nvkm_sw_oclass_get() 67 oclass->base = sw->func->sclass[index].base; in nvkm_sw_oclass_get() 68 oclass->base.ctor = nvkm_sw_oclass_new; in nvkm_sw_oclass_get() 78 const struct nvkm_oclass *oclass, in nvkm_sw_cclass_get() argument [all …]
|
D | nvsw.c | 61 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_nvsw_new_() argument 70 nvkm_object_ctor(&nvkm_nvsw_, oclass, &nvsw->object); in nvkm_nvsw_new_() 81 nvkm_nvsw_new(struct nvkm_sw_chan *chan, const struct nvkm_oclass *oclass, in nvkm_nvsw_new() argument 84 return nvkm_nvsw_new_(&nvkm_nvsw, chan, oclass, data, size, pobject); in nvkm_nvsw_new()
|
/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | base.c | 33 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_dma_oclass_new() argument 36 struct nvkm_dma *dma = nvkm_dma(oclass->engine); in nvkm_dma_oclass_new() 40 ret = dma->func->class_new(dma, oclass, data, size, &dmaobj); in nvkm_dma_oclass_new() 52 nvkm_dma_oclass_fifo_new(const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_dma_oclass_fifo_new() argument 55 return nvkm_dma_oclass_new(oclass->engine->subdev.device, in nvkm_dma_oclass_fifo_new() 56 oclass, data, size, pobject); in nvkm_dma_oclass_fifo_new() 72 const struct nvkm_sclass *oclass = &nvkm_dma_sclass[index]; in nvkm_dma_oclass_base_get() local 73 sclass->base = oclass[0]; in nvkm_dma_oclass_base_get() 74 sclass->engn = oclass; in nvkm_dma_oclass_base_get() 82 nvkm_dma_oclass_fifo_get(struct nvkm_oclass *oclass, int index) in nvkm_dma_oclass_fifo_get() argument [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | base.c | 89 nvkm_gr_oclass_get(struct nvkm_oclass *oclass, int index) in nvkm_gr_oclass_get() argument 91 struct nvkm_gr *gr = nvkm_gr(oclass->engine); in nvkm_gr_oclass_get() 95 int ret = gr->func->object_get(gr, index, &oclass->base); in nvkm_gr_oclass_get() 96 if (oclass->base.oclass) in nvkm_gr_oclass_get() 101 while (gr->func->sclass[c].oclass) { in nvkm_gr_oclass_get() 103 oclass->base = gr->func->sclass[index]; in nvkm_gr_oclass_get() 113 const struct nvkm_oclass *oclass, in nvkm_gr_cclass_new() argument 116 struct nvkm_gr *gr = nvkm_gr(oclass->engine); in nvkm_gr_cclass_new() 118 return gr->func->chan_new(gr, chan, oclass, pobject); in nvkm_gr_cclass_new()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | ummu.c | 33 struct nvkm_oclass *oclass) in nvkm_ummu_sclass() argument 37 if (mmu->func->mem.user.oclass && oclass->client->super) { in nvkm_ummu_sclass() 39 oclass->base = mmu->func->mem.user; in nvkm_ummu_sclass() 40 oclass->ctor = nvkm_umem_new; in nvkm_ummu_sclass() 45 if (mmu->func->vmm.user.oclass) { in nvkm_ummu_sclass() 47 oclass->base = mmu->func->vmm.user; in nvkm_ummu_sclass() 48 oclass->ctor = nvkm_uvmm_new; in nvkm_ummu_sclass() 153 nvkm_ummu_new(struct nvkm_device *device, const struct nvkm_oclass *oclass, in nvkm_ummu_new() argument 177 nvkm_object_ctor(&nvkm_ummu, oclass, &ummu->object); in nvkm_ummu_new()
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | oimm507b.c | 28 s32 oclass, struct nv50_wndw *wndw) in oimm507b_init_() argument 36 ret = nvif_object_ctor(&disp->disp->object, "kmsOvim", 0, oclass, in oimm507b_init_() 39 NV_ERROR(drm, "oimm%04x allocation failed: %d\n", oclass, ret); in oimm507b_init_() 49 oimm507b_init(struct nouveau_drm *drm, s32 oclass, struct nv50_wndw *wndw) in oimm507b_init() argument 51 return oimm507b_init_(&curs507a, drm, oclass, wndw); in oimm507b_init()
|
D | wimmc37b.c | 69 s32 oclass, struct nv50_wndw *wndw) in wimmc37b_init_() argument 79 &oclass, 0, &args, sizeof(args), -1, in wimmc37b_init_() 82 NV_ERROR(drm, "wimm%04x allocation failed: %d\n", oclass, ret); in wimmc37b_init_() 92 wimmc37b_init(struct nouveau_drm *drm, s32 oclass, struct nv50_wndw *wndw) in wimmc37b_init() argument 94 return wimmc37b_init_(&wimmc37b, drm, oclass, wndw); in wimmc37b_init()
|
/drivers/gpu/drm/nouveau/include/nvif/ |
D | object.h | 7 s32 oclass; member 17 s32 oclass; member 26 s32 oclass, void *, u32, struct nvif_object *); 75 s32 oclass; member 88 for (i = 0; ret < 0 && mclass[i].oclass; i++) { \ 90 if (mclass[i].oclass == sclass[j].oclass && \ 108 for (_cid = 0; _mclass[_cid].oclass; _cid++) { \ 109 if (_mclass[_cid].oclass == _oclass) \ 112 _cid = _mclass[_cid].oclass ? _cid : -ENOSYS; \
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | oimmnv50.c | 35 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_oimm_new_() argument 41 struct nvkm_object *parent = oclass->parent; in nv50_disp_oimm_new_() 55 head, oclass, pobject); in nv50_disp_oimm_new_() 59 nv50_disp_oimm_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_oimm_new() argument 63 oclass, argv, argc, pobject); in nv50_disp_oimm_new()
|
D | cursnv50.c | 35 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_curs_new_() argument 41 struct nvkm_object *parent = oclass->parent; in nv50_disp_curs_new_() 55 head, oclass, pobject); in nv50_disp_curs_new_() 59 nv50_disp_curs_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_curs_new() argument 63 oclass, argv, argc, pobject); in nv50_disp_curs_new()
|
D | ovlynv50.c | 36 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_ovly_new_() argument 42 struct nvkm_object *parent = oclass->parent; in nv50_disp_ovly_new_() 59 head, push, oclass, pobject); in nv50_disp_ovly_new_() 102 nv50_disp_ovly_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_ovly_new() argument 106 disp, 3, oclass, argv, argc, pobject); in nv50_disp_ovly_new()
|
D | basenv50.c | 36 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_base_new_() argument 42 struct nvkm_object *parent = oclass->parent; in nv50_disp_base_new_() 59 head, push, oclass, pobject); in nv50_disp_base_new_() 114 nv50_disp_base_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_base_new() argument 118 disp, 1, oclass, argv, argc, pobject); in nv50_disp_base_new()
|
D | wimmgv100.c | 50 const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wimm_new_() argument 56 struct nvkm_object *parent = oclass->parent; in gv100_disp_wimm_new_() 73 wndw, push, oclass, pobject); in gv100_disp_wimm_new_() 77 gv100_disp_wimm_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wimm_new() argument 81 oclass, argv, argc, pobject); in gv100_disp_wimm_new()
|
D | channv50.c | 244 nv50_disp_chan_child_new(const struct nvkm_oclass *oclass, in nv50_disp_chan_child_new() argument 247 struct nv50_disp_chan *chan = nv50_disp_chan(oclass->parent); in nv50_disp_chan_child_new() 250 const struct nvkm_device_oclass *sclass = oclass->priv; in nv50_disp_chan_child_new() 256 nvkm_oproxy_ctor(&nv50_disp_chan_child_func_, oclass, &object->oproxy); in nv50_disp_chan_child_new() 260 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nv50_disp_chan_child_new() 265 oclass->handle); in nv50_disp_chan_child_new() 278 const struct nvkm_device_oclass *oclass = NULL; in nv50_disp_chan_child_get() local 286 sclass->engine->func->base.sclass(sclass, index, &oclass); in nv50_disp_chan_child_get() 287 if (oclass) { in nv50_disp_chan_child_get() 289 sclass->priv = oclass; in nv50_disp_chan_child_get() [all …]
|
D | wndwgv100.c | 152 const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wndw_new_() argument 158 struct nvkm_object *parent = oclass->parent; in gv100_disp_wndw_new_() 175 wndw, push, oclass, pobject); in gv100_disp_wndw_new_() 179 gv100_disp_wndw_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wndw_new() argument 183 disp, 1, oclass, argv, argc, pobject); in gv100_disp_wndw_new()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_abi16.c | 432 s32 oclass = 0; in nouveau_abi16_ioctl_grobj_alloc() local 452 for (i = 0; !oclass && i < ret; i++) { in nouveau_abi16_ioctl_grobj_alloc() 453 switch (sclass[i].oclass) { in nouveau_abi16_ioctl_grobj_alloc() 458 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc() 468 if ((sclass[i].oclass & 0x00ff) == 0x00b1) { in nouveau_abi16_ioctl_grobj_alloc() 469 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc() 477 if ((sclass[i].oclass & 0x00ff) == 0x00b2) { in nouveau_abi16_ioctl_grobj_alloc() 478 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc() 486 if ((sclass[i].oclass & 0x00ff) == 0x00b3) { in nouveau_abi16_ioctl_grobj_alloc() 487 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc() [all …]
|
/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 69 size = sizeof(*args) + cnt * sizeof(args->sclass.oclass[0]); in nvif_object_sclass_get() 89 (*psclass)[i].oclass = args->sclass.oclass[i].oclass; in nvif_object_sclass_get() 90 (*psclass)[i].minver = args->sclass.oclass[i].minver; in nvif_object_sclass_get() 91 (*psclass)[i].maxver = args->sclass.oclass[i].maxver; in nvif_object_sclass_get() 264 s32 oclass, void *data, u32 size, struct nvif_object *object) in nvif_object_ctor() argument 275 object->oclass = oclass; in nvif_object_ctor() 294 args->new.oclass = oclass; in nvif_object_ctor()
|
/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | user.c | 336 nvkm_udevice_child_new(const struct nvkm_oclass *oclass, in nvkm_udevice_child_new() argument 339 struct nvkm_udevice *udev = nvkm_udevice(oclass->parent); in nvkm_udevice_child_new() 340 const struct nvkm_device_oclass *sclass = oclass->priv; in nvkm_udevice_child_new() 341 return sclass->ctor(udev->device, oclass, data, size, pobject); in nvkm_udevice_child_new() 346 struct nvkm_oclass *oclass) in nvkm_udevice_child_get() argument 362 oclass->engine = engine; in nvkm_udevice_child_get() 364 index -= engine->func->base.sclass(oclass, index, &sclass); in nvkm_udevice_child_get() 377 oclass->base = sclass->base; in nvkm_udevice_child_get() 380 oclass->ctor = nvkm_udevice_child_new; in nvkm_udevice_child_get() 381 oclass->priv = sclass; in nvkm_udevice_child_get() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
D | base.c | 367 const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_perfdom_new_() argument 374 struct nvkm_object *parent = oclass->parent; in nvkm_perfdom_new_() 418 nvkm_object_ctor(&nvkm_perfdom, oclass, &dom->object); in nvkm_perfdom_new_() 605 nvkm_perfmon_child_new(const struct nvkm_oclass *oclass, void *data, u32 size, in nvkm_perfmon_child_new() argument 608 struct nvkm_perfmon *perfmon = nvkm_perfmon(oclass->parent); in nvkm_perfmon_child_new() 609 return nvkm_perfdom_new_(perfmon, oclass, data, size, pobject); in nvkm_perfmon_child_new() 614 struct nvkm_oclass *oclass) in nvkm_perfmon_child_get() argument 617 oclass->base.oclass = NVIF_CLASS_PERFDOM; in nvkm_perfmon_child_get() 618 oclass->base.minver = 0; in nvkm_perfmon_child_get() 619 oclass->base.maxver = 0; in nvkm_perfmon_child_get() [all …]
|