Home
last modified time | relevance | path

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

/linux/tools/testing/radix-tree/
H A Dlinux.c
/linux/tools/include/linux/
H A Dslab.h32 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *, int flags);
33 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc() argument
35 return kmem_cache_alloc_lru(cachep, NULL, flags); in kmem_cache_alloc()
37 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
43 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list);
44 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
/linux/drivers/scsi/snic/
H A Dsnic_main.c818 struct kmem_cache *cachep; in snic_global_data_init()
851 cachep = kmem_cache_create("snic_req_dfltsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
853 if (!cachep) { in snic_global_data_init()
859 snic_glob->req_cache[SNIC_REQ_CACHE_DFLT_SGL] = cachep; in snic_global_data_init()
864 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
866 if (!cachep) { in snic_global_data_init()
872 snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep; in snic_global_data_init()
875 cachep = kmem_cache_create("snic_req_tm", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
877 if (!cachep) { in snic_global_data_init()
883 snic_glob->req_cache[SNIC_REQ_TM_CACHE] = cachep; in snic_global_data_init()
819 struct kmem_cache *cachep; snic_global_data_init() local
[all...]
/linux/mm/
H A Dslab_common.c535 * @cachep: The cache to shrink. in kmem_buckets_create()
542 int kmem_cache_shrink(struct kmem_cache *cachep)
544 kasan_cache_shrink(cachep);
546 return __kmem_cache_shrink(cachep);
1033 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in new_kmalloc_cache()
1037 if (count < 2 || cachep->random_seq) in new_kmalloc_cache()
1040 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in new_kmalloc_cache()
1041 if (!cachep->random_seq) in new_kmalloc_cache()
1044 freelist_randomize(cachep->random_seq, count); in new_kmalloc_cache()
1049 void cache_random_seq_destroy(struct kmem_cache *cachep) in new_kmalloc_cache()
664 kmem_cache_shrink(struct kmem_cache * cachep) kmem_cache_shrink() argument
1157 cache_random_seq_create(struct kmem_cache * cachep,unsigned int count,gfp_t gfp) cache_random_seq_create() argument
1173 cache_random_seq_destroy(struct kmem_cache * cachep) cache_random_seq_destroy() argument
[all...]
H A Dslab.h634 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create()
636 void cache_random_seq_destroy(struct kmem_cache *cachep); in cache_random_seq_destroy() argument
638 static inline int cache_random_seq_create(struct kmem_cache *cachep,
643 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in slab_want_init_on_alloc()
631 cache_random_seq_create(struct kmem_cache * cachep,unsigned int count,gfp_t gfp) cache_random_seq_create() argument
H A Dslub.c4654 struct kmem_cache *cachep; in cache_from_obj() local
4660 cachep = virt_to_cache(x); in cache_from_obj()
4661 if (WARN(cachep && cachep != s, in cache_from_obj()
4663 __func__, s->name, cachep->name)) in cache_from_obj()
4664 print_tracking(cachep, x); in cache_from_obj()
4665 return cachep; in cache_from_obj()
/linux/include/net/
H A Dinet_hashtables.h226 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
229 void inet_bind_bucket_destroy(struct kmem_cache *cachep,
237 inet_bind2_bucket_create(struct kmem_cache *cachep, struct net *net,
242 void inet_bind2_bucket_destroy(struct kmem_cache *cachep,
/linux/net/ipv4/
H 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()
128 struct inet_bind2_bucket *inet_bind2_bucket_create(struct kmem_cache *cachep, in inet_bind2_bucket_create() argument
134 struct inet_bind2_bucket *tb2 = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind2_bucket_create()
143 void inet_bind2_bucket_destroy(struct kmem_cache *cachep, struct inet_bind2_bucket *tb) in inet_bind2_bucket_destroy() argument
148 kmem_cache_free(cachep, tb); in inet_bind2_bucket_destroy()
/linux/Documentation/RCU/
H A Drculist_nulls.rst133 kmem_cache_free(cachep, obj);
207 obj = kmem_cache_alloc(cachep);
/linux/lib/
H A Dmaple_tree.c6998 extern void kmem_cache_set_callback(struct kmem_cache *cachep,
7005 extern void kmem_cache_set_private(struct kmem_cache *cachep, void *private);