/kernel/linux/linux-5.10/fs/erofs/ |
H A D | zpvec.h | 37 static inline void z_erofs_pagevec_ctor_exit(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_exit() argument 40 if (!ctor->curr) in z_erofs_pagevec_ctor_exit() 44 kunmap_atomic(ctor->pages); in z_erofs_pagevec_ctor_exit() 46 kunmap(ctor->curr); in z_erofs_pagevec_ctor_exit() 50 z_erofs_pagevec_ctor_next_page(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_next_page() argument 56 if (ctor->next) in z_erofs_pagevec_ctor_next_page() 57 return ctor->next; in z_erofs_pagevec_ctor_next_page() 60 const erofs_vtptr_t t = ctor->pages[index]; in z_erofs_pagevec_ctor_next_page() 66 DBG_BUGON(nr >= ctor->nr); in z_erofs_pagevec_ctor_next_page() 71 z_erofs_pagevec_ctor_pagedown(struct z_erofs_pagevec_ctor *ctor, in z_erofs_pagevec_ctor_pagedown() argument 87 z_erofs_pagevec_ctor_init(struct z_erofs_pagevec_ctor *ctor, unsigned int nr, erofs_vtptr_t *pages, unsigned int i) z_erofs_pagevec_ctor_init() argument 108 z_erofs_pagevec_enqueue(struct z_erofs_pagevec_ctor *ctor, struct page *page, enum z_erofs_page_type type, bool pvec_safereuse) z_erofs_pagevec_enqueue() argument 139 z_erofs_pagevec_dequeue(struct z_erofs_pagevec_ctor *ctor, enum z_erofs_page_type *type) z_erofs_pagevec_dequeue() argument [all...] |
/kernel/linux/linux-5.10/kernel/livepatch/ |
H A D | shadow.c | 106 klp_shadow_ctor_t ctor, void *ctor_data, in __klp_shadow_get_or_alloc() 120 * More complex setting can be done by @ctor function. But it is in __klp_shadow_get_or_alloc() 143 if (ctor) { in __klp_shadow_get_or_alloc() 146 err = ctor(obj, new_shadow->data, ctor_data); in __klp_shadow_get_or_alloc() 178 * @ctor: custom constructor to initialize the shadow data (optional) 179 * @ctor_data: pointer to any data needed by @ctor (optional) 182 * The data are zeroed by default. They are further initialized by @ctor 190 * the variable did not exist before. The cost is that @ctor is called 198 klp_shadow_ctor_t ctor, void *ctor_data) in klp_shadow_alloc() 201 ctor, ctor_dat in klp_shadow_alloc() 104 __klp_shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data, bool warn_on_exist) __klp_shadow_get_or_alloc() argument 196 klp_shadow_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) klp_shadow_alloc() argument 225 klp_shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) klp_shadow_get_or_alloc() argument [all...] |
/kernel/linux/linux-6.6/kernel/livepatch/ |
H A D | shadow.c | 106 klp_shadow_ctor_t ctor, void *ctor_data, in __klp_shadow_get_or_alloc() 120 * More complex setting can be done by @ctor function. But it is in __klp_shadow_get_or_alloc() 143 if (ctor) { in __klp_shadow_get_or_alloc() 146 err = ctor(obj, new_shadow->data, ctor_data); in __klp_shadow_get_or_alloc() 178 * @ctor: custom constructor to initialize the shadow data (optional) 179 * @ctor_data: pointer to any data needed by @ctor (optional) 182 * The data are zeroed by default. They are further initialized by @ctor 190 * the variable did not exist before. The cost is that @ctor is called 198 klp_shadow_ctor_t ctor, void *ctor_data) in klp_shadow_alloc() 201 ctor, ctor_dat in klp_shadow_alloc() 104 __klp_shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data, bool warn_on_exist) __klp_shadow_get_or_alloc() argument 196 klp_shadow_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) klp_shadow_alloc() argument 225 klp_shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) klp_shadow_get_or_alloc() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
H A D | linux.c | 26 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | udisp.c | 37 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()
|
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | linux.c | 25 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()
|
/kernel/linux/linux-5.10/lib/livepatch/ |
H A D | test_klp_shadow_vars.c | 73 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_alloc() 79 sv = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_alloc() 80 pr_info("klp_%s(obj=PTR%d, id=0x%lx, size=%zx, gfp_flags=%pGg), ctor=PTR%d, ctor_data=PTR%d = PTR%d\n", 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() 94 sv = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_get_or_alloc() 95 pr_info("klp_%s(obj=PTR%d, id=0x%lx, size=%zx, gfp_flags=%pGg), ctor=PTR%d, ctor_data=PTR%d = PTR%d\n", in shadow_get_or_alloc() 96 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_get_or_alloc() 72 shadow_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) shadow_alloc() argument 87 shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) shadow_get_or_alloc() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | base.c | 144 .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,
|
H A D | chan.c | 176 ret = oclass->base.ctor(&(const struct nvkm_oclass) { in nvkm_fifo_chan_child_new() 220 if (!oclass->base.ctor) in nvkm_fifo_chan_child_get() 221 oclass->base.ctor = nvkm_object_new; in nvkm_fifo_chan_child_get() 222 oclass->ctor = nvkm_fifo_chan_child_new; in nvkm_fifo_chan_child_get() 233 if (!oclass->base.ctor) in nvkm_fifo_chan_child_get() 234 oclass->base.ctor = nvkm_object_new; in nvkm_fifo_chan_child_get() 235 oclass->ctor = nvkm_fifo_chan_child_new; in nvkm_fifo_chan_child_get()
|
H A D | gk104.h | 78 int (*ctor)(const struct nvkm_oclass *, void *, u32, member 84 int (*ctor)(struct gk104_fifo *, const struct nvkm_oclass *, member
|
/kernel/linux/linux-6.6/lib/livepatch/ |
H A D | test_klp_shadow_vars.c | 73 gfp_t gfp_flags, klp_shadow_ctor_t ctor, in shadow_alloc() 79 sv = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_alloc() 80 pr_info("klp_%s(obj=PTR%d, id=0x%lx, size=%zx, gfp_flags=%pGg), ctor=PTR%d, ctor_data=PTR%d = PTR%d\n", 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() 94 sv = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, var); in shadow_get_or_alloc() 95 pr_info("klp_%s(obj=PTR%d, id=0x%lx, size=%zx, gfp_flags=%pGg), ctor=PTR%d, ctor_data=PTR%d = PTR%d\n", in shadow_get_or_alloc() 96 __func__, ptr_id(obj), id, size, &gfp_flags, ptr_id(ctor), in shadow_get_or_alloc() 72 shadow_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) shadow_alloc() argument 87 shadow_get_or_alloc(void *obj, unsigned long id, size_t size, gfp_t gfp_flags, klp_shadow_ctor_t ctor, void *ctor_data) shadow_get_or_alloc() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | oclass.h | 13 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member 18 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | oclass.h | 13 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member 18 int (*ctor)(const struct nvkm_oclass *, void *data, u32 size, member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
H A D | base.c | 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() 68 oclass->base.ctor = nvkm_sw_oclass_new; in nvkm_sw_oclass_get()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
H A D | base.c | 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() 68 oclass->base.ctor = nvkm_sw_oclass_new; in nvkm_sw_oclass_get()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | uchan.c | 182 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()
|
/kernel/linux/linux-5.10/mm/ |
H A D | slab_common.c | 169 if (s->ctor) in slab_unmergeable() 185 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable() 192 if (ctor) in find_mergeable() 234 unsigned int usersize, void (*ctor)(void *), in create_cache() 251 s->ctor = ctor; in create_cache() 280 * @ctor: A constructor for the objects. 283 * The @ctor is run when new pages are allocated by the cache. 304 void (*ctor)(void *)) in kmem_cache_create_usercopy() 340 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy() [all...] |
H A D | slab.h | 29 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() 621 if (c->ctor) in slab_want_init_on_alloc() 633 return !(c->ctor || in slab_want_init_on_free()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | client.c | 67 .ctor = nvkm_uclient_new, 126 return oclass->base.ctor(oclass, data, size, pobject); in nvkm_client_child_new() 142 oclass->ctor = nvkm_client_child_new; in nvkm_client_child_get()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_meminit.c | 353 bool ctor, rcu, zero; in test_kmemcache() local 358 ctor = flags & 1; in test_kmemcache() 361 if (ctor & zero) in test_kmemcache() 363 num_tests += do_kmem_cache_size(size, ctor, rcu, zero, in test_kmemcache()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_meminit.c | 382 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()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
H A D | init-common.c | 64 static inline void (*ctor(int shift))(void *) in ctor() function 128 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
|
/kernel/linux/linux-6.6/arch/powerpc/mm/ |
H A D | init-common.c | 79 static inline void (*ctor(int shift))(void *) in ctor() function 143 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
|
/kernel/linux/linux-6.6/mm/ |
H A D | slab_common.c | 145 if (s->ctor) in slab_unmergeable() 163 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable() 170 if (ctor) in find_mergeable() 212 unsigned int usersize, void (*ctor)(void *), in create_cache() 229 s->ctor = ctor; in create_cache() 258 * @ctor: A constructor for the objects. 261 * The @ctor is run when new pages are allocated by the cache. 282 void (*ctor)(void *)) in kmem_cache_create_usercopy() 330 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | changv100.c | 26 .ctor = nv50_disp_chan_uevent_ctor,
|