Lines Matching refs:aligned_idx
409 unsigned int size, aligned_idx; in kmem_buckets_create() local
430 aligned_idx = __kmalloc_index(size, false); in kmem_buckets_create()
431 if (!(*b)[aligned_idx]) { in kmem_buckets_create()
435 (*b)[aligned_idx] = kmem_cache_create_usercopy(cache_name, size, in kmem_buckets_create()
439 if (WARN_ON(!(*b)[aligned_idx])) in kmem_buckets_create()
441 set_bit(aligned_idx, &mask); in kmem_buckets_create()
443 if (idx != aligned_idx) in kmem_buckets_create()
444 (*b)[idx] = (*b)[aligned_idx]; in kmem_buckets_create()
900 int aligned_idx = idx; in new_kmalloc_cache() local
928 aligned_idx = __kmalloc_index(aligned_size, false); in new_kmalloc_cache()
931 if (!kmalloc_caches[type][aligned_idx]) in new_kmalloc_cache()
932 kmalloc_caches[type][aligned_idx] = create_kmalloc_cache( in new_kmalloc_cache()
933 kmalloc_info[aligned_idx].name[type], in new_kmalloc_cache()
935 if (idx != aligned_idx) in new_kmalloc_cache()
936 kmalloc_caches[type][idx] = kmalloc_caches[type][aligned_idx]; in new_kmalloc_cache()