Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dslab.h266 #define KMALLOC_MIN_SIZE ARCH_KMALLOC_MINALIGN macro
267 #define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE)
334 #ifndef KMALLOC_MIN_SIZE
335 #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) macro
346 #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
347 (KMALLOC_MIN_SIZE) : 16)
449 if (size <= KMALLOC_MIN_SIZE) in __kmalloc_index()
452 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in __kmalloc_index()
454 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in __kmalloc_index()
/linux-6.6.21/mm/
Dslab_common.c864 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || in setup_kmalloc_cache_index_table()
865 !is_power_of_2(KMALLOC_MIN_SIZE)); in setup_kmalloc_cache_index_table()
867 for (i = 8; i < KMALLOC_MIN_SIZE; i += 8) { in setup_kmalloc_cache_index_table()
875 if (KMALLOC_MIN_SIZE >= 64) { in setup_kmalloc_cache_index_table()
885 if (KMALLOC_MIN_SIZE >= 128) { in setup_kmalloc_cache_index_table()
974 if (KMALLOC_MIN_SIZE <= 32 && i == 6 && in create_kmalloc_caches()
977 if (KMALLOC_MIN_SIZE <= 64 && i == 7 && in create_kmalloc_caches()