/kernel/ |
D | range.c | 12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument 14 if (start >= end) in add_range() 22 range[nr_range].end = end; in add_range() 30 u64 start, u64 end) in add_range_with_merge() argument 34 if (start >= end) in add_range_with_merge() 41 if (!range[i].end) in add_range_with_merge() 45 common_end = min(range[i].end, end); in add_range_with_merge() 51 end = max(range[i].end, end); in add_range_with_merge() 56 range[nr_range - 1].end = 0; in add_range_with_merge() 62 return add_range(range, az, nr_range, start, end); in add_range_with_merge() [all …]
|
D | resource.c | 36 .end = IO_SPACE_LIMIT, 44 .end = -1, 112 unsigned long long start, end; in r_show() local 113 int width = root->end < 0x10000 ? 4 : 8; in r_show() 122 end = r->end; in r_show() 124 start = end = 0; in r_show() 130 width, end, in r_show() 174 resource_size_t end = new->end; in __request_resource() local 177 if (end < start) in __request_resource() 181 if (end > root->end) in __request_resource() [all …]
|
D | resource_kunit.c | 22 static struct resource r0 = { .start = R0_START, .end = R0_END }; 23 static struct resource r1 = { .start = R1_START, .end = R1_END }; 24 static struct resource r2 = { .start = R2_START, .end = R2_END }; 25 static struct resource r3 = { .start = R3_START, .end = R3_END }; 26 static struct resource r4 = { .start = R4_START, .end = R4_END }; 37 .r1 = &r1, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true, 39 .r1 = &r2, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true, 41 .r1 = &r3, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true, 43 .r1 = &r4, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true, 49 .r1 = &r4, .r2 = &r1, .r.start = R1_START, .r.end = R4_END, .ret = true, [all …]
|
D | crash_dump.c | 31 char *end; in setup_elfcorehdr() local 34 elfcorehdr_addr = memparse(arg, &end); in setup_elfcorehdr() 35 if (*end == '@') { in setup_elfcorehdr() 37 elfcorehdr_addr = memparse(end + 1, &end); in setup_elfcorehdr() 39 return end > arg ? 0 : -EINVAL; in setup_elfcorehdr()
|
D | kexec_file.c | 419 static int locate_mem_hole_top_down(unsigned long start, unsigned long end, in locate_mem_hole_top_down() argument 425 temp_end = min(end, kbuf->buf_max); in locate_mem_hole_top_down() 457 static int locate_mem_hole_bottom_up(unsigned long start, unsigned long end, in locate_mem_hole_bottom_up() argument 469 if (temp_end > end || temp_end > kbuf->buf_max) in locate_mem_hole_bottom_up() 494 u64 start = res->start, end = res->end; in locate_mem_hole_callback() local 495 unsigned long sz = end - start + 1; in locate_mem_hole_callback() 506 if (end < kbuf->buf_min || start > kbuf->buf_max) in locate_mem_hole_callback() 514 return locate_mem_hole_top_down(start, end, kbuf); in locate_mem_hole_callback() 515 return locate_mem_hole_bottom_up(start, end, kbuf); in locate_mem_hole_callback() 544 res.end = mend - 1; in kexec_walk_memblock() [all …]
|
D | kexec_core.c | 62 .end = 0, 69 .end = 0, 247 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 284 unsigned long end) in kimage_is_destination_range() argument 293 if ((end > mstart) && (start < mend)) in kimage_is_destination_range() 448 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages() 1014 if (crashk_res.end != crashk_res.start) in crash_get_memory_size() 1024 unsigned long start, end; in crash_shrink_memory() local 1036 end = crashk_res.end; in crash_shrink_memory() 1037 old_size = (end == 0) ? 0 : end - start + 1; in crash_shrink_memory() [all …]
|
D | static_call_inline.c | 282 static int addr_conflict(struct static_call_site *site, void *start, void *end) in addr_conflict() argument 286 if (addr <= (unsigned long)end && in addr_conflict() 295 void *start, void *end, bool init) in __static_call_text_reserved() argument 301 if (addr_conflict(iter, start, end)) in __static_call_text_reserved() 312 static int __static_call_mod_text_reserved(void *start, void *end) in __static_call_mod_text_reserved() argument 319 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __static_call_mod_text_reserved() 329 start, end, mod->state == MODULE_STATE_COMING); in __static_call_mod_text_reserved() 455 static inline int __static_call_mod_text_reserved(void *start, void *end) in __static_call_mod_text_reserved() argument 462 int static_call_text_reserved(void *start, void *end) in static_call_text_reserved() argument 466 __stop_static_call_sites, start, end, init); in static_call_text_reserved() [all …]
|
D | jump_label.c | 309 static int addr_conflict(struct jump_entry *entry, void *start, void *end) in addr_conflict() argument 311 if (jump_entry_code(entry) <= (unsigned long)end && in addr_conflict() 319 struct jump_entry *iter_stop, void *start, void *end, bool init) in __jump_label_text_reserved() argument 326 if (addr_conflict(iter, start, end)) in __jump_label_text_reserved() 546 static int __jump_label_mod_text_reserved(void *start, void *end) in __jump_label_mod_text_reserved() argument 553 WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod); in __jump_label_mod_text_reserved() 563 start, end, mod->state == MODULE_STATE_COMING); in __jump_label_mod_text_reserved() 762 int jump_label_text_reserved(void *start, void *end) in jump_label_text_reserved() argument 766 __stop___jump_table, start, end, init); in jump_label_text_reserved() 772 ret = __jump_label_mod_text_reserved(start, end); in jump_label_text_reserved()
|
D | kprobes.c | 2484 int kprobe_add_area_blacklist(unsigned long start, unsigned long end) in kprobe_add_area_blacklist() argument 2489 for (entry = start; entry < end; entry += ret) { in kprobe_add_area_blacklist() 2500 static void kprobe_remove_area_blacklist(unsigned long start, unsigned long end) in kprobe_remove_area_blacklist() argument 2505 if (ent->start_addr < start || ent->start_addr >= end) in kprobe_remove_area_blacklist() 2553 unsigned long *end) in populate_kprobe_blacklist() argument 2559 for (iter = start; iter < end; iter++) { in populate_kprobe_blacklist() 2583 unsigned long start, end; in add_module_kprobe_blacklist() local 2593 end = start + mod->kprobes_text_size; in add_module_kprobe_blacklist() 2594 kprobe_add_area_blacklist(start, end); in add_module_kprobe_blacklist() 2599 end = start + mod->noinstr_text_size; in add_module_kprobe_blacklist() [all …]
|
D | tracepoint.c | 558 tracepoint_ptr_t *begin, tracepoint_ptr_t *end, in for_each_tracepoint_range() argument 566 for (iter = begin; iter < end; iter++) in for_each_tracepoint_range() 597 goto end; in register_tracepoint_module_notifier() 600 end: in register_tracepoint_module_notifier() 621 goto end; in unregister_tracepoint_module_notifier() 624 end: in unregister_tracepoint_module_notifier()
|
D | cfi.c | 34 static bool is_trap(unsigned long addr, s32 *start, s32 *end) in is_trap() argument 38 for (p = start; p < end; ++p) { in is_trap()
|
D | kallsyms.c | 212 unsigned int *end) in kallsyms_lookup_names() argument 250 if (end) { in kallsyms_lookup_names() 260 *end = high; in kallsyms_lookup_names() 310 unsigned int i, start, end; in kallsyms_on_each_match_symbol() local 312 ret = kallsyms_lookup_names(name, &start, &end); in kallsyms_on_each_match_symbol() 316 for (i = start; !ret && i <= end; i++) { in kallsyms_on_each_match_symbol()
|
D | crash_core.c | 61 unsigned long long start, end = ULLONG_MAX, size; in parse_crashkernel_mem() local 78 end = memparse(cur, &tmp); in parse_crashkernel_mem() 84 if (end <= start) { in parse_crashkernel_mem() 108 if (total_mem >= start && total_mem < end) { in parse_crashkernel_mem()
|
/kernel/trace/ |
D | trace_boot.c | 176 append_printf(char **bufp, char *end, const char *fmt, ...) in append_printf() argument 181 if (*bufp == end) in append_printf() 185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf() 186 if (ret < end - *bufp) { in append_printf() 189 *bufp = end; in append_printf() 198 append_str_nospace(char **bufp, char *end, const char *str) in append_str_nospace() argument 203 while (p < end - 1 && *str != '\0') { in append_str_nospace() 209 if (p == end - 1) { in append_str_nospace() 210 *bufp = end; in append_str_nospace() 220 char *end, const char *key) in trace_boot_hist_add_array() argument [all …]
|
D | trace_printk.c | 53 void hold_module_trace_bprintk_format(const char **start, const char **end) in hold_module_trace_bprintk_format() argument 59 if (start != end) in hold_module_trace_bprintk_format() 63 for (iter = start; iter < end; iter++) { in hold_module_trace_bprintk_format() 94 const char **end = start + mod->num_trace_bprintk_fmt; in module_trace_bprintk_format_notify() local 97 hold_module_trace_bprintk_format(start, end); in module_trace_bprintk_format_notify()
|
D | trace_mmiotrace.c | 64 resource_size_t start, end; in mmio_print_pcidev() local 78 end = dev->resource[i].end; in mmio_print_pcidev() 80 dev->resource[i].start < dev->resource[i].end ? in mmio_print_pcidev() 81 (unsigned long long)(end - start) + 1 : 0); in mmio_print_pcidev()
|
D | preemptirq_delay_test.c | 41 u64 start, end; in busy_wait() local 46 end = trace_clock_local(); in busy_wait() 49 } while ((end - start) < (time * 1000)); in busy_wait()
|
D | fgraph.c | 384 int start = 0, end = FTRACE_RETSTACK_ALLOC_SIZE; in alloc_retstack_tasklist() local 394 end = i; in alloc_retstack_tasklist() 402 if (start == end) { in alloc_retstack_tasklist() 420 for (i = start; i < end; i++) in alloc_retstack_tasklist()
|
/kernel/irq/ |
D | matrix.c | 114 unsigned int end = m->alloc_end; in matrix_alloc_area() local 116 bitmap_or(m->scratch_map, cm->managed_map, m->system_map, end); in matrix_alloc_area() 117 bitmap_or(m->scratch_map, m->scratch_map, cm->alloc_map, end); in matrix_alloc_area() 118 area = bitmap_find_next_zero_area(m->scratch_map, end, start, num, 0); in matrix_alloc_area() 119 if (area >= end) in matrix_alloc_area() 257 unsigned int bit, end = m->alloc_end; in irq_matrix_remove_managed() local 263 bitmap_andnot(m->scratch_map, cm->managed_map, cm->alloc_map, end); in irq_matrix_remove_managed() 265 bit = find_first_bit(m->scratch_map, end); in irq_matrix_remove_managed() 266 if (WARN_ON_ONCE(bit >= end)) in irq_matrix_remove_managed() 289 unsigned int bit, cpu, end; in irq_matrix_alloc_managed() local [all …]
|
/kernel/module/ |
D | tree_lookup.c | 46 unsigned long start, end; in mod_tree_comp() local 52 end = start + __mod_tree_size(n); in mod_tree_comp() 53 if (val >= end) in mod_tree_comp()
|
/kernel/power/ |
D | process.c | 38 ktime_t start, end, elapsed; in try_to_freeze_tasks() local 86 end = ktime_get_boottime(); in try_to_freeze_tasks() 87 elapsed = ktime_sub(end, start); in try_to_freeze_tasks()
|
D | suspend.c | 309 if (state == PM_SUSPEND_TO_IDLE && s2idle_ops && s2idle_ops->end) in platform_resume_end() 310 s2idle_ops->end(); in platform_resume_end() 311 else if (suspend_ops && suspend_ops->end) in platform_resume_end() 312 suspend_ops->end(); in platform_resume_end()
|
/kernel/dma/ |
D | pool.c | 59 phys_addr_t end; in cma_in_zone() local 71 end = cma_get_base(cma) + size - 1; in cma_in_zone() 73 return end <= DMA_BIT_MASK(zone_dma_bits); in cma_in_zone() 75 return end <= DMA_BIT_MASK(32); in cma_in_zone()
|
/kernel/kcsan/ |
D | kcsan_test.c | 163 const char *end; in __report_matches() local 179 end = &expect[0][sizeof(expect[0]) - 1]; in __report_matches() 180 cur += scnprintf(cur, end - cur, "BUG: KCSAN: %s in ", in __report_matches() 190 cur += scnprintf(cur, end - cur, "%ps / %ps", in __report_matches() 194 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in __report_matches() 203 end = &expect[1][sizeof(expect[1]) - 1]; in __report_matches() 205 cur += scnprintf(cur, end - cur, "race at unknown origin, with "); in __report_matches() 230 end = &expect[2][sizeof(expect[2]) - 1]; in __report_matches() 239 cur += scnprintf(cur, end - cur, "%s%s to ", access_type, in __report_matches() 243 cur += scnprintf(cur, end - cur, "0x%px of %zu bytes", in __report_matches()
|
/kernel/rcu/ |
D | refscale.c | 559 goto end; in ref_scale_reader() 603 end: in ref_scale_reader() 690 goto end; in main_func() 714 goto end; in main_func() 749 end: in main_func()
|