Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dslab.h209 #define KMALLOC_MIN_SIZE ARCH_DMA_MINALIGN macro
290 #ifndef KMALLOC_MIN_SIZE
291 #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) macro
302 #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
303 (KMALLOC_MIN_SIZE) : 16)
385 if (size <= KMALLOC_MIN_SIZE) in __kmalloc_index()
388 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in __kmalloc_index()
390 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in __kmalloc_index()
/Linux-v5.15/mm/
Dslab_common.c822 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || in setup_kmalloc_cache_index_table()
823 (KMALLOC_MIN_SIZE & (KMALLOC_MIN_SIZE - 1))); in setup_kmalloc_cache_index_table()
825 for (i = 8; i < KMALLOC_MIN_SIZE; i += 8) { in setup_kmalloc_cache_index_table()
833 if (KMALLOC_MIN_SIZE >= 64) { in setup_kmalloc_cache_index_table()
843 if (KMALLOC_MIN_SIZE >= 128) { in setup_kmalloc_cache_index_table()
903 if (KMALLOC_MIN_SIZE <= 32 && i == 6 && in create_kmalloc_caches()
906 if (KMALLOC_MIN_SIZE <= 64 && i == 7 && in create_kmalloc_caches()