Lines Matching refs:mem_range_cnt
470 for (i = *idx; i < reserved_mrange_info.mem_range_cnt; i++) { in overlaps_reserved_ranges()
828 mrange_info->mem_range_cnt = 0; in fadump_free_mem_ranges()
879 if (mrange_info->mem_range_cnt) { in fadump_add_mem_range()
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()
888 if (mrange_info->mem_range_cnt == mrange_info->max_mem_ranges) { in fadump_add_mem_range()
906 mem_ranges[mrange_info->mem_range_cnt].base = start; in fadump_add_mem_range()
907 mrange_info->mem_range_cnt++; in fadump_add_mem_range()
910 mem_ranges[mrange_info->mem_range_cnt - 1].size = (end - start); in fadump_add_mem_range()
912 mrange_info->name, (mrange_info->mem_range_cnt - 1), in fadump_add_mem_range()
990 crash_mrange_info.mem_range_cnt = 0; in fadump_setup_crash_memory_ranges()
1107 for (i = 0; i < crash_mrange_info.mem_range_cnt; i++) { in fadump_create_elfcore_headers()
1272 if (!reserved_mrange_info.mem_range_cnt) in sort_and_merge_mem_ranges()
1277 for (i = 0; i < mrange_info->mem_range_cnt; i++) { in sort_and_merge_mem_ranges()
1279 for (j = (i + 1); j < mrange_info->mem_range_cnt; j++) { in sort_and_merge_mem_ranges()
1292 for (i = 1; i < mrange_info->mem_range_cnt; i++) { in sort_and_merge_mem_ranges()
1305 mrange_info->mem_range_cnt = idx + 1; in sort_and_merge_mem_ranges()
1319 if (reserved_mrange_info.mem_range_cnt != 0) in early_init_dt_scan_reserved_ranges()
1369 if (reserved_mrange_info.mem_range_cnt == in fadump_release_memory()
1371 reserved_mrange_info.mem_range_cnt--; in fadump_release_memory()
1382 for (i = 0; i < reserved_mrange_info.mem_range_cnt; i++) { in fadump_release_memory()