Lines Matching refs:mem_ranges
471 u64 rbase = reserved_mrange_info.mem_ranges[i].base; in overlaps_reserved_ranges()
472 u64 rend = rbase + reserved_mrange_info.mem_ranges[i].size; in overlaps_reserved_ranges()
498 mrngs = reserved_mrange_info.mem_ranges; in fadump_locate_reserve_mem()
832 kfree(mrange_info->mem_ranges); in fadump_free_mem_ranges()
850 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges()
858 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges()
868 struct fadump_memory_range *mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() local
880 start = mem_ranges[mrange_info->mem_range_cnt - 1].base; in fadump_add_mem_range()
881 size = mem_ranges[mrange_info->mem_range_cnt - 1].size; in fadump_add_mem_range()
902 mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range()
906 mem_ranges[mrange_info->mem_range_cnt].base = start; in fadump_add_mem_range()
910 mem_ranges[mrange_info->mem_range_cnt - 1].size = (end - start); in fadump_add_mem_range()
1110 mbase = crash_mrange_info.mem_ranges[i].base; in fadump_create_elfcore_headers()
1111 msize = crash_mrange_info.mem_ranges[i].size; in fadump_create_elfcore_headers()
1267 struct fadump_memory_range *mem_ranges; in sort_and_merge_mem_ranges() local
1276 mem_ranges = mrange_info->mem_ranges; in sort_and_merge_mem_ranges()
1280 if (mem_ranges[idx].base > mem_ranges[j].base) in sort_and_merge_mem_ranges()
1284 tmp_range = mem_ranges[idx]; in sort_and_merge_mem_ranges()
1285 mem_ranges[idx] = mem_ranges[i]; in sort_and_merge_mem_ranges()
1286 mem_ranges[i] = tmp_range; in sort_and_merge_mem_ranges()
1293 base = mem_ranges[i-1].base; in sort_and_merge_mem_ranges()
1294 size = mem_ranges[i-1].size; in sort_and_merge_mem_ranges()
1295 if (mem_ranges[i].base == (base + size)) in sort_and_merge_mem_ranges()
1296 mem_ranges[idx].size += mem_ranges[i].size; in sort_and_merge_mem_ranges()
1302 mem_ranges[idx] = mem_ranges[i]; in sort_and_merge_mem_ranges()
1383 ra_start = reserved_mrange_info.mem_ranges[i].base; in fadump_release_memory()
1384 ra_end = ra_start + reserved_mrange_info.mem_ranges[i].size; in fadump_release_memory()