Searched refs:array_size (Results 1 – 4 of 4) sorted by relevance
/mm/ |
D | swap_cgroup.c | 170 unsigned long array_size; in swap_cgroup_swapon() local 175 array_size = length * sizeof(void *); in swap_cgroup_swapon() 177 array = vzalloc(array_size); in swap_cgroup_swapon()
|
D | sparse.c | 66 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc() local 70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc() 72 section = memblock_alloc_node(array_size, SMP_CACHE_BYTES, in sparse_index_alloc() 76 __func__, array_size, nid); in sparse_index_alloc() 705 return kvmalloc_node(array_size(sizeof(struct page), in populate_section_memmap()
|
D | percpu-stats.c | 147 buffer = vmalloc(array_size(sizeof(int), (2 * max_nr_alloc + 1))); in percpu_stats_show()
|
D | vmalloc.c | 2928 unsigned long array_size; in __vmalloc_area_node() local 2932 array_size = (unsigned long)nr_small_pages * sizeof(struct page *); in __vmalloc_area_node() 2938 if (array_size > PAGE_SIZE) { in __vmalloc_area_node() 2939 area->pages = __vmalloc_node(array_size, 1, nested_gfp, node, in __vmalloc_area_node() 2942 area->pages = kmalloc_node(array_size, nested_gfp, node); in __vmalloc_area_node() 2948 nr_small_pages * PAGE_SIZE, array_size); in __vmalloc_area_node()
|