Home
last modified time | relevance | path

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

1234

/Linux-v5.15/fs/erofs/
Dzpvec.h36 static inline void z_erofs_pagevec_ctor_exit(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_exit() argument
39 if (!ctor->curr) in z_erofs_pagevec_ctor_exit()
43 kunmap_atomic(ctor->pages); in z_erofs_pagevec_ctor_exit()
45 kunmap(ctor->curr); in z_erofs_pagevec_ctor_exit()
49 z_erofs_pagevec_ctor_next_page(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_next_page() argument
55 if (ctor->next) in z_erofs_pagevec_ctor_next_page()
56 return ctor->next; in z_erofs_pagevec_ctor_next_page()
59 const erofs_vtptr_t t = ctor->pages[index]; in z_erofs_pagevec_ctor_next_page()
65 DBG_BUGON(nr >= ctor->nr); in z_erofs_pagevec_ctor_next_page()
70 z_erofs_pagevec_ctor_pagedown(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_pagedown() argument
[all …]
/Linux-v5.15/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-v5.15/tools/testing/radix-tree/
Dlinux.c26 void (*ctor)(void *); member
50 if (cachep->ctor) in kmem_cache_alloc()
51 cachep->ctor(p); in kmem_cache_alloc()
109 unsigned int flags, void (*ctor)(void *)) in kmem_cache_create()
118 ret->ctor = ctor; in kmem_cache_create()
/Linux-v5.15/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-v5.15/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-v5.15/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
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dbase.c144 .ctor = nvkm_fifo_kevent_ctor,
162 .ctor = nvkm_fifo_cevent_ctor,
205 .ctor = nvkm_fifo_uevent_ctor,
229 .ctor = nvkm_fifo_class_new_,
239 return sclass->ctor(fifo, oclass, data, size, pobject); in nvkm_fifo_class_new()
244 .ctor = nvkm_fifo_class_new,
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()
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,
/Linux-v5.15/mm/
Dslab_common.c179 if (s->ctor) in slab_unmergeable()
195 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable()
202 if (ctor) in find_mergeable()
244 unsigned int usersize, void (*ctor)(void *), in create_cache()
261 s->ctor = ctor; in create_cache()
314 void (*ctor)(void *)) in kmem_cache_create_usercopy()
357 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy()
369 flags, useroffset, usersize, ctor, NULL); in kmem_cache_create_usercopy()
420 slab_flags_t flags, void (*ctor)(void *)) in kmem_cache_create()
423 ctor); in kmem_cache_create()
Dslab.h29 void (*ctor)(void *); /* Called on object slot creation */ member
106 slab_flags_t flags, const char *name, void (*ctor)(void *));
110 slab_flags_t flags, void (*ctor)(void *));
117 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias()
610 if (c->ctor) in slab_want_init_on_alloc()
623 return !(c->ctor || in slab_want_init_on_free()
/Linux-v5.15/arch/powerpc/mm/
Dinit-common.c58 static inline void (*ctor(int shift))(void *) in ctor() function
121 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
/Linux-v5.15/lib/
Dtest_meminit.c352 bool ctor, rcu, zero; in test_kmemcache() local
357 ctor = flags & 1; in test_kmemcache()
360 if (ctor & zero) in test_kmemcache()
362 num_tests += do_kmem_cache_size(size, ctor, rcu, zero, in test_kmemcache()
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Drootnv50.c282 return user->ctor(oclass, argv, argc, disp, pobject); in nv50_disp_root_child_new_()
291 if (root->func->user[index].ctor) { in nv50_disp_root_child_get_()
294 sclass->ctor = nv50_disp_root_child_new_; in nv50_disp_root_child_get_()
359 .ctor = nv50_disp_root_new,
Dchangv100.c26 .ctor = nv50_disp_chan_uevent_ctor,
Dbase.c85 .ctor = nvkm_disp_vblank_ctor,
128 .ctor = nvkm_disp_hpd_ctor
186 return sclass->ctor(disp, oclass, data, size, &oproxy->object); in nvkm_disp_class_new()
191 .ctor = nvkm_disp_class_new,
Drootgm200.c54 .ctor = gm200_disp_root_new,
Drootg84.c54 .ctor = g84_disp_root_new,
Drootg94.c54 .ctor = g94_disp_root_new,
/Linux-v5.15/include/linux/
Dlivepatch.h224 klp_shadow_ctor_t ctor, void *ctor_data);
227 klp_shadow_ctor_t ctor, void *ctor_data);
/Linux-v5.15/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-v5.15/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-v5.15/tools/testing/radix-tree/linux/
Dslab.h25 void (*ctor)(void *));

1234