Home
last modified time | relevance | path

Searched refs:sclass (Results 1 – 25 of 113) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dudisp.c31 nvkm_udisp_sclass(struct nvkm_object *object, int index, struct nvkm_oclass *sclass) in nvkm_udisp_sclass() argument
36 sclass->base = (struct nvkm_sclass) { 0, 0, NVIF_CLASS_CONN }; in nvkm_udisp_sclass()
37 sclass->ctor = nvkm_uconn_new; in nvkm_udisp_sclass()
42 sclass->base = (struct nvkm_sclass) { 0, 0, NVIF_CLASS_OUTP }; in nvkm_udisp_sclass()
43 sclass->ctor = nvkm_uoutp_new; in nvkm_udisp_sclass()
48 sclass->base = (struct nvkm_sclass) { 0, 0, NVIF_CLASS_HEAD }; in nvkm_udisp_sclass()
49 sclass->ctor = nvkm_uhead_new; in nvkm_udisp_sclass()
54 sclass->base = disp->func->user[index].base; in nvkm_udisp_sclass()
55 sclass->ctor = disp->func->user[index].ctor; in nvkm_udisp_sclass()
77 .sclass = nvkm_udisp_sclass,
Dchan.c107 const struct nvkm_device_oclass *sclass = oclass->priv; in nvkm_disp_chan_child_new() local
117 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nvkm_disp_chan_child_new()
129 nvkm_disp_chan_child_get(struct nvkm_object *object, int index, struct nvkm_oclass *sclass) in nvkm_disp_chan_child_get() argument
136 sclass->engine = nvkm_device_engine(device, NVKM_ENGINE_DMAOBJ, 0); in nvkm_disp_chan_child_get()
138 sclass->engine = NULL; in nvkm_disp_chan_child_get()
140 if (sclass->engine && sclass->engine->func->base.sclass) { in nvkm_disp_chan_child_get()
141 sclass->engine->func->base.sclass(sclass, index, &oclass); in nvkm_disp_chan_child_get()
143 sclass->ctor = nvkm_disp_chan_child_new; in nvkm_disp_chan_child_get()
144 sclass->priv = oclass; in nvkm_disp_chan_child_get()
195 .sclass = nvkm_disp_chan_child_get,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvif/
Dobject.c62 struct nvif_ioctl_sclass_v0 sclass; in nvif_object_sclass_get() member
68 size = sizeof(*args) + cnt * sizeof(args->sclass.oclass[0]); in nvif_object_sclass_get()
73 args->sclass.version = 0; in nvif_object_sclass_get()
74 args->sclass.count = cnt; in nvif_object_sclass_get()
77 if (ret == 0 && args->sclass.count <= cnt) in nvif_object_sclass_get()
79 cnt = args->sclass.count; in nvif_object_sclass_get()
85 *psclass = kcalloc(args->sclass.count, sizeof(**psclass), GFP_KERNEL); in nvif_object_sclass_get()
87 for (i = 0; i < args->sclass.count; i++) { in nvif_object_sclass_get()
88 (*psclass)[i].oclass = args->sclass.oclass[i].oclass; in nvif_object_sclass_get()
89 (*psclass)[i].minver = args->sclass.oclass[i].minver; in nvif_object_sclass_get()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/device/
Duser.c311 const struct nvkm_device_oclass *sclass = oclass->priv; in nvkm_udevice_child_new() local
312 return sclass->ctor(udev->device, oclass, data, size, pobject); in nvkm_udevice_child_new()
326 const struct nvkm_device_oclass *sclass = NULL; in nvkm_udevice_child_get() local
329 for (; i = __ffs64(mask), mask && !sclass; mask &= ~(1ULL << i)) { in nvkm_udevice_child_get()
331 !(engine->func->base.sclass)) in nvkm_udevice_child_get()
335 index -= engine->func->base.sclass(oclass, index, &sclass); in nvkm_udevice_child_get()
338 if (!sclass) { in nvkm_udevice_child_get()
340 sclass = &nvkm_control_oclass; in nvkm_udevice_child_get()
342 sclass = &device->mmu->user; in nvkm_udevice_child_get()
344 sclass = &device->fault->user; in nvkm_udevice_child_get()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dbase.c54 const struct nvkm_sw_chan_sclass *sclass = oclass->engn; in nvkm_sw_oclass_new() local
55 return sclass->ctor(chan, oclass, data, size, pobject); in nvkm_sw_oclass_new()
64 while (sw->func->sclass[c].ctor) { 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()
94 .fifo.sclass = nvkm_sw_oclass_get,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dbase.c67 nvkm_dma_oclass_base_get(struct nvkm_oclass *sclass, int index, in nvkm_dma_oclass_base_get() argument
73 sclass->base = oclass[0]; in nvkm_dma_oclass_base_get()
74 sclass->engn = oclass; in nvkm_dma_oclass_base_get()
101 .base.sclass = nvkm_dma_oclass_base_get,
102 .fifo.sclass = nvkm_dma_oclass_fifo_get,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c133 const struct nvkm_sclass *sclass; in nvkm_client_child_get() local
136 case 0: sclass = &nvkm_uclient_sclass; break; in nvkm_client_child_get()
137 case 1: sclass = &nvkm_udevice_sclass; break; in nvkm_client_child_get()
143 oclass->base = *sclass; in nvkm_client_child_get()
164 .sclass = nvkm_client_child_get,
Doproxy.c108 if (!oproxy->object->func->sclass) in nvkm_oproxy_sclass()
110 return oproxy->object->func->sclass(oproxy->object, index, oclass); in nvkm_oproxy_sclass()
207 .sclass = nvkm_oproxy_sclass,
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvkm/core/
Dengine.h31 int (*sclass)(struct nvkm_oclass *, int index, member
38 int (*sclass)(struct nvkm_oclass *, int index); member
42 struct nvkm_sclass sclass[]; member
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvif/
Dobject.h87 struct nvif_sclass *sclass; \
92 cnt = nvif_object_sclass_get(object, &sclass); \
96 if (mclass[i].oclass == sclass[j].oclass && \
97 mclass[i].version >= sclass[j].minver && \
98 mclass[i].version <= sclass[j].maxver) { \
104 nvif_object_sclass_put(&sclass); \
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_abi16.c500 struct nvif_sclass *sclass; in nouveau_abi16_ioctl_grobj_alloc() local
515 ret = nvif_object_sclass_get(&chan->chan->user, &sclass); in nouveau_abi16_ioctl_grobj_alloc()
522 switch (sclass[i].oclass) { in nouveau_abi16_ioctl_grobj_alloc()
527 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc()
537 if ((sclass[i].oclass & 0x00ff) == 0x00b1) { in nouveau_abi16_ioctl_grobj_alloc()
538 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc()
546 if ((sclass[i].oclass & 0x00ff) == 0x00b2) { in nouveau_abi16_ioctl_grobj_alloc()
547 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc()
555 if ((sclass[i].oclass & 0x00ff) == 0x00b3) { in nouveau_abi16_ioctl_grobj_alloc()
556 oclass = sclass[i].oclass; in nouveau_abi16_ioctl_grobj_alloc()
[all …]
/linux-6.6.21/security/selinux/
Dhooks.c1412 u16 sclass; in inode_doinit_with_dentry() local
1423 if (isec->sclass == SECCLASS_FILE) in inode_doinit_with_dentry()
1424 isec->sclass = inode_mode_to_security_class(inode->i_mode); in inode_doinit_with_dentry()
1438 sclass = isec->sclass; in inode_doinit_with_dentry()
1499 sclass, NULL, &sid); in inode_doinit_with_dentry()
1539 rc = selinux_genfs_get_sid(dentry, sclass, in inode_doinit_with_dentry()
1622 u16 sclass; in cred_has_capability() local
1632 sclass = initns ? SECCLASS_CAPABILITY : SECCLASS_CAP_USERNS; in cred_has_capability()
1635 sclass = initns ? SECCLASS_CAPABILITY2 : SECCLASS_CAP2_USERNS; in cred_has_capability()
1643 rc = avc_has_perm_noaudit(sid, sid, sclass, av, 0, &avd); in cred_has_capability()
[all …]
/linux-6.6.21/security/selinux/include/
Dobjsec.h51 u16 sclass; /* security class of this object */ member
79 u16 sclass; /* security class of this object */ member
117 u16 sclass; /* sock security class */ member
Dsecurity.h326 int security_genfs_sid(const char *fstype, const char *path, u16 sclass,
330 const char *fstype, const char *path, u16 sclass,
378 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dgf100.c43 .sclass = {
57 .sclass = {
Dgm200.c31 .sclass = {
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/
Dxtensa.c33 while (xtensa->func->sclass[c].oclass) { in nvkm_xtensa_oclass_get()
35 oclass->base = xtensa->func->sclass[index]; in nvkm_xtensa_oclass_get()
173 .fifo.sclass = nvkm_xtensa_oclass_get,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dbase.c101 while (gr->func->sclass[c].oclass) { in nvkm_gr_oclass_get()
103 oclass->base = gr->func->sclass[index]; in nvkm_gr_oclass_get()
196 .fifo.sclass = nvkm_gr_oclass_get,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Duchan.c225 if (engine->func->fifo.sclass) { in nvkm_uchan_sclass()
226 ret = engine->func->fifo.sclass(oclass, index); in nvkm_uchan_sclass()
238 while (engine->func->sclass[c].oclass) { in nvkm_uchan_sclass()
240 oclass->base = engine->func->sclass[index]; in nvkm_uchan_sclass()
316 .sclass = nvkm_uchan_sclass,
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/vp/
Dg84.c32 .sclass = {
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/mspdec/
Dgt215.c31 .sclass = {
Dgk104.c31 .sclass = {
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/msvld/
Dgt215.c31 .sclass = {
Dgk104.c31 .sclass = {
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/msppp/
Dgt215.c31 .sclass = {

12345