Home
last modified time | relevance | path

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

123

/linux/kernel/livepatch/
H A 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/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dudisp.c37 sclass->ctor = nvkm_uconn_new; in nvkm_udisp_sclass()
43 sclass->ctor = nvkm_uoutp_new; in nvkm_udisp_sclass()
49 sclass->ctor = nvkm_uhead_new; in nvkm_udisp_sclass()
53 if (disp->func->user[index].ctor) { in nvkm_udisp_sclass()
55 sclass->ctor = disp->func->user[index].ctor; in nvkm_udisp_sclass()
H A Dchan.c95 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nvkm_disp_chan_child_new()
121 sclass->ctor = nvkm_disp_chan_child_new; in nvkm_disp_chan_child_get()
183 for (i = 0; disp->func->user[i].ctor; i++) { in nvkm_disp_chan_new_()
/linux/tools/testing/shared/
H A Dlinux.c25 void (*ctor)(void *); member
103 if (cachep->ctor) in kmem_cache_alloc_lru()
104 cachep->ctor(p); in kmem_cache_alloc_lru()
205 if (cachep->ctor) in kmem_cache_alloc_bulk()
206 cachep->ctor(p[i]); in kmem_cache_alloc_bulk()
234 unsigned int flags, void (*ctor)(void *)) in kmem_cache_create()
245 ret->ctor = ctor; in kmem_cache_create()
/linux/tools/testing/selftests/livepatch/test_modules/
H A 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/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A 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()
H A Dpriv.h12 int (*ctor)(struct nvkm_sw_chan *, const struct nvkm_oclass *, member
/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dclient.c65 .ctor = nvkm_uclient_new,
72 return oclass->base.ctor(oclass, data, size, pobject); in nvkm_client_child_new()
88 oclass->ctor = nvkm_client_child_new; in nvkm_client_child_get()
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A 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
H A Ddevice.h103 int (*ctor)(struct nvkm_device *, enum nvkm_subdev_type, int inst, data **); \
130 int (*ctor)(struct nvkm_device *, const struct nvkm_oclass *, member
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Duchan.c182 ret = oclass->base.ctor(&(const struct nvkm_oclass) { in nvkm_uchan_object_new()
228 if (!oclass->base.ctor) in nvkm_uchan_sclass()
229 oclass->base.ctor = nvkm_object_new; in nvkm_uchan_sclass()
230 oclass->ctor = nvkm_uchan_object_new; in nvkm_uchan_sclass()
241 if (!oclass->base.ctor) in nvkm_uchan_sclass()
242 oclass->base.ctor = nvkm_object_new; in nvkm_uchan_sclass()
243 oclass->ctor = nvkm_uchan_object_new; in nvkm_uchan_sclass()
/linux/include/linux/
H A Dslab.h311 void (*ctor)(void *); member
320 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_create()
324 .ctor = ctor, in __kmem_cache_create()
352 void (*ctor)(void *)) in kmem_cache_create_usercopy()
356 .ctor = ctor, in kmem_cache_create_usercopy()
751 void (*ctor)(void *));
H A Dlivepatch.h223 klp_shadow_ctor_t ctor, void *ctor_data);
226 klp_shadow_ctor_t ctor, void *ctor_data);
/linux/mm/
H A Dslab.h276 void (*ctor)(void *object); /* Object constructor */ member
436 slab_flags_t flags, const char *name, void (*ctor)(void *));
439 slab_flags_t flags, void (*ctor)(void *));
656 if (c->ctor) in slab_want_init_on_alloc()
669 return !(c->ctor ||
H A Dslab_common.c156 if (s->ctor) in slab_unmergeable()
174 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable()
181 if (ctor) in find_mergeable()
322 args->ctor); in __kmem_cache_create_args()
369 * @ctor: A constructor for the objects, run when new allocations are made.
381 void (*ctor)(void *)) in kmem_buckets_create()
437 cache_usersize, ctor); in kmem_buckets_create()
/linux/arch/powerpc/mm/
H A Dinit-common.c82 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/lib/
H A 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/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Duser.c265 return sclass->ctor(udev->device, oclass, data, size, pobject); in nvkm_udevice_child_new()
306 oclass->ctor = nvkm_udevice_child_new; in nvkm_udevice_child_get()
345 .ctor = nvkm_udevice_new,
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dad102.c35 .booter.ctor = ga102_gsp_booter_ctor,
H A Dtu116.c34 .booter.ctor = tu102_gsp_booter_ctor,
H A Dga100.c51 .booter.ctor = tu102_gsp_booter_ctor,
H A Dpriv.h34 int (*ctor)(struct nvkm_gsp *, const char *name, const struct firmware *, member
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dummu.c40 oclass->ctor = nvkm_umem_new; in nvkm_ummu_sclass()
48 oclass->ctor = nvkm_uvmm_new; in nvkm_ummu_sclass()
/linux/tools/include/linux/
H A Dslab.h41 void (*ctor)(void *));
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/
H A Dbase.c57 vfn->user.ctor = nvkm_uvfn_new; in nvkm_vfn_new_()

123