Home
last modified time | relevance | path

Searched refs:KMALLOC_MIN_SIZE (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Dslab.h542 #define KMALLOC_MIN_SIZE ARCH_KMALLOC_MINALIGN macro
543 #define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE)
600 #ifndef KMALLOC_MIN_SIZE
601 #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) macro
612 #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
613 (KMALLOC_MIN_SIZE) : 16)
716 if (size <= KMALLOC_MIN_SIZE) in __kmalloc_index()
719 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in __kmalloc_index()
721 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in __kmalloc_index()
/linux/mm/
H A Dslab_common.c901 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || in __kmalloc_minalign()
902 !is_power_of_2(KMALLOC_MIN_SIZE)); in __kmalloc_minalign()
904 for (i = 8; i < KMALLOC_MIN_SIZE; i += 8) {
912 if (KMALLOC_MIN_SIZE >= 64) { in new_kmalloc_cache()
922 if (KMALLOC_MIN_SIZE >= 128) { in new_kmalloc_cache()
1004 if (KMALLOC_MIN_SIZE <= 32) in __ksize()
1006 if (KMALLOC_MIN_SIZE <= 64) in __ksize()