Lines Matching defs:cachep
248 struct kmem_cache *cachep; member
362 #define MAKE_LIST(cachep, listp, slab, nodeid) \ argument
368 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument
527 static int obj_offset(struct kmem_cache *cachep) in obj_offset()
532 static int obj_size(struct kmem_cache *cachep) in obj_size()
537 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1()
544 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2()
555 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword()
564 #define obj_size(cachep) (cachep->buffer_size) argument
565 #define dbg_redzone1(cachep, objp) ({BUG(); (unsigned long long *)NULL;}) argument
566 #define dbg_redzone2(cachep, objp) ({BUG(); (unsigned long long *)NULL;}) argument
567 #define dbg_userword(cachep, objp) ({BUG(); (void **)NULL;}) argument
759 static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) in cpu_cache_get()
865 #define slab_error(cachep, msg) __slab_error(__func__, cachep, msg) argument
867 static void __slab_error(const char *function, struct kmem_cache *cachep, in __slab_error()
994 #define drain_alien_cache(cachep, alien) do { } while (0) argument
995 #define reap_alien(cachep, l3) do { } while (0) argument
1006 static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) in cache_free_alien()
1011 static inline void *alternate_node_alloc(struct kmem_cache *cachep, in alternate_node_alloc()
1017 static inline void *____cache_alloc_node(struct kmem_cache *cachep, in ____cache_alloc_node()
1066 static void __drain_alien_cache(struct kmem_cache *cachep, in __drain_alien_cache()
1090 static void reap_alien(struct kmem_cache *cachep, struct kmem_list3 *l3) in reap_alien()
1104 static void drain_alien_cache(struct kmem_cache *cachep, in drain_alien_cache()
1121 static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) in cache_free_alien()
1160 struct kmem_cache *cachep; in cpuup_canceled() local
1225 struct kmem_cache *cachep; in cpuup_prepare() local
1388 static void init_list(struct kmem_cache *cachep, struct kmem_list3 *list, in init_list()
1412 static void __init set_up_list3s(struct kmem_cache *cachep, int index) in set_up_list3s()
1618 struct kmem_cache *cachep; in kmem_cache_init() local
1665 static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid) in kmem_getpages()
1702 static void kmem_freepages(struct kmem_cache *cachep, void *addr) in kmem_freepages()
1727 struct kmem_cache *cachep = slab_rcu->cachep; in kmem_rcu_free() local
1737 static void store_stackinfo(struct kmem_cache *cachep, unsigned long *addr, in store_stackinfo()
1770 static void poison_obj(struct kmem_cache *cachep, void *addr, unsigned char val) in poison_obj()
1813 static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines) in print_objinfo()
1842 static void check_poison_obj(struct kmem_cache *cachep, void *objp) in check_poison_obj()
1905 static void slab_destroy_debugcheck(struct kmem_cache *cachep, struct slab *slabp) in slab_destroy_debugcheck()
1934 static void slab_destroy_debugcheck(struct kmem_cache *cachep, struct slab *slabp) in slab_destroy_debugcheck()
1948 static void slab_destroy(struct kmem_cache *cachep, struct slab *slabp) in slab_destroy()
1967 static void __kmem_cache_destroy(struct kmem_cache *cachep) in __kmem_cache_destroy()
2001 static size_t calculate_slab_order(struct kmem_cache *cachep, in calculate_slab_order()
2058 static int __init_refok setup_cpu_cache(struct kmem_cache *cachep) in setup_cpu_cache()
2146 struct kmem_cache *cachep = NULL, *pc; in kmem_cache_create() local
2405 static void check_spinlock_acquired(struct kmem_cache *cachep) in check_spinlock_acquired()
2413 static void check_spinlock_acquired_node(struct kmem_cache *cachep, int node) in check_spinlock_acquired_node()
2434 struct kmem_cache *cachep = arg; in do_drain() local
2446 static void drain_cpu_caches(struct kmem_cache *cachep) in drain_cpu_caches()
2508 static int __cache_shrink(struct kmem_cache *cachep) in __cache_shrink()
2536 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
2566 void kmem_cache_destroy(struct kmem_cache *cachep) in kmem_cache_destroy()
2605 static struct slab *alloc_slabmgmt(struct kmem_cache *cachep, void *objp, in alloc_slabmgmt()
2634 static void cache_init_objs(struct kmem_cache *cachep, in cache_init_objs()
2681 static void kmem_flagcheck(struct kmem_cache *cachep, gfp_t flags) in kmem_flagcheck()
2691 static void *slab_get_obj(struct kmem_cache *cachep, struct slab *slabp, in slab_get_obj()
2708 static void slab_put_obj(struct kmem_cache *cachep, struct slab *slabp, in slab_put_obj()
2756 static int cache_grow(struct kmem_cache *cachep, in cache_grow()
2872 static void *cache_free_debugcheck(struct kmem_cache *cachep, void *objp, in cache_free_debugcheck()
2919 static void check_slabp(struct kmem_cache *cachep, struct slab *slabp) in check_slabp()
2952 static void *cache_alloc_refill(struct kmem_cache *cachep, gfp_t flags) in cache_alloc_refill()
3043 static inline void cache_alloc_debugcheck_before(struct kmem_cache *cachep, in cache_alloc_debugcheck_before()
3053 static void *cache_alloc_debugcheck_after(struct kmem_cache *cachep, in cache_alloc_debugcheck_after()
3111 static bool slab_should_failslab(struct kmem_cache *cachep, gfp_t flags) in slab_should_failslab()
3119 static inline void *____cache_alloc(struct kmem_cache *cachep, gfp_t flags) in ____cache_alloc()
3145 static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags) in alternate_node_alloc()
3243 static void *____cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, in ____cache_alloc_node()
3315 __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, in __cache_alloc_node()
3384 __do_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in __do_cache_alloc()
3392 __cache_alloc(struct kmem_cache *cachep, gfp_t flags, void *caller) in __cache_alloc()
3416 static void free_block(struct kmem_cache *cachep, void **objpp, int nr_objects, in free_block()
3460 static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac) in cache_flusharray()
3515 static inline void __cache_free(struct kmem_cache *cachep, void *objp) in __cache_free()
3551 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
3570 int kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) in kmem_ptr_validate()
3599 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid) in kmem_cache_alloc_node()
3609 struct kmem_cache *cachep; in __do_kmalloc_node() local
3649 struct kmem_cache *cachep; in __do_kmalloc() local
3692 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
3731 unsigned int kmem_cache_size(struct kmem_cache *cachep) in kmem_cache_size()
3737 const char *kmem_cache_name(struct kmem_cache *cachep) in kmem_cache_name()
3746 static int alloc_kmemlist(struct kmem_cache *cachep) in alloc_kmemlist()
3832 struct kmem_cache *cachep; member
3849 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, in do_tune_cpucache()
3892 static int enable_cpucache(struct kmem_cache *cachep) in enable_cpucache()
3950 void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3, in drain_array()
4091 struct kmem_cache *cachep = list_entry(p, struct kmem_cache, next); in s_show() local
4219 struct kmem_cache *cachep; in slabinfo_write() local
4339 struct kmem_cache *cachep = list_entry(p, struct kmem_cache, next); in leaks_show() local