Home
last modified time | relevance | path

Searched refs:nr_ranges (Results 1 – 14 of 14) sorted by relevance

/linux/arch/powerpc/kexec/
A Dranges.c86 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
180 nr_ranges = mem_rngs ? mem_rngs->nr_ranges : 0; in realloc_mem_ranges()
190 mem_rngs->nr_ranges = nr_ranges; in realloc_mem_ranges()
219 if (!mem_rngs || !(mem_rngs->nr_ranges)) in add_mem_range()
[all …]
A Dfile_load_64.c36 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()
1058 int i, nr_ranges, ret; in setup_new_fdt_ppc64() local
1107 nr_ranges = rmem ? rmem->nr_ranges : 0; in setup_new_fdt_ppc64()
1108 for (i = 0; i < nr_ranges; i++) { in setup_new_fdt_ppc64()
[all …]
/linux/arch/x86/kernel/
A Dcrash.c180 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
193 if (!nr_ranges) in fill_up_crash_elf_data()
200 nr_ranges += 2; 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()
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()
[all …]
/linux/arch/arm64/kernel/
A Dmachine_kexec_file.c45 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()
/linux/tools/perf/util/
A Dparse-events.y924 $$.nr_ranges = 0;
933 new_array.nr_ranges = $1.nr_ranges + $3.nr_ranges;
936 new_array.nr_ranges);
938 memcpy(&new_array.ranges[$1.nr_ranges], $3.ranges,
939 $3.nr_ranges * sizeof(new_array.ranges[0]));
951 array.nr_ranges = 1;
964 array.nr_ranges = 1;
A Dbpf-loader.c861 if (term->array.nr_ranges) { in bpf_map_op_setkey()
862 size_t memsz = term->array.nr_ranges * in bpf_map_op_setkey()
871 op->k.array.nr_ranges = term->array.nr_ranges; in bpf_map_op_setkey()
910 size_t memsz = op->k.array.nr_ranges * in bpf_map_op__clone()
1135 if (!array->nr_ranges) in config_map_indices_range_check()
1139 map_name, (int)array->nr_ranges); in config_map_indices_range_check()
1150 for (i = 0; i < array->nr_ranges; i++) { in config_map_indices_range_check()
1281 for (i = 0; i < op->k.array.nr_ranges; i++) { in foreach_key_array_ranges()
A Dparse-events.h95 size_t nr_ranges; member
A Dparse-events.c3276 if (term->array.nr_ranges) in parse_events_term__delete()
/linux/kernel/
A Dkexec_file.c1188 for (i = 0; i < mem->nr_ranges; i++) { in crash_exclude_mem_range()
1207 if (i < mem->nr_ranges - 1) { in crash_exclude_mem_range()
1209 for (j = i; j < mem->nr_ranges - 1; j++) { in crash_exclude_mem_range()
1222 mem->nr_ranges--; in crash_exclude_mem_range()
1225 mem->nr_ranges--; in crash_exclude_mem_range()
1251 if (j < mem->nr_ranges) { in crash_exclude_mem_range()
1253 for (i = mem->nr_ranges - 1; i >= j; i--) in crash_exclude_mem_range()
1259 mem->nr_ranges++; in crash_exclude_mem_range()
1276 nr_phdr += mem->nr_ranges; in crash_prepare_elf64_headers()
1338 for (i = 0; i < mem->nr_ranges; i++) { in crash_prepare_elf64_headers()
/linux/fs/fuse/
A Ddax.c93 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()
1232 long nr_pages, nr_ranges; in fuse_dax_mem_range_init() local
1252 nr_ranges = nr_pages/FUSE_DAX_PAGES; in fuse_dax_mem_range_init()
1254 __func__, nr_pages, nr_ranges); in fuse_dax_mem_range_init()
1256 for (i = 0; i < nr_ranges; i++) { in fuse_dax_mem_range_init()
1273 fcd->nr_free_ranges = nr_ranges; in fuse_dax_mem_range_init()
1274 fcd->nr_ranges = nr_ranges; in fuse_dax_mem_range_init()
/linux/drivers/pinctrl/renesas/
A Dcore.c116 for (i = 0, offset = 0; i < pfc->nr_ranges; ++i) { in sh_pfc_get_pin_index()
400 unsigned int nr_ranges; in sh_pfc_init_ranges() local
408 pfc->nr_ranges = 1; in sh_pfc_init_ranges()
425 for (i = 1, nr_ranges = 1; i < pfc->info->nr_pins; ++i) { in sh_pfc_init_ranges()
427 nr_ranges++; in sh_pfc_init_ranges()
430 pfc->nr_ranges = nr_ranges; in sh_pfc_init_ranges()
431 pfc->ranges = devm_kcalloc(pfc->dev, nr_ranges, sizeof(*pfc->ranges), in sh_pfc_init_ranges()
A Dgpio.c371 for (i = 0; i < pfc->nr_ranges; ++i) { in sh_pfc_register_gpiochip()
A Dsh_pfc.h262 unsigned int nr_ranges; member
/linux/include/linux/
A Dkexec.h217 unsigned int nr_ranges; member

Completed in 36 milliseconds