Lines Matching refs:cachep
512 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
514 kasan_cache_shrink(cachep); in kmem_cache_shrink()
516 return __kmem_cache_shrink(cachep); in kmem_cache_shrink()
1151 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
1156 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1159 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1160 if (!cachep->random_seq) in cache_random_seq_create()
1166 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create()
1171 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument
1173 kfree(cachep->random_seq); in cache_random_seq_destroy()
1174 cachep->random_seq = NULL; in cache_random_seq_destroy()