Lines Matching refs:mem_ranges

483 		u64 rbase = reserved_mrange_info.mem_ranges[i].base;  in overlaps_reserved_ranges()
484 u64 rend = rbase + reserved_mrange_info.mem_ranges[i].size; in overlaps_reserved_ranges()
510 mrngs = reserved_mrange_info.mem_ranges; in fadump_locate_reserve_mem()
844 kfree(mrange_info->mem_ranges); in fadump_free_mem_ranges()
862 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges()
870 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges()
879 struct fadump_memory_range *mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() local
891 start = mem_ranges[mrange_info->mem_range_cnt - 1].base; in fadump_add_mem_range()
892 size = mem_ranges[mrange_info->mem_range_cnt - 1].size; in fadump_add_mem_range()
918 mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range()
922 mem_ranges[mrange_info->mem_range_cnt].base = start; in fadump_add_mem_range()
926 mem_ranges[mrange_info->mem_range_cnt - 1].size = (end - start); in fadump_add_mem_range()
1129 mbase = crash_mrange_info.mem_ranges[i].base; in fadump_create_elfcore_headers()
1130 msize = crash_mrange_info.mem_ranges[i].size; in fadump_create_elfcore_headers()
1291 struct fadump_memory_range *mem_ranges; in sort_and_merge_mem_ranges() local
1299 mem_ranges = mrange_info->mem_ranges; in sort_and_merge_mem_ranges()
1303 if (mem_ranges[idx].base > mem_ranges[j].base) in sort_and_merge_mem_ranges()
1307 swap(mem_ranges[idx], mem_ranges[i]); in sort_and_merge_mem_ranges()
1313 base = mem_ranges[i-1].base; in sort_and_merge_mem_ranges()
1314 size = mem_ranges[i-1].size; in sort_and_merge_mem_ranges()
1315 if (mem_ranges[i].base == (base + size)) in sort_and_merge_mem_ranges()
1316 mem_ranges[idx].size += mem_ranges[i].size; in sort_and_merge_mem_ranges()
1322 mem_ranges[idx] = mem_ranges[i]; in sort_and_merge_mem_ranges()
1403 ra_start = reserved_mrange_info.mem_ranges[i].base; in fadump_release_memory()
1404 ra_end = ra_start + reserved_mrange_info.mem_ranges[i].size; in fadump_release_memory()