Home
last modified time | relevance | path

Searched refs:ctor (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.1.9/kernel/livepatch/
Dshadow.c106 klp_shadow_ctor_t ctor, void *ctor_data, in __klp_shadow_get_or_alloc() argument
143 if (ctor) { in __klp_shadow_get_or_alloc()
146 err = ctor(obj, new_shadow->data, ctor_data); in __klp_shadow_get_or_alloc()
198 klp_shadow_ctor_t ctor, void *ctor_data) in klp_shadow_alloc() argument
201 ctor, ctor_data, true); in klp_shadow_alloc()
227 klp_shadow_ctor_t ctor, void *ctor_data) in klp_shadow_get_or_alloc() argument
230 ctor, ctor_data, false); in klp_shadow_get_or_alloc()
/linux-6.1.9/tools/testing/radix-tree/
Dlinux.c25 void (*ctor)(void *); member
82 if (cachep->ctor) in kmem_cache_alloc_lru()
83 cachep->ctor(p); in kmem_cache_alloc_lru()
172 if (cachep->ctor) in kmem_cache_alloc_bulk()
173 cachep->ctor(p[i]); in kmem_cache_alloc_bulk()
192 unsigned int flags, void (*ctor)(void *)) in kmem_cache_create()
203 ret->ctor = ctor; in kmem_cache_create()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dudisp.c36 sclass->ctor = nvkm_uconn_new; in nvkm_udisp_sclass()
42 sclass->ctor = nvkm_uoutp_new; in nvkm_udisp_sclass()
46 if (disp->func->user[index].ctor) { in nvkm_udisp_sclass()
48 sclass->ctor = disp->func->user[index].ctor; in nvkm_udisp_sclass()
Dchan.c117 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nvkm_disp_chan_child_new()
143 sclass->ctor = nvkm_disp_chan_child_new; in nvkm_disp_chan_child_get()
207 for (i = 0; disp->func->user[i].ctor; i++) { in nvkm_disp_chan_new_()
/linux-6.1.9/lib/livepatch/
Dtest_klp_shadow_vars.c73 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_alloc() argument
79 sv = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_alloc()
81 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_alloc()
88 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_get_or_alloc() argument
94 sv = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_get_or_alloc()
96 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_get_or_alloc()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dbase.c55 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()
68 oclass->base.ctor = nvkm_sw_oclass_new; in nvkm_sw_oclass_get()
Dpriv.h12 int (*ctor)(struct nvkm_sw_chan *, const struct nvkm_oclass *, member
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvkm/core/
Doclass.h13 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member
18 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member
Ddevice.h90 int (*ctor)(struct nvkm_device *, enum nvkm_subdev_type, int inst, data **); \
118 int (*ctor)(struct nvkm_device *, const struct nvkm_oclass *, member
Devent.h21 int (*ctor)(struct nvkm_object *, void *data, u32 size, member
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchan.c185 ret = oclass->base.ctor(&(const struct nvkm_oclass) { in nvkm_fifo_chan_child_new()
228 if (!oclass->base.ctor) in nvkm_fifo_chan_child_get()
229 oclass->base.ctor = nvkm_object_new; in nvkm_fifo_chan_child_get()
230 oclass->ctor = nvkm_fifo_chan_child_new; in nvkm_fifo_chan_child_get()
241 if (!oclass->base.ctor) in nvkm_fifo_chan_child_get()
242 oclass->base.ctor = nvkm_object_new; in nvkm_fifo_chan_child_get()
243 oclass->ctor = nvkm_fifo_chan_child_new; in nvkm_fifo_chan_child_get()
Dbase.c144 .ctor = nvkm_fifo_kevent_ctor,
181 .ctor = nvkm_fifo_uevent_ctor,
205 .ctor = nvkm_fifo_class_new_,
215 return sclass->ctor(fifo, oclass, data, size, pobject); in nvkm_fifo_class_new()
220 .ctor = nvkm_fifo_class_new,
Dgk104.h79 int (*ctor)(const struct nvkm_oclass *, void *, u32, member
85 int (*ctor)(struct gk104_fifo *, const struct nvkm_oclass *, member
Dga102.c60 oclass->ctor = nvkm_object_new; in ga102_chan_sclass()
242 .ctor = ga102_chan_new,
254 .ctor = ga102_user_new,
Dchan.h29 int (*ctor)(struct nvkm_fifo *, const struct nvkm_oclass *, member
/linux-6.1.9/mm/
Dslab_common.c143 if (s->ctor) in slab_unmergeable()
159 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable()
166 if (ctor) in find_mergeable()
208 unsigned int usersize, void (*ctor)(void *), in create_cache()
225 s->ctor = ctor; in create_cache()
278 void (*ctor)(void *)) in kmem_cache_create_usercopy()
325 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy()
337 flags, useroffset, usersize, ctor, NULL); in kmem_cache_create_usercopy()
388 slab_flags_t flags, void (*ctor)(void *)) in kmem_cache_create()
391 ctor); in kmem_cache_create()
Dslab.h214 void (*ctor)(void *); /* Called on object slot creation */ member
297 slab_flags_t flags, const char *name, void (*ctor)(void *));
301 slab_flags_t flags, void (*ctor)(void *));
308 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias()
824 if (c->ctor) in slab_want_init_on_alloc()
837 return !(c->ctor || in slab_want_init_on_free()
/linux-6.1.9/arch/powerpc/mm/
Dinit-common.c79 static inline void (*ctor(int shift))(void *) in ctor() function
142 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
/linux-6.1.9/lib/
Dtest_meminit.c382 bool ctor, rcu, zero; in test_kmemcache() local
387 ctor = flags & 1; in test_kmemcache()
390 if (ctor & zero) in test_kmemcache()
392 num_tests += do_kmem_cache_size(size, ctor, rcu, zero, in test_kmemcache()
/linux-6.1.9/include/linux/
Dlivepatch.h222 klp_shadow_ctor_t ctor, void *ctor_data);
225 klp_shadow_ctor_t ctor, void *ctor_data);
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/fault/
Dbase.c57 .ctor = nvkm_fault_ntfy_ctor,
180 fault->user.ctor = nvkm_ufault_new; in nvkm_fault_new_()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c68 .ctor = nvkm_uclient_new,
234 return oclass->base.ctor(oclass, data, size, pobject); in nvkm_client_child_new()
250 oclass->ctor = nvkm_client_child_new; in nvkm_client_child_get()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dummu.c40 oclass->ctor = nvkm_umem_new; in nvkm_ummu_sclass()
48 oclass->ctor = nvkm_uvmm_new; in nvkm_ummu_sclass()
/linux-6.1.9/tools/include/linux/
Dslab.h42 void (*ctor)(void *));
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/device/
Duser.c312 return sclass->ctor(udev->device, oclass, data, size, pobject); in nvkm_udevice_child_new()
352 oclass->ctor = nvkm_udevice_child_new; in nvkm_udevice_child_get()
427 .ctor = nvkm_udevice_new,

123