Searched refs:old_size (Results 1 – 2 of 2) sorted by relevance
/mm/ |
D | memblock.c | 326 phys_addr_t old_size, new_size, addr; in memblock_double_array() local 337 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array() 338 new_size = old_size << 1; in memblock_double_array() 343 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array() 396 memcpy(new_array, type->regions, old_size); in memblock_double_array() 397 memset(new_array + type->max, 0, old_size); in memblock_double_array()
|
D | percpu.c | 446 size_t old_size = 0, new_size = new_alloc * sizeof(new[0]); in pcpu_extend_area_map() local 461 old_size = chunk->map_alloc * sizeof(chunk->map[0]); in pcpu_extend_area_map() 464 memcpy(new, old, old_size); in pcpu_extend_area_map() 477 pcpu_mem_free(old, old_size); in pcpu_extend_area_map()
|