Home
last modified time | relevance | path

Searched refs:kmem_cache (Results 1 – 25 of 570) sorted by relevance

12345678910>>...23

/openbmc/linux/mm/
H A Dslab.h47 struct kmem_cache *slab_cache;
60 struct kmem_cache *slab_cache;
272 extern struct kmem_cache *kmem_cache;
303 int slab_unmergeable(struct kmem_cache *s);
306 struct kmem_cache *
633 struct kmem_cache *s, gfp_t gfp) in account_slab()
643 struct kmem_cache *s) in unaccount_slab()
652 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
654 struct kmem_cache *cachep; in cache_from_obj()
702 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
[all …]
H A Dslub.c1918 struct kmem_cache *s; in init_freelist_randomization()
2787 struct kmem_cache *s;
2798 struct kmem_cache *s; in flush_cpu_slab()
2866 struct kmem_cache *s; in slub_cpu_dead()
3840 struct kmem_cache *s;
4750 struct kmem_cache *s; in __check_heap_object()
4869 struct kmem_cache *s; in slab_mem_going_offline_callback()
4908 struct kmem_cache *s; in slab_mem_going_online_callback()
4996 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in bootstrap()
5085 struct kmem_cache *
[all …]
H A Dslab.c855 struct kmem_cache *cachep; in init_cache_node_node()
937 struct kmem_cache *cachep; in cpuup_canceled()
1003 struct kmem_cache *cachep; in cpuup_prepare()
1092 struct kmem_cache *cachep; in drain_cache_node_node()
1264 struct kmem_cache *cachep; in kmem_cache_init_late()
1398 struct kmem_cache *cachep; in kmem_rcu_free()
1786 struct kmem_cache *
1790 struct kmem_cache *cachep; in __kmem_cache_alias()
3528 struct kmem_cache *cachep; in __kmem_obj_info()
3593 struct kmem_cache *s; in kmem_cache_free_bulk()
[all …]
H A Dslab_common.c40 struct kmem_cache *kmem_cache; variable
165 struct kmem_cache *s; in find_mergeable()
215 struct kmem_cache *s; in create_cache()
277 struct kmem_cache *
391 struct kmem_cache *
646 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
657 struct kmem_cache *
991 struct kmem_cache *s; in __do_kmalloc_node()
1041 struct kmem_cache *s; in kfree()
1290 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
[all …]
/openbmc/linux/include/linux/
H A Dkasan.h11 struct kmem_cache;
148 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache,
151 struct kmem_cache *cache, const void *object) in kasan_init_slab_obj()
158 bool __kasan_slab_free(struct kmem_cache *s, void *object,
160 static __always_inline bool kasan_slab_free(struct kmem_cache *s, in kasan_slab_free()
182 void * __must_check __kasan_slab_alloc(struct kmem_cache *s,
185 struct kmem_cache *s, void *object, gfp_t flags, bool init) in kasan_slab_alloc()
249 static inline void *kasan_init_slab_obj(struct kmem_cache *cache, in kasan_init_slab_obj()
304 void kasan_cache_shrink(struct kmem_cache *cache);
305 void kasan_cache_shutdown(struct kmem_cache *cache);
[all …]
H A Dslub_def.h98 struct kmem_cache { struct
159 void sysfs_slab_unlink(struct kmem_cache *); argument
160 void sysfs_slab_release(struct kmem_cache *);
162 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
165 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
170 void *fixup_red_left(struct kmem_cache *s, void *p);
172 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj()
184 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
191 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
199 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
H A Dslab.h189 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
192 struct kmem_cache *kmem_cache_create_usercopy(const char *name,
197 void kmem_cache_destroy(struct kmem_cache *s);
198 int kmem_cache_shrink(struct kmem_cache *s);
388 extern struct kmem_cache *
501 void *kmem_cache_alloc_lru(struct kmem_cache *s, struct list_lru *lru,
503 void kmem_cache_free(struct kmem_cache *s, void *objp);
512 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p);
525 void *kmalloc_trace(struct kmem_cache *s, gfp_t flags, size_t size)
528 void *kmalloc_node_trace(struct kmem_cache *s, gfp_t gfpflags,
[all …]
H A Dkfence.h94 void kfence_shutdown_cache(struct kmem_cache *s);
100 void *__kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags);
118 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc()
229 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache()
230 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc()
H A Dslab_def.h12 struct kmem_cache { struct
91 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj() argument
109 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
116 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
H A Dkmsan.h18 struct kmem_cache;
100 void kmsan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags);
109 void kmsan_slab_free(struct kmem_cache *s, void *object);
270 static inline void kmsan_slab_alloc(struct kmem_cache *s, void *object, in kmsan_slab_alloc()
275 static inline void kmsan_slab_free(struct kmem_cache *s, void *object) in kmsan_slab_free()
/openbmc/linux/tools/testing/radix-tree/
H A Dlinux.c19 struct kmem_cache { struct
36 unsigned long kmem_cache_get_alloc(struct kmem_cache *cachep) in kmem_cache_get_alloc()
41 unsigned long kmem_cache_nr_allocated(struct kmem_cache *cachep) in kmem_cache_nr_allocated()
46 unsigned long kmem_cache_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_nr_tallocated()
51 void kmem_cache_zero_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_zero_nr_tallocated()
96 void kmem_cache_free_locked(struct kmem_cache *cachep, void *objp) in kmem_cache_free_locked()
114 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
132 void kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
190 struct kmem_cache *
194 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
[all …]
/openbmc/linux/tools/include/linux/
H A Dslab.h33 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *, int flags);
34 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc()
38 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
40 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
44 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list);
45 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
/openbmc/linux/lib/
H A Dslub_kunit.c19 static struct kmem_cache *test_kmem_cache_create(const char *name, in test_kmem_cache_create()
22 struct kmem_cache *s = kmem_cache_create(name, size, 0, in test_kmem_cache_create()
30 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_alloc", 64, in test_clobber_zone()
48 struct kmem_cache *s = test_kmem_cache_create("TestSlub_next_ptr_free", in test_next_pointer()
93 struct kmem_cache *s = test_kmem_cache_create("TestSlub_1th_word_free", in test_first_word()
108 struct kmem_cache *s = test_kmem_cache_create("TestSlub_50th_word_free", in test_clobber_50th_byte()
124 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_free", 64, in test_clobber_redzone_free()
141 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_kmalloc", 32, in test_kmalloc_redzone_access()
/openbmc/linux/mm/kasan/
H A Dkasan.h208 struct kmem_cache *cache;
331 size_t kasan_get_alloc_size(void *object, struct kmem_cache *cache);
348 void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object);
360 void kasan_init_cache_meta(struct kmem_cache *cache, unsigned int *size);
361 void kasan_init_object_meta(struct kmem_cache *cache, const void *object);
362 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache,
364 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache,
374 void kasan_save_free_info(struct kmem_cache *cache, void *object);
378 bool kasan_quarantine_put(struct kmem_cache *cache, void *object);
380 void kasan_quarantine_remove_cache(struct kmem_cache *cache);
[all …]
H A Dquarantine.c127 static struct kmem_cache *qlink_to_cache(struct qlist_node *qlink) in qlink_to_cache()
132 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object()
141 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free()
172 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all()
181 struct kmem_cache *obj_cache = in qlist_free_all()
191 bool kasan_quarantine_put(struct kmem_cache *cache, void *object) in kasan_quarantine_put()
298 struct kmem_cache *cache) in qlist_move_cache()
309 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache()
322 struct kmem_cache *cache = arg; in __per_cpu_remove_cache()
348 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache()
/openbmc/u-boot/lib/
H A Dlinux_compat.c29 struct kmem_cache *get_mem(int element_sz) in get_mem()
31 struct kmem_cache *ret; in get_mem()
33 ret = memalign(ARCH_DMA_MINALIGN, sizeof(struct kmem_cache)); in get_mem()
39 void *kmem_cache_alloc(struct kmem_cache *obj, int flag) in kmem_cache_alloc()
/openbmc/linux/fs/jffs2/
H A Dmalloc.c22 static struct kmem_cache *full_dnode_slab;
23 static struct kmem_cache *raw_dirent_slab;
24 static struct kmem_cache *raw_inode_slab;
25 static struct kmem_cache *tmp_dnode_info_slab;
26 static struct kmem_cache *raw_node_ref_slab;
27 static struct kmem_cache *node_frag_slab;
28 static struct kmem_cache *inode_cache_slab;
30 static struct kmem_cache *xattr_datum_cache;
31 static struct kmem_cache *xattr_ref_cache;
/openbmc/linux/fs/dlm/
H A Dmemory.c19 static struct kmem_cache *writequeue_cache;
20 static struct kmem_cache *mhandle_cache;
21 static struct kmem_cache *msg_cache;
22 static struct kmem_cache *lkb_cache;
23 static struct kmem_cache *rsb_cache;
24 static struct kmem_cache *cb_cache;
/openbmc/linux/drivers/target/
H A Dtarget_core_alua.h79 extern struct kmem_cache *t10_alua_lu_gp_cache;
80 extern struct kmem_cache *t10_alua_lu_gp_mem_cache;
81 extern struct kmem_cache *t10_alua_tg_pt_gp_cache;
82 extern struct kmem_cache *t10_alua_lba_map_cache;
83 extern struct kmem_cache *t10_alua_lba_map_mem_cache;
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target.h52 extern struct kmem_cache *lio_dr_cache;
53 extern struct kmem_cache *lio_ooo_cache;
54 extern struct kmem_cache *lio_qr_cache;
55 extern struct kmem_cache *lio_r2t_cache;
/openbmc/linux/fs/gfs2/
H A Dutil.h170 extern struct kmem_cache *gfs2_glock_cachep;
171 extern struct kmem_cache *gfs2_glock_aspace_cachep;
172 extern struct kmem_cache *gfs2_inode_cachep;
173 extern struct kmem_cache *gfs2_bufdata_cachep;
174 extern struct kmem_cache *gfs2_rgrpd_cachep;
175 extern struct kmem_cache *gfs2_quotad_cachep;
176 extern struct kmem_cache *gfs2_qadata_cachep;
177 extern struct kmem_cache *gfs2_trans_cachep;
/openbmc/linux/fs/ntfs/
H A Dntfs.h38 extern struct kmem_cache *ntfs_name_cache;
39 extern struct kmem_cache *ntfs_inode_cache;
40 extern struct kmem_cache *ntfs_big_inode_cache;
41 extern struct kmem_cache *ntfs_attr_ctx_cache;
42 extern struct kmem_cache *ntfs_index_ctx_cache;
/openbmc/linux/fs/xfs/
H A Dxfs_bmap_item.h28 struct kmem_cache;
68 extern struct kmem_cache *xfs_bui_cache;
69 extern struct kmem_cache *xfs_bud_cache;
H A Dxfs_refcount_item.h28 struct kmem_cache;
71 extern struct kmem_cache *xfs_cui_cache;
72 extern struct kmem_cache *xfs_cud_cache;
H A Dxfs_rmap_item.h31 struct kmem_cache;
71 extern struct kmem_cache *xfs_rui_cache;
72 extern struct kmem_cache *xfs_rud_cache;

12345678910>>...23