Lines Matching refs:nr_ranges
180 unsigned int *nr_ranges = arg; in get_nr_ram_ranges_callback() local
182 (*nr_ranges)++; in get_nr_ram_ranges_callback()
189 unsigned int nr_ranges = 0; in fill_up_crash_elf_data() local
192 walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback); in fill_up_crash_elf_data()
193 if (!nr_ranges) in fill_up_crash_elf_data()
200 nr_ranges += 2; in fill_up_crash_elf_data()
201 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data()
205 cmem->max_nr_ranges = nr_ranges; in fill_up_crash_elf_data()
206 cmem->nr_ranges = 0; in fill_up_crash_elf_data()
240 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback()
241 cmem->ranges[cmem->nr_ranges].end = res->end; in prepare_elf64_ram_headers_callback()
242 cmem->nr_ranges++; in prepare_elf64_ram_headers_callback()
310 cmem->nr_ranges = 1; in memmap_exclude_ranges()
370 for (i = 0; i < cmem->nr_ranges; i++) { in crash_setup_memmap_entries()