Home
last modified time | relevance | path

Searched refs:cachep (Results 1 – 14 of 14) sorted by relevance

/linux-6.3-rc2/mm/
A Dslab.c1325 cachep->name, cachep->size, cachep->gfporder); in slab_out_of_memory()
1368 account_slab(slab, cachep->gfporder, cachep, flags); in kmem_getpages()
1836 cachep->colour = left / cachep->colour_off; in set_objfreelist_slab_cache()
1870 cachep->colour = left / cachep->colour_off; in set_off_slab_cache()
1886 cachep->colour = left / cachep->colour_off; in set_on_slab_cache()
1964 if (cachep->colour_off < cachep->align) in __kmem_cache_create()
1965 cachep->colour_off = cachep->align; in __kmem_cache_create()
2341 cachep->ctor(objp + obj_offset(cachep)); in cache_init_objs_debug()
2343 cachep, objp + obj_offset(cachep)); in cache_init_objs_debug()
2990 if (cachep->ctor && cachep->flags & SLAB_POISON) in cache_alloc_debugcheck_after()
[all …]
A Dslab.h671 struct kmem_cache *cachep; in cache_from_obj() local
677 cachep = virt_to_cache(x); in cache_from_obj()
678 if (WARN(cachep && cachep != s, in cache_from_obj()
680 __func__, s->name, cachep->name)) in cache_from_obj()
681 print_tracking(cachep, x); in cache_from_obj()
682 return cachep; in cache_from_obj()
840 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
842 void cache_random_seq_destroy(struct kmem_cache *cachep);
844 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument
849 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
A Dslab_common.c517 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
519 kasan_cache_shrink(cachep); in kmem_cache_shrink()
521 return __kmem_cache_shrink(cachep); in kmem_cache_shrink()
1167 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
1172 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1175 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1176 if (!cachep->random_seq) in cache_random_seq_create()
1182 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create()
1187 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument
1189 kfree(cachep->random_seq); in cache_random_seq_destroy()
[all …]
A Dslob.c640 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() argument
642 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc()
647 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru, gfp_t flags) in kmem_cache_alloc_lru() argument
649 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc_lru()
659 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() argument
661 return slob_alloc_node(cachep, gfp, node); in kmem_cache_alloc_node()
/linux-6.3-rc2/tools/testing/radix-tree/
A Dlinux.c38 return cachep->size * cachep->nr_allocated; in kmem_cache_get_alloc()
65 cachep->non_kernel--; in kmem_cache_alloc_lru()
69 if (cachep->nr_objs) { in kmem_cache_alloc_lru()
71 cachep->nr_objs--; in kmem_cache_alloc_lru()
78 if (cachep->align) in kmem_cache_alloc_lru()
79 posix_memalign(&p, cachep->align, cachep->size); in kmem_cache_alloc_lru()
82 if (cachep->ctor) in kmem_cache_alloc_lru()
83 cachep->ctor(p); in kmem_cache_alloc_lru()
103 if (cachep->nr_objs > 10 || cachep->align) { in kmem_cache_free_locked()
108 cachep->nr_objs++; in kmem_cache_free_locked()
[all …]
/linux-6.3-rc2/tools/include/linux/
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() argument
36 return kmem_cache_alloc_lru(cachep, NULL, flags); in kmem_cache_alloc()
38 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
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,
/linux-6.3-rc2/drivers/scsi/snic/
A Dsnic_main.c819 struct kmem_cache *cachep; in snic_global_data_init() local
852 cachep = kmem_cache_create("snic_req_dfltsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
854 if (!cachep) { in snic_global_data_init()
860 snic_glob->req_cache[SNIC_REQ_CACHE_DFLT_SGL] = cachep; in snic_global_data_init()
865 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
867 if (!cachep) { in snic_global_data_init()
873 snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep; in snic_global_data_init()
876 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
878 if (!cachep) { in snic_global_data_init()
884 snic_glob->req_cache[SNIC_REQ_TM_CACHE] = cachep; in snic_global_data_init()
/linux-6.3-rc2/arch/powerpc/mm/
A Dhugetlbpage.c49 struct kmem_cache *cachep; in __hugepte_alloc() local
55 cachep = PGT_CACHE(PTE_T_ORDER); in __hugepte_alloc()
58 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
62 if (!cachep) { in __hugepte_alloc()
67 new = kmem_cache_alloc(cachep, pgtable_gfp_flags(mm, GFP_KERNEL)); in __hugepte_alloc()
98 kmem_cache_free(cachep, new); in __hugepte_alloc()
/linux-6.3-rc2/include/net/
A Dinet_hashtables.h231 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
234 void inet_bind_bucket_destroy(struct kmem_cache *cachep,
242 inet_bind2_bucket_create(struct kmem_cache *cachep, struct net *net,
247 void inet_bind2_bucket_destroy(struct kmem_cache *cachep,
/linux-6.3-rc2/net/ipv4/
A Dinet_hashtables.c64 struct inet_bind_bucket *inet_bind_bucket_create(struct kmem_cache *cachep, in inet_bind_bucket_create() argument
70 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind_bucket_create()
87 void inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb) in inet_bind_bucket_destroy() argument
91 kmem_cache_free(cachep, tb); in inet_bind_bucket_destroy()
123 struct inet_bind2_bucket *inet_bind2_bucket_create(struct kmem_cache *cachep, in inet_bind2_bucket_create() argument
130 struct inet_bind2_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind2_bucket_create()
139 void inet_bind2_bucket_destroy(struct kmem_cache *cachep, struct inet_bind2_bucket *tb) in inet_bind2_bucket_destroy() argument
143 kmem_cache_free(cachep, tb); in inet_bind2_bucket_destroy()
/linux-6.3-rc2/Documentation/RCU/
A Drculist_nulls.rst122 kmem_cache_free(cachep, obj);
191 obj = kmem_cache_alloc(cachep);
/linux-6.3-rc2/fs/ext4/
A Dmballoc.c3022 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() local
3024 BUG_ON(!cachep); in get_groupinfo_cache()
3025 return cachep; in get_groupinfo_cache()
3097 meta_group_info[i] = kmem_cache_zalloc(cachep, GFP_NOFS); in ext4_mb_add_groupinfo()
3153 struct kmem_cache *cachep; in ext4_mb_init_backend() local
3212 cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_init_backend()
3214 kmem_cache_free(cachep, ext4_get_group_info(sb, i)); in ext4_mb_init_backend()
3245 struct kmem_cache *cachep; in ext4_groupinfo_create_slab() local
3266 ext4_groupinfo_caches[cache_index] = cachep; in ext4_groupinfo_create_slab()
3269 if (!cachep) { in ext4_groupinfo_create_slab()
[all …]
/linux-6.3-rc2/include/linux/
A Dslab.h475 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) __assume_slab_alignment __malloc;
/linux-6.3-rc2/fs/f2fs/
A Df2fs.h2775 static inline void *f2fs_kmem_cache_alloc_nofail(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc_nofail() argument
2780 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc_nofail()
2782 entry = kmem_cache_alloc(cachep, flags | __GFP_NOFAIL); in f2fs_kmem_cache_alloc_nofail()
2786 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument
2790 return f2fs_kmem_cache_alloc_nofail(cachep, flags); in f2fs_kmem_cache_alloc()
2795 return kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()

Completed in 59 milliseconds