Lines Matching refs:nr_ranges
122 unsigned int *nr_ranges = arg; in get_nr_ram_ranges_callback() local
124 (*nr_ranges)++; in get_nr_ram_ranges_callback()
132 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback()
133 cmem->ranges[cmem->nr_ranges].end = res->end; in prepare_elf64_ram_headers_callback()
134 cmem->nr_ranges++; in prepare_elf64_ram_headers_callback()
142 unsigned int nr_ranges; in prepare_elf_headers() local
145 nr_ranges = 1; /* For exclusion of crashkernel region */ in prepare_elf_headers()
146 walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback); in prepare_elf_headers()
148 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers()
152 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers()
153 cmem->nr_ranges = 0; in prepare_elf_headers()