Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dslab.h154 #define KMALLOC_MIN_SIZE ARCH_DMA_MINALIGN macro
217 #ifndef KMALLOC_MIN_SIZE
218 #define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW) macro
229 #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
230 (KMALLOC_MIN_SIZE) : 16)
251 if (size <= KMALLOC_MIN_SIZE) in kmalloc_index()
254 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in kmalloc_index()
256 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in kmalloc_index()
449 if (n == 1 && KMALLOC_MIN_SIZE <= 32) in kmalloc_size()
452 if (n == 2 && KMALLOC_MIN_SIZE <= 64) in kmalloc_size()
/linux-4.1.27/mm/
Dslab_common.c806 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || in create_kmalloc_caches()
807 (KMALLOC_MIN_SIZE & (KMALLOC_MIN_SIZE - 1))); in create_kmalloc_caches()
809 for (i = 8; i < KMALLOC_MIN_SIZE; i += 8) { in create_kmalloc_caches()
817 if (KMALLOC_MIN_SIZE >= 64) { in create_kmalloc_caches()
827 if (KMALLOC_MIN_SIZE >= 128) { in create_kmalloc_caches()
847 if (KMALLOC_MIN_SIZE <= 32 && !kmalloc_caches[1] && i == 6) in create_kmalloc_caches()
850 if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7) in create_kmalloc_caches()
Dslub.c4190 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 16 || KMALLOC_SHIFT_HIGH < 10); in resiliency_test()