/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 | kallsyms.c | 282 char *res; in cleanup_symbol_name() local 284 res = strrchr(s, '$'); in cleanup_symbol_name() 285 if (res) in cleanup_symbol_name() 286 *res = '\0'; in cleanup_symbol_name() 341 int res; in lookup_symbol_name() local 356 res = lookup_module_symbol_name(addr, symname); in lookup_symbol_name() 357 if (res) in lookup_symbol_name() 358 return res; in lookup_symbol_name() 368 int res; in lookup_symbol_attrs() local 384 res = lookup_module_symbol_attrs(addr, size, offset, modname, name); in lookup_symbol_attrs() [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 | 532 static int locate_mem_hole_callback(struct resource *res, void *arg) in locate_mem_hole_callback() argument 535 u64 start = res->start, end = res->end; in locate_mem_hole_callback() 561 struct resource res = { }; in kexec_walk_memblock() local 574 res.start = mstart; in kexec_walk_memblock() 575 res.end = mend - 1; in kexec_walk_memblock() 576 ret = func(&res, kbuf); in kexec_walk_memblock() 588 res.start = mstart; in kexec_walk_memblock() 589 res.end = mend - 1; in kexec_walk_memblock() 590 ret = func(&res, kbuf); in kexec_walk_memblock()
|
D | kcov.c | 444 int res = 0; in kcov_mmap() local 458 res = -EINVAL; in kcov_mmap() 475 return res; in kcov_mmap() 676 int res; in kcov_ioctl() local 701 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl() 706 return res; in kcov_ioctl()
|
D | reboot.c | 112 static void devm_unregister_reboot_notifier(struct device *dev, void *res) in devm_unregister_reboot_notifier() argument 114 WARN_ON(unregister_reboot_notifier(*(struct notifier_block **)res)); in devm_unregister_reboot_notifier()
|
/kernel/power/ |
D | user.c | 138 ssize_t res; in snapshot_read() local 145 res = -ENODATA; in snapshot_read() 149 res = snapshot_read_next(&data->handle); in snapshot_read() 150 if (res <= 0) in snapshot_read() 153 res = PAGE_SIZE - pg_offp; in snapshot_read() 156 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read() 157 data_of(data->handle), res); in snapshot_read() 158 if (res > 0) in snapshot_read() 159 *offp += res; in snapshot_read() 164 return res; in snapshot_read() [all …]
|
D | swap.c | 336 int res; in swsusp_swap_check() local 338 res = swap_type_of(swsusp_resume_device, swsusp_resume_block, in swsusp_swap_check() 340 if (res < 0) in swsusp_swap_check() 341 return res; in swsusp_swap_check() 343 root_swap = res; in swsusp_swap_check() 344 res = blkdev_get(hib_resume_bdev, FMODE_WRITE, NULL); in swsusp_swap_check() 345 if (res) in swsusp_swap_check() 346 return res; in swsusp_swap_check() 348 res = set_blocksize(hib_resume_bdev, PAGE_SIZE); in swsusp_swap_check() 349 if (res < 0) in swsusp_swap_check() [all …]
|
D | snapshot.c | 158 void *res; in get_image_page() local 160 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 162 while (res && swsusp_page_is_free(virt_to_page(res))) { in get_image_page() 164 swsusp_set_page_forbidden(virt_to_page(res)); in get_image_page() 166 res = (void *)get_zeroed_page(gfp_mask); in get_image_page() 168 if (res) { in get_image_page() 169 swsusp_set_page_forbidden(virt_to_page(res)); in get_image_page() 170 swsusp_set_page_free(virt_to_page(res)); in get_image_page() 172 return res; in get_image_page()
|
D | hibernate.c | 1053 dev_t res; in resume_store() local 1063 res = name_to_dev_t(name); in resume_store() 1065 if (!res) in resume_store() 1069 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 = probe_kernel_read((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 = probe_kernel_read((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 149 res = action->handler(irq, action->dev_id); in __handle_irq_event_percpu() 150 trace_irq_handler_exit(irq, action, res); in __handle_irq_event_percpu() 156 switch (res) { in __handle_irq_event_percpu() 178 retval |= res; in __handle_irq_event_percpu()
|
D | chip.c | 755 irqreturn_t res; in handle_fasteoi_nmi() local 763 res = action->handler(irq, action->dev_id); in handle_fasteoi_nmi() 764 trace_irq_handler_exit(irq, action, res); in handle_fasteoi_nmi() 928 irqreturn_t res; in handle_percpu_devid_irq() local 941 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_irq() 942 trace_irq_handler_exit(irq, action, res); in handle_percpu_devid_irq() 971 irqreturn_t res; in handle_percpu_devid_fasteoi_nmi() local 976 res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id)); in handle_percpu_devid_fasteoi_nmi() 977 trace_irq_handler_exit(irq, action, res); in handle_percpu_devid_fasteoi_nmi()
|
D | irq_sim.c | 128 static void devm_irq_sim_release(struct device *dev, void *res) in devm_irq_sim_release() argument 130 struct irq_sim_devres *this = res; in devm_irq_sim_release()
|
/kernel/bpf/ |
D | helpers.c | 365 unsigned long long *res, bool *is_negative) in __bpf_strtoull() argument 374 if (!buf || !buf_len || !res || !is_negative) in __bpf_strtoull() 401 val_len = _parse_integer(cur_buf, base, res); in __bpf_strtoull() 416 long long *res) in __bpf_strtoll() argument 428 *res = -_res; in __bpf_strtoll() 432 *res = _res; in __bpf_strtoll() 438 long *, res) in BPF_CALL_4() argument 448 *res = _res; in BPF_CALL_4() 463 unsigned long *, res) in BPF_CALL_4() argument 476 *res = _res; in BPF_CALL_4()
|
D | offload.c | 305 void *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 (IS_ERR(res)) { in bpf_prog_offload_info_fill() 312 return PTR_ERR(res); in bpf_prog_offload_info_fill() 529 void *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 (IS_ERR(res)) { in bpf_map_offload_info_fill() 535 return PTR_ERR(res); in bpf_map_offload_info_fill()
|
/kernel/time/ |
D | sched_clock.c | 98 u64 cyc, res; in sched_clock() local 108 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock() 111 return res; in sched_clock() 170 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local 227 res = cyc_to_ns(1ULL, new_mult, new_shift); in sched_clock_register() 230 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 | 858 struct timespec64 res; in timespec64_add_safe() local 860 set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec, in timespec64_add_safe() 863 if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) { in timespec64_add_safe() 864 res.tv_sec = TIME64_MAX; in timespec64_add_safe() 865 res.tv_nsec = 0; in timespec64_add_safe() 868 return res; in timespec64_add_safe()
|
/kernel/sched/ |
D | psi.c | 940 int psi_show(struct seq_file *m, struct psi_group *group, enum psi_res res) in psi_show() argument 956 for (full = 0; full < 2 - (res == PSI_CPU); full++) { in psi_show() 962 avg[w] = group->avg[res * 2 + full][w]; in psi_show() 963 total = div_u64(group->total[PSI_AVGS][res * 2 + full], in psi_show() 1008 char *buf, size_t nbytes, enum psi_res res) in psi_trigger_create() argument 1019 state = PSI_IO_SOME + res * 2; in psi_trigger_create() 1021 state = PSI_IO_FULL + res * 2; in psi_trigger_create() 1192 size_t nbytes, enum psi_res res) in psi_write() argument 1208 new = psi_trigger_create(&psi_system, buf, nbytes, res); in psi_write()
|
/kernel/dma/ |
D | mapping.c | 28 static void dmam_release(struct device *dev, void *res) in dmam_release() argument 30 struct dma_devres *this = res; in dmam_release() 36 static int dmam_match(struct device *dev, void *res, void *match_data) in dmam_match() argument 38 struct dma_devres *this = res, *match = match_data; in dmam_match()
|
/kernel/locking/ |
D | lockdep_proc.c | 589 int res; in lock_stat_open() local 596 res = seq_open(file, &lockstat_ops); in lock_stat_open() 597 if (!res) { in lock_stat_open() 616 return res; in lock_stat_open()
|
D | rtmutex.c | 936 int chain_walk = 0, res; in task_blocks_on_rt_mutex() local 1003 res = rt_mutex_adjust_prio_chain(owner, chwalk, lock, in task_blocks_on_rt_mutex() 1008 return res; in task_blocks_on_rt_mutex() 1206 static void rt_mutex_handle_deadlock(int res, int detect_deadlock, in rt_mutex_handle_deadlock() argument 1213 if (res != -EDEADLOCK || detect_deadlock) in rt_mutex_handle_deadlock()
|