Searched refs:nr_ranges (Results 1 – 5 of 5) sorted by relevance
/arch/powerpc/kexec/ |
D | ranges.c | 77 if (!mem_rngs || (mem_rngs->nr_ranges == mem_rngs->max_nr_ranges)) { in __add_mem_range() 83 mem_rngs->ranges[mem_rngs->nr_ranges].start = base; in __add_mem_range() 84 mem_rngs->ranges[mem_rngs->nr_ranges].end = base + size - 1; in __add_mem_range() 86 base, base + size - 1, mem_rngs->nr_ranges); in __add_mem_range() 87 mem_rngs->nr_ranges++; in __add_mem_range() 109 for (i = 1; i < mem_rngs->nr_ranges; i++) { in __merge_memory_ranges() 120 mem_rngs->nr_ranges = idx + 1; in __merge_memory_ranges() 150 sort(&(mem_rngs->ranges[0]), mem_rngs->nr_ranges, in sort_memory_ranges() 158 for (i = 0; i < mem_rngs->nr_ranges; i++) { in sort_memory_ranges() 176 unsigned int nr_ranges; in realloc_mem_ranges() local [all …]
|
D | file_load_64.c | 36 unsigned int nr_ranges; member 164 if ((*mem_ranges)->nr_ranges == (*mem_ranges)->max_nr_ranges) in get_crash_memory_ranges() 170 if (tmem && (tmem->nr_ranges == tmem->max_nr_ranges)) { in get_crash_memory_ranges() 304 for (i = (emem->nr_ranges - 1); i >= 0; i--) { in locate_mem_hole_top_down_ppc64() 402 for (i = 0; i < emem->nr_ranges; i++) { in locate_mem_hole_bottom_up_ppc64() 475 for (i = 0; i < um_info->nr_ranges; i++) { in add_usable_mem() 674 um_info.nr_ranges = usable_mem->nr_ranges; in update_usable_mem_fdt() 1057 int i, nr_ranges, ret; in setup_new_fdt_ppc64() local 1106 nr_ranges = rmem ? rmem->nr_ranges : 0; in setup_new_fdt_ppc64() 1107 for (i = 0; i < nr_ranges; i++) { in setup_new_fdt_ppc64() [all …]
|
/arch/x86/kernel/ |
D | crash.c | 165 unsigned int *nr_ranges = arg; in get_nr_ram_ranges_callback() local 167 (*nr_ranges)++; in get_nr_ram_ranges_callback() 174 unsigned int nr_ranges = 0; in fill_up_crash_elf_data() local 177 walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback); in fill_up_crash_elf_data() 178 if (!nr_ranges) in fill_up_crash_elf_data() 185 nr_ranges += 2; in fill_up_crash_elf_data() 186 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data() 190 cmem->max_nr_ranges = nr_ranges; in fill_up_crash_elf_data() 191 cmem->nr_ranges = 0; in fill_up_crash_elf_data() 225 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback() [all …]
|
/arch/arm64/kernel/ |
D | machine_kexec_file.c | 45 unsigned int nr_ranges; in prepare_elf_headers() local 50 nr_ranges = 1; /* for exclusion of crashkernel region */ in prepare_elf_headers() 52 nr_ranges++; in prepare_elf_headers() 54 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers() 58 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers() 59 cmem->nr_ranges = 0; in prepare_elf_headers() 61 cmem->ranges[cmem->nr_ranges].start = start; in prepare_elf_headers() 62 cmem->ranges[cmem->nr_ranges].end = end - 1; in prepare_elf_headers() 63 cmem->nr_ranges++; in prepare_elf_headers()
|
/arch/arm64/kvm/hyp/nvhe/ |
D | ffa.c | 365 u32 nr_ranges; in do_ffa_mem_frag_tx() local 379 nr_ranges = fraglen / sizeof(*buf); in do_ffa_mem_frag_tx() 381 ret = ffa_host_share_ranges(buf, nr_ranges); in do_ffa_mem_frag_tx() 395 WARN_ON(ffa_host_unshare_ranges(buf, nr_ranges)); in do_ffa_mem_frag_tx() 424 u32 offset, nr_ranges; in do_ffa_mem_xfer() local 463 nr_ranges = ((void *)buf + fraglen) - (void *)reg->constituents; in do_ffa_mem_xfer() 464 if (nr_ranges % sizeof(reg->constituents[0])) { in do_ffa_mem_xfer() 469 nr_ranges /= sizeof(reg->constituents[0]); in do_ffa_mem_xfer() 470 ret = ffa_host_share_ranges(reg->constituents, nr_ranges); in do_ffa_mem_xfer() 493 WARN_ON(ffa_host_unshare_ranges(reg->constituents, nr_ranges)); in do_ffa_mem_xfer()
|