/linux-6.12.1/arch/powerpc/kexec/ |
D | ranges.c | 81 if (!mem_rngs || (mem_rngs->nr_ranges == mem_rngs->max_nr_ranges)) { in __add_mem_range() 87 mem_rngs->ranges[mem_rngs->nr_ranges].start = base; in __add_mem_range() 88 mem_rngs->ranges[mem_rngs->nr_ranges].end = base + size - 1; in __add_mem_range() 90 base, base + size - 1, mem_rngs->nr_ranges); in __add_mem_range() 91 mem_rngs->nr_ranges++; in __add_mem_range() 113 for (i = 1; i < mem_rngs->nr_ranges; i++) { in __merge_memory_ranges() 124 mem_rngs->nr_ranges = idx + 1; in __merge_memory_ranges() 154 sort(&(mem_rngs->ranges[0]), mem_rngs->nr_ranges, in sort_memory_ranges() 162 for (i = 0; i < mem_rngs->nr_ranges; i++) { in sort_memory_ranges() 180 unsigned int nr_ranges; in realloc_mem_ranges() local [all …]
|
D | file_load_64.c | 43 unsigned int nr_ranges; member 121 for (i = (emem->nr_ranges - 1); i >= 0; i--) { in locate_mem_hole_top_down_ppc64() 219 for (i = 0; i < emem->nr_ranges; i++) { in locate_mem_hole_bottom_up_ppc64() 293 for (i = 0; i < um_info->nr_ranges; i++) { in add_usable_mem() 480 um_info.nr_ranges = usable_mem->nr_ranges; in update_usable_mem_fdt() 594 else if (cmem->nr_ranges >= CONFIG_CRASH_MAX_MEMORY_RANGES) in kdump_extra_elfcorehdr_size() 597 extra_sz = (CONFIG_CRASH_MAX_MEMORY_RANGES - cmem->nr_ranges) * sizeof(Elf64_Phdr); in kdump_extra_elfcorehdr_size() 860 if (rmem->nr_ranges > 0) in kexec_extra_fdt_size_ppc64() 861 extra_size += sizeof(struct fdt_reserve_entry) * rmem->nr_ranges; in kexec_extra_fdt_size_ppc64() 924 int i, nr_ranges, ret; in setup_new_fdt_ppc64() local [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | crash.c | 149 unsigned int *nr_ranges = arg; in get_nr_ram_ranges_callback() local 151 (*nr_ranges)++; in get_nr_ram_ranges_callback() 158 unsigned int nr_ranges = 0; in fill_up_crash_elf_data() local 161 walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback); in fill_up_crash_elf_data() 162 if (!nr_ranges) in fill_up_crash_elf_data() 169 nr_ranges += 2; in fill_up_crash_elf_data() 170 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data() 174 cmem->max_nr_ranges = nr_ranges; in fill_up_crash_elf_data() 175 cmem->nr_ranges = 0; in fill_up_crash_elf_data() 209 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback() [all …]
|
/linux-6.12.1/arch/arm64/kernel/ |
D | machine_kexec_file.c | 46 unsigned int nr_ranges; in prepare_elf_headers() local 51 nr_ranges = 2; /* for exclusion of crashkernel region */ in prepare_elf_headers() 53 nr_ranges++; in prepare_elf_headers() 55 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers() 59 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers() 60 cmem->nr_ranges = 0; in prepare_elf_headers() 62 cmem->ranges[cmem->nr_ranges].start = start; in prepare_elf_headers() 63 cmem->ranges[cmem->nr_ranges].end = end - 1; in prepare_elf_headers() 64 cmem->nr_ranges++; in prepare_elf_headers()
|
/linux-6.12.1/arch/riscv/kernel/ |
D | elf_kexec.c | 124 unsigned int *nr_ranges = arg; in get_nr_ram_ranges_callback() local 126 (*nr_ranges)++; in get_nr_ram_ranges_callback() 134 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback() 135 cmem->ranges[cmem->nr_ranges].end = res->end; in prepare_elf64_ram_headers_callback() 136 cmem->nr_ranges++; in prepare_elf64_ram_headers_callback() 144 unsigned int nr_ranges; in prepare_elf_headers() local 147 nr_ranges = 1; /* For exclusion of crashkernel region */ in prepare_elf_headers() 148 walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback); in prepare_elf_headers() 150 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers() 154 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers() [all …]
|
/linux-6.12.1/kernel/ |
D | crash_core.c | 174 nr_phdr += mem->nr_ranges; in crash_prepare_elf64_headers() 236 for (i = 0; i < mem->nr_ranges; i++) { in crash_prepare_elf64_headers() 268 for (i = 0; i < mem->nr_ranges; i++) { in crash_exclude_mem_range() 296 (mem->nr_ranges - (i + 1)) * sizeof(mem->ranges[i])); in crash_exclude_mem_range() 298 mem->nr_ranges--; in crash_exclude_mem_range() 301 if (mem->nr_ranges >= mem->max_nr_ranges) in crash_exclude_mem_range() 305 (mem->nr_ranges - (i + 1)) * sizeof(mem->ranges[i])); in crash_exclude_mem_range() 312 mem->nr_ranges++; in crash_exclude_mem_range()
|
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/ |
D | ffa.c | 380 u32 nr_ranges; in do_ffa_mem_frag_tx() local 394 nr_ranges = fraglen / sizeof(*buf); in do_ffa_mem_frag_tx() 396 ret = ffa_host_share_ranges(buf, nr_ranges); in do_ffa_mem_frag_tx() 410 WARN_ON(ffa_host_unshare_ranges(buf, nr_ranges)); in do_ffa_mem_frag_tx() 440 u32 offset, nr_ranges; in __do_ffa_mem_xfer() local 483 nr_ranges = ((void *)buf + fraglen) - (void *)reg->constituents; in __do_ffa_mem_xfer() 484 if (nr_ranges % sizeof(reg->constituents[0])) { in __do_ffa_mem_xfer() 489 nr_ranges /= sizeof(reg->constituents[0]); in __do_ffa_mem_xfer() 490 ret = ffa_host_share_ranges(reg->constituents, nr_ranges); in __do_ffa_mem_xfer() 513 WARN_ON(ffa_host_unshare_ranges(reg->constituents, nr_ranges)); in __do_ffa_mem_xfer()
|
/linux-6.12.1/fs/fuse/ |
D | dax.c | 93 unsigned long nr_ranges; member 114 free_threshold = max_t(unsigned long, fcd->nr_ranges * FUSE_DAX_RECLAIM_THRESHOLD / 100, in __kick_dmap_free_worker() 1231 long nr_pages, nr_ranges; in fuse_dax_mem_range_init() local 1251 nr_ranges = nr_pages/FUSE_DAX_PAGES; in fuse_dax_mem_range_init() 1253 __func__, nr_pages, nr_ranges); in fuse_dax_mem_range_init() 1255 for (i = 0; i < nr_ranges; i++) { in fuse_dax_mem_range_init() 1272 fcd->nr_free_ranges = nr_ranges; in fuse_dax_mem_range_init() 1273 fcd->nr_ranges = nr_ranges; in fuse_dax_mem_range_init()
|
/linux-6.12.1/drivers/pinctrl/renesas/ |
D | core.c | 115 for (i = 0, offset = 0; i < pfc->nr_ranges; ++i) { in sh_pfc_get_pin_index() 401 unsigned int nr_ranges; in sh_pfc_init_ranges() local 409 pfc->nr_ranges = 1; in sh_pfc_init_ranges() 426 for (i = 1, nr_ranges = 1; i < pfc->info->nr_pins; ++i) { in sh_pfc_init_ranges() 428 nr_ranges++; in sh_pfc_init_ranges() 431 pfc->nr_ranges = nr_ranges; in sh_pfc_init_ranges() 432 pfc->ranges = devm_kcalloc(pfc->dev, nr_ranges, sizeof(*pfc->ranges), in sh_pfc_init_ranges()
|
D | gpio.c | 370 for (i = 0; i < pfc->nr_ranges; ++i) { in sh_pfc_register_gpiochip()
|
D | sh_pfc.h | 241 unsigned int nr_ranges; member
|
/linux-6.12.1/include/linux/ |
D | crash_core.h | 13 unsigned int nr_ranges; member
|
D | damon.h | 723 unsigned int nr_ranges);
|
/linux-6.12.1/mm/damon/ |
D | core.c | 211 unsigned int nr_ranges) in damon_set_regions() argument 219 for (i = 0; i < nr_ranges; i++) { in damon_set_regions() 223 if (i == nr_ranges) in damon_set_regions() 229 for (i = 0; i < nr_ranges; i++) { in damon_set_regions()
|