/kernel/ |
D | resource.c | 150 static void free_resource(struct resource *res) in free_resource() argument 152 if (!res) in free_resource() 155 if (!PageSlab(virt_to_head_page(res))) { in free_resource() 157 res->sibling = bootmem_resource_free; in free_resource() 158 bootmem_resource_free = res; in free_resource() 161 kfree(res); in free_resource() 167 struct resource *res = NULL; in alloc_resource() local 171 res = bootmem_resource_free; in alloc_resource() 172 bootmem_resource_free = res->sibling; in alloc_resource() 176 if (res) in alloc_resource() [all …]
|
D | regset.c | 12 int res; in __regset_get() local 23 res = regset->regset_get(target, regset, in __regset_get() 25 if (res < 0) { in __regset_get() 27 return res; in __regset_get() 30 return size - res; in __regset_get()
|
D | kallsyms.c | 172 char *res = NULL; in cleanup_symbol_name() local 174 res = strrchr(s, '$'); in cleanup_symbol_name() 175 if (res) in cleanup_symbol_name() 176 *res = '\0'; in cleanup_symbol_name() 178 return res; in cleanup_symbol_name() 346 int res; in lookup_symbol_name() local 361 res = lookup_module_symbol_name(addr, symname); in lookup_symbol_name() 362 if (res) in lookup_symbol_name() 363 return res; in lookup_symbol_name() 373 int res; in lookup_symbol_attrs() local [all …]
|
D | acct.c | 146 struct bsd_acct_struct *res; in acct_get() local 150 res = to_acct(READ_ONCE(ns->bacct)); in acct_get() 151 if (!res) { in acct_get() 155 if (!atomic_long_inc_not_zero(&res->count)) { in acct_get() 161 mutex_lock(&res->lock); in acct_get() 162 if (res != to_acct(READ_ONCE(ns->bacct))) { in acct_get() 163 mutex_unlock(&res->lock); in acct_get() 164 acct_put(res); in acct_get() 167 return res; in acct_get()
|
D | iomem.c | 129 static void devm_memremap_release(struct device *dev, void *res) in devm_memremap_release() argument 131 memunmap(*(void **)res); in devm_memremap_release() 134 static int devm_memremap_match(struct device *dev, void *res, void *match_data) in devm_memremap_match() argument 136 return *(void **)res == match_data; in devm_memremap_match()
|
D | kexec_file.c | 495 static int locate_mem_hole_callback(struct resource *res, void *arg) in locate_mem_hole_callback() argument 498 u64 start = res->start, end = res->end; in locate_mem_hole_callback() 504 if (res->flags & IORESOURCE_SYSRAM_DRIVER_MANAGED) in locate_mem_hole_callback() 529 struct resource res = { }; in kexec_walk_memblock() local 542 res.start = mstart; in kexec_walk_memblock() 543 res.end = mend - 1; in kexec_walk_memblock() 544 ret = func(&res, kbuf); in kexec_walk_memblock() 556 res.start = mstart; in kexec_walk_memblock() 557 res.end = mend - 1; in kexec_walk_memblock() 558 ret = func(&res, kbuf); in kexec_walk_memblock()
|
D | kcov.c | 458 int res = 0; in kcov_mmap() local 473 res = -EINVAL; in kcov_mmap() 490 return res; in kcov_mmap() 688 int res; in kcov_ioctl() local 714 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl() 719 return res; in kcov_ioctl()
|
/kernel/power/ |
D | user.c | 136 ssize_t res; in snapshot_read() local 143 res = -ENODATA; in snapshot_read() 147 res = snapshot_read_next(&data->handle); in snapshot_read() 148 if (res <= 0) in snapshot_read() 151 res = PAGE_SIZE - pg_offp; in snapshot_read() 154 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read() 155 data_of(data->handle), res); in snapshot_read() 156 if (res > 0) in snapshot_read() 157 *offp += res; in snapshot_read() 162 return res; in snapshot_read() [all …]
|
D | swap.c | 347 int res; in swsusp_swap_check() local 350 res = swap_type_of(swsusp_resume_device, swsusp_resume_block); in swsusp_swap_check() 352 res = find_first_swap(&swsusp_resume_device); in swsusp_swap_check() 353 if (res < 0) in swsusp_swap_check() 354 return res; in swsusp_swap_check() 355 root_swap = res; in swsusp_swap_check() 362 res = set_blocksize(hib_resume_bdev, PAGE_SIZE); in swsusp_swap_check() 363 if (res < 0) in swsusp_swap_check() 366 return res; in swsusp_swap_check()
|
D | snapshot.c | 157 void *res; in get_image_page() local 159 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 161 while (res && swsusp_page_is_free(virt_to_page(res))) { in get_image_page() 163 swsusp_set_page_forbidden(virt_to_page(res)); in get_image_page() 165 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 167 if (res) { in get_image_page() 168 swsusp_set_page_forbidden(virt_to_page(res)); in get_image_page() 169 swsusp_set_page_free(virt_to_page(res)); in get_image_page() 171 return res; in get_image_page()
|
D | hibernate.c | 1155 dev_t res; in resume_store() local 1165 res = name_to_dev_t(name); in resume_store() 1167 if (!res) in resume_store() 1171 swsusp_resume_device = res; in resume_store()
|
/kernel/debug/kdb/ |
D | kdb_support.c | 326 int kdb_getarea_size(void *res, unsigned long addr, size_t size) in kdb_getarea_size() argument 328 int ret = copy_from_kernel_nofault((char *)res, (char *)addr, size); in kdb_getarea_size() 351 int kdb_putarea_size(unsigned long addr, void *res, size_t size) in kdb_putarea_size() argument 353 int ret = copy_to_kernel_nofault((char *)addr, (char *)res, size); in kdb_putarea_size() 377 static int kdb_getphys(void *res, unsigned long addr, size_t size) in kdb_getphys() argument 388 memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size); in kdb_getphys() 563 long res = 0; in kdb_task_state_string() local 572 res |= TASK_UNINTERRUPTIBLE; in kdb_task_state_string() 575 res |= RUNNING; in kdb_task_state_string() 578 res |= TASK_INTERRUPTIBLE; in kdb_task_state_string() [all …]
|
/kernel/irq/ |
D | devres.c | 18 static void devm_irq_release(struct device *dev, void *res) in devm_irq_release() argument 20 struct irq_devres *this = res; in devm_irq_release() 25 static int devm_irq_match(struct device *dev, void *res, void *data) in devm_irq_match() argument 27 struct irq_devres *this = res, *match = data; in devm_irq_match() 154 static void devm_irq_desc_release(struct device *dev, void *res) in devm_irq_desc_release() argument 156 struct irq_desc_devres *this = res; in devm_irq_desc_release() 240 static void devm_irq_remove_generic_chip(struct device *dev, void *res) in devm_irq_remove_generic_chip() argument 242 struct irq_generic_chip_devres *this = res; in devm_irq_remove_generic_chip()
|
D | handle.c | 146 irqreturn_t res; in __handle_irq_event_percpu() local 156 res = action->handler(irq, action->dev_id); in __handle_irq_event_percpu() 157 trace_irq_handler_exit(irq, action, res); in __handle_irq_event_percpu() 163 switch (res) { in __handle_irq_event_percpu() 185 retval |= res; in __handle_irq_event_percpu()
|
D | chip.c | 762 irqreturn_t res; in handle_fasteoi_nmi() local 770 res = action->handler(irq, action->dev_id); in handle_fasteoi_nmi() 771 trace_irq_handler_exit(irq, action, res); in handle_fasteoi_nmi() 935 irqreturn_t res; in handle_percpu_devid_irq() local 948 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_irq() 949 trace_irq_handler_exit(irq, action, res); in handle_percpu_devid_irq() 980 irqreturn_t res; in handle_percpu_devid_fasteoi_ipi() local 988 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_fasteoi_ipi() 989 trace_irq_handler_exit(irq, action, res); in handle_percpu_devid_fasteoi_ipi() 1005 irqreturn_t res; in handle_percpu_devid_fasteoi_nmi() local [all …]
|
D | irq_sim.c | 219 static void devm_irq_domain_release_sim(struct device *dev, void *res) in devm_irq_domain_release_sim() argument 221 struct irq_sim_devres *this = res; in devm_irq_domain_release_sim()
|
/kernel/time/ |
D | sched_clock.c | 85 u64 cyc, res; in sched_clock() local 94 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock() 97 return res; in sched_clock() 155 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local 214 res = cyc_to_ns(1ULL, new_mult, new_shift); in sched_clock_register() 217 bits, r, r_unit, res, wrap); in sched_clock_register()
|
D | clockevents.c | 29 int res; member 404 int res; in __clockevents_unbind() local 407 res = __clockevents_try_unbind(cu->ce, smp_processor_id()); in __clockevents_unbind() 408 if (res == -EAGAIN) in __clockevents_unbind() 409 res = clockevents_replace(cu->ce); in __clockevents_unbind() 410 cu->res = res; in __clockevents_unbind() 420 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind() 423 return cu.res; in clockevents_unbind()
|
D | time.c | 769 struct timespec64 res; in timespec64_add_safe() local 771 set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec, in timespec64_add_safe() 774 if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) { in timespec64_add_safe() 775 res.tv_sec = TIME64_MAX; in timespec64_add_safe() 776 res.tv_nsec = 0; in timespec64_add_safe() 779 return res; in timespec64_add_safe()
|
/kernel/bpf/ |
D | helpers.c | 417 unsigned long long *res, bool *is_negative) in __bpf_strtoull() argument 426 if (!buf || !buf_len || !res || !is_negative) in __bpf_strtoull() 453 val_len = _parse_integer(cur_buf, base, res); in __bpf_strtoull() 468 long long *res) in __bpf_strtoll() argument 480 *res = -_res; in __bpf_strtoll() 484 *res = _res; in __bpf_strtoll() 490 long *, res) in BPF_CALL_4() argument 500 *res = _res; in BPF_CALL_4() 515 unsigned long *, res) in BPF_CALL_4() argument 528 *res = _res; in BPF_CALL_4()
|
D | offload.c | 305 int res; in bpf_prog_offload_info_fill() local 308 res = ns_get_path_cb(&ns_path, bpf_prog_offload_info_fill_ns, &args); in bpf_prog_offload_info_fill() 309 if (res) { in bpf_prog_offload_info_fill() 312 return res; in bpf_prog_offload_info_fill() 529 int res; in bpf_map_offload_info_fill() local 531 res = ns_get_path_cb(&ns_path, bpf_map_offload_info_fill_ns, &args); in bpf_map_offload_info_fill() 532 if (res) { in bpf_map_offload_info_fill() 535 return res; in bpf_map_offload_info_fill()
|
D | bpf_local_storage.c | 450 u16 i, res = 0; in bpf_local_storage_cache_idx_get() local 457 res = i; in bpf_local_storage_cache_idx_get() 464 cache->idx_usage_counts[res]++; in bpf_local_storage_cache_idx_get() 468 return res; in bpf_local_storage_cache_idx_get()
|
/kernel/sched/ |
D | psi.c | 1077 int psi_show(struct seq_file *m, struct psi_group *group, enum psi_res res) in psi_show() argument 1093 for (full = 0; full < 2 - (res == PSI_CPU); full++) { in psi_show() 1099 avg[w] = group->avg[res * 2 + full][w]; in psi_show() 1100 total = div_u64(group->total[PSI_AVGS][res * 2 + full], in psi_show() 1145 char *buf, size_t nbytes, enum psi_res res) in psi_trigger_create() argument 1156 state = PSI_IO_SOME + res * 2; in psi_trigger_create() 1158 state = PSI_IO_FULL + res * 2; in psi_trigger_create() 1305 size_t nbytes, enum psi_res res) in psi_write() argument 1335 new = psi_trigger_create(&psi_system, buf, nbytes, res); in psi_write()
|
/kernel/printk/ |
D | printk.c | 2917 int res; in unregister_console() local 2923 res = _braille_unregister_console(console); in unregister_console() 2924 if (res < 0) in unregister_console() 2925 return res; in unregister_console() 2926 if (res > 0) in unregister_console() 2929 res = -ENODEV; in unregister_console() 2933 res = 0; in unregister_console() 2938 res = 0; in unregister_console() 2944 if (res) in unregister_console() 2962 res = console->exit(console); in unregister_console() [all …]
|
/kernel/locking/ |
D | lockdep_proc.c | 639 int res; in lock_stat_open() local 646 res = seq_open(file, &lockstat_ops); in lock_stat_open() 647 if (!res) { in lock_stat_open() 670 return res; in lock_stat_open()
|