/kernel/ |
D | delayacct.c | 136 s64 tmp; in delayacct_add_tsk() local 139 tmp = (s64)d->cpu_run_real_total; in delayacct_add_tsk() 140 tmp += utime + stime; in delayacct_add_tsk() 141 d->cpu_run_real_total = (tmp < (s64)d->cpu_run_real_total) ? 0 : tmp; in delayacct_add_tsk() 144 tmp = (s64)d->cpu_scaled_run_real_total; in delayacct_add_tsk() 145 tmp += utimescaled + stimescaled; in delayacct_add_tsk() 147 (tmp < (s64)d->cpu_scaled_run_real_total) ? 0 : tmp; in delayacct_add_tsk() 159 tmp = (s64)d->cpu_delay_total + t2; in delayacct_add_tsk() 160 d->cpu_delay_total = (tmp < (s64)d->cpu_delay_total) ? 0 : tmp; in delayacct_add_tsk() 162 tmp = (s64)d->cpu_run_virtual_total + t3; in delayacct_add_tsk() [all …]
|
D | resource.c | 175 struct resource *tmp, **p; in __request_resource() local 185 tmp = *p; in __request_resource() 186 if (!tmp || tmp->start > end) { in __request_resource() 187 new->sibling = tmp; in __request_resource() 192 p = &tmp->sibling; in __request_resource() 193 if (tmp->end < start) in __request_resource() 195 return tmp; in __request_resource() 201 struct resource *tmp, **p, *chd; in __release_resource() local 205 tmp = *p; in __release_resource() 206 if (!tmp) in __release_resource() [all …]
|
D | sysctl.c | 346 char *p, tmp[TMPBUFLEN]; in proc_get_long() local 355 memcpy(tmp, *buf, len); in proc_get_long() 357 tmp[len] = 0; in proc_get_long() 358 p = tmp; in proc_get_long() 370 len = p - tmp; in proc_get_long() 404 char tmp[TMPBUFLEN], *p = tmp; in proc_put_long() local 407 len = strlen(tmp); in proc_put_long() 410 memcpy(*buf, tmp, len); in proc_put_long() 846 int tmp, ret; in do_proc_dointvec_minmax_conv() local 852 int *ip = write ? &tmp : valp; in do_proc_dointvec_minmax_conv() [all …]
|
D | crash_core.c | 48 char *cur = cmdline, *tmp; in parse_crashkernel_mem() local 64 start = memparse(cur, &tmp); in parse_crashkernel_mem() 65 if (cur == tmp) { in parse_crashkernel_mem() 69 cur = tmp; in parse_crashkernel_mem() 78 end = memparse(cur, &tmp); in parse_crashkernel_mem() 79 if (cur == tmp) { in parse_crashkernel_mem() 83 cur = tmp; in parse_crashkernel_mem() 96 size = memparse(cur, &tmp); in parse_crashkernel_mem() 97 if (cur == tmp) { in parse_crashkernel_mem() 101 cur = tmp; in parse_crashkernel_mem() [all …]
|
D | pid.c | 165 struct pid_namespace *tmp; in alloc_pid() local 184 tmp = ns; in alloc_pid() 200 if (tid != 1 && !tmp->child_reaper) in alloc_pid() 203 if (!checkpoint_restore_ns_capable(tmp->user_ns)) in alloc_pid() 212 nr = idr_alloc(&tmp->idr, NULL, tid, in alloc_pid() 226 if (idr_get_cursor(&tmp->idr) > RESERVED_PIDS) in alloc_pid() 233 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid() 245 pid->numbers[i].ns = tmp; in alloc_pid() 246 tmp = tmp->parent; in alloc_pid() 342 int tmp; in __change_pid() local [all …]
|
D | sys.c | 1021 struct tms tmp; in SYSCALL_DEFINE1() local 1023 do_sys_times(&tmp); in SYSCALL_DEFINE1() 1024 if (copy_to_user(tbuf, &tmp, sizeof(struct tms))) in SYSCALL_DEFINE1() 1041 struct compat_tms tmp; in COMPAT_SYSCALL_DEFINE1() local 1045 tmp.tms_utime = clock_t_to_compat_clock_t(tms.tms_utime); in COMPAT_SYSCALL_DEFINE1() 1046 tmp.tms_stime = clock_t_to_compat_clock_t(tms.tms_stime); in COMPAT_SYSCALL_DEFINE1() 1047 tmp.tms_cutime = clock_t_to_compat_clock_t(tms.tms_cutime); in COMPAT_SYSCALL_DEFINE1() 1048 tmp.tms_cstime = clock_t_to_compat_clock_t(tms.tms_cstime); in COMPAT_SYSCALL_DEFINE1() 1049 if (copy_to_user(tbuf, &tmp, sizeof(tmp))) in COMPAT_SYSCALL_DEFINE1() 1303 struct new_utsname tmp; in SYSCALL_DEFINE1() local [all …]
|
D | fork.c | 658 struct vm_area_struct *mpnt, *tmp; in dup_mmap() local 725 tmp = vm_area_dup(mpnt); in dup_mmap() 726 if (!tmp) in dup_mmap() 728 retval = vma_dup_policy(mpnt, tmp); in dup_mmap() 731 tmp->vm_mm = mm; in dup_mmap() 732 retval = dup_userfaultfd(tmp, &uf); in dup_mmap() 735 if (tmp->vm_flags & VM_WIPEONFORK) { in dup_mmap() 741 tmp->anon_vma = NULL; in dup_mmap() 742 } else if (anon_vma_fork(tmp, mpnt)) in dup_mmap() 744 vm_flags_clear(tmp, VM_LOCKED_MASK); in dup_mmap() [all …]
|
/kernel/power/ |
D | console.c | 48 struct pm_vt_switch *entry, *tmp; in pm_vt_switch_required() local 51 list_for_each_entry(tmp, &pm_vt_switch_list, head) { in pm_vt_switch_required() 52 if (tmp->dev == dev) { in pm_vt_switch_required() 54 tmp->required = required; in pm_vt_switch_required() 80 struct pm_vt_switch *tmp; in pm_vt_switch_unregister() local 83 list_for_each_entry(tmp, &pm_vt_switch_list, head) { in pm_vt_switch_unregister() 84 if (tmp->dev == dev) { in pm_vt_switch_unregister() 85 list_del(&tmp->head); in pm_vt_switch_unregister() 86 kfree(tmp); in pm_vt_switch_unregister()
|
D | swap.c | 967 struct swap_map_page_list *tmp; in release_swap_reader() local 972 tmp = handle->maps; in release_swap_reader() 974 kfree(tmp); in release_swap_reader() 983 struct swap_map_page_list *tmp, *last; in get_swap_reader() local 995 tmp = kzalloc(sizeof(*handle->maps), GFP_KERNEL); in get_swap_reader() 996 if (!tmp) { in get_swap_reader() 1001 handle->maps = tmp; in get_swap_reader() 1003 last->next = tmp; in get_swap_reader() 1004 last = tmp; in get_swap_reader() 1006 tmp->map = (struct swap_map_page *) in get_swap_reader() [all …]
|
/kernel/cgroup/ |
D | cpuset.c | 626 static inline int alloc_cpumasks(struct cpuset *cs, struct tmpmasks *tmp) in alloc_cpumasks() argument 635 pmask1 = &tmp->new_cpus; in alloc_cpumasks() 636 pmask2 = &tmp->addmask; in alloc_cpumasks() 637 pmask3 = &tmp->delmask; in alloc_cpumasks() 668 static inline void free_cpumasks(struct cpuset *cs, struct tmpmasks *tmp) in free_cpumasks() argument 676 if (tmp) { in free_cpumasks() 677 free_cpumask_var(tmp->new_cpus); in free_cpumasks() 678 free_cpumask_var(tmp->addmask); in free_cpumasks() 679 free_cpumask_var(tmp->delmask); in free_cpumasks() 1364 struct tmpmasks *tmp) in update_parent_subparts_cpumask() argument [all …]
|
/kernel/trace/ |
D | trace_probe.c | 212 char *tmp; in traceprobe_split_symbol_offset() local 218 tmp = strpbrk(symbol, "+-"); in traceprobe_split_symbol_offset() 219 if (tmp) { in traceprobe_split_symbol_offset() 220 ret = kstrtol(tmp, 0, offset); in traceprobe_split_symbol_offset() 223 *tmp = '\0'; in traceprobe_split_symbol_offset() 380 char *tmp; in parse_probe_arg() local 464 tmp = strchr(arg, '('); in parse_probe_arg() 465 if (!tmp) { in parse_probe_arg() 469 *tmp = '\0'; in parse_probe_arg() 475 offs += (tmp + 1 - arg) + (arg[0] != '-' ? 1 : 0); in parse_probe_arg() [all …]
|
D | trace_boot.c | 424 char *tmp; in trace_boot_init_histograms() local 432 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 433 if (!tmp) in trace_boot_init_histograms() 436 pr_err("Failed to apply hist trigger: %s\n", tmp); in trace_boot_init_histograms() 437 kfree(tmp); in trace_boot_init_histograms() 443 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 444 if (!tmp) in trace_boot_init_histograms() 447 pr_err("Failed to apply hist trigger: %s\n", tmp); in trace_boot_init_histograms() 448 kfree(tmp); in trace_boot_init_histograms()
|
D | trace_events_inject.c | 249 u8 tmp = (u8) val; in parse_entry() local 251 memcpy(entry + field->offset, &tmp, 1); in parse_entry() 255 u16 tmp = (u16) val; in parse_entry() local 257 memcpy(entry + field->offset, &tmp, 2); in parse_entry() 261 u32 tmp = (u32) val; in parse_entry() local 263 memcpy(entry + field->offset, &tmp, 4); in parse_entry()
|
D | trace_osnoise.c | 2052 struct dentry *tmp; in init_timerlat_stack_tracefs() local 2054 tmp = tracefs_create_file("print_stack", TRACE_MODE_WRITE, top_dir, in init_timerlat_stack_tracefs() 2056 if (!tmp) in init_timerlat_stack_tracefs() 2073 struct dentry *tmp; in init_timerlat_tracefs() local 2075 tmp = tracefs_create_file("timerlat_period_us", TRACE_MODE_WRITE, top_dir, in init_timerlat_tracefs() 2077 if (!tmp) in init_timerlat_tracefs() 2099 struct dentry *tmp; in init_tracefs() local 2110 tmp = tracefs_create_file("period_us", TRACE_MODE_WRITE, top_dir, in init_tracefs() 2112 if (!tmp) in init_tracefs() 2115 tmp = tracefs_create_file("runtime_us", TRACE_MODE_WRITE, top_dir, in init_tracefs() [all …]
|
/kernel/trace/rv/ |
D | rv.c | 345 struct dentry *tmp; in create_monitor_dir() local 352 tmp = rv_create_file("enable", RV_MODE_WRITE, mdef->root_d, mdef, &interface_enable_fops); in create_monitor_dir() 353 if (!tmp) { in create_monitor_dir() 358 tmp = rv_create_file("desc", RV_MODE_READ, mdef->root_d, mdef, &interface_desc_fops); in create_monitor_dir() 359 if (!tmp) { in create_monitor_dir() 762 struct dentry *tmp; in rv_init_interface() local 773 tmp = rv_create_file("available_monitors", RV_MODE_READ, rv_root.root_dir, NULL, in rv_init_interface() 775 if (!tmp) in rv_init_interface() 778 tmp = rv_create_file("enabled_monitors", RV_MODE_WRITE, rv_root.root_dir, NULL, in rv_init_interface() 780 if (!tmp) in rv_init_interface() [all …]
|
/kernel/sched/ |
D | topology.c | 270 struct perf_domain *tmp; in free_pd() local 273 tmp = pd->next; in free_pd() 275 pd = tmp; in free_pd() 378 struct perf_domain *pd = NULL, *tmp; in build_perf_domains() local 420 tmp = pd_init(i); in build_perf_domains() 421 if (!tmp) in build_perf_domains() 423 tmp->next = pd; in build_perf_domains() 424 pd = tmp; in build_perf_domains() 444 tmp = rd->pd; in build_perf_domains() 446 if (tmp) in build_perf_domains() [all …]
|
D | swait.c | 64 LIST_HEAD(tmp); in swake_up_all() 67 list_splice_init(&q->task_list, &tmp); in swake_up_all() 68 while (!list_empty(&tmp)) { in swake_up_all() 69 curr = list_first_entry(&tmp, typeof(*curr), task_list); in swake_up_all() 74 if (list_empty(&tmp)) in swake_up_all()
|
/kernel/locking/ |
D | rwsem.c | 261 long tmp = RWSEM_UNLOCKED_VALUE; in rwsem_write_trylock() local 265 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) { in rwsem_write_trylock() 423 struct rwsem_waiter *waiter, *tmp; in rwsem_mark_wake() local 518 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in rwsem_mark_wake() 557 list_for_each_entry_safe(waiter, tmp, &wlist, list) { in rwsem_mark_wake() 1332 long tmp; in __down_read_trylock() local 1337 tmp = atomic_long_read(&sem->count); in __down_read_trylock() 1338 while (!(tmp & RWSEM_READ_FAILED_MASK)) { in __down_read_trylock() 1339 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, in __down_read_trylock() 1340 tmp + RWSEM_READER_BIAS)) { in __down_read_trylock() [all …]
|
D | mutex.c | 870 unsigned tmp; in ww_mutex_deadlock_injection() local 873 tmp = ctx->deadlock_inject_interval; in ww_mutex_deadlock_injection() 874 if (tmp > UINT_MAX/4) in ww_mutex_deadlock_injection() 875 tmp = UINT_MAX; in ww_mutex_deadlock_injection() 877 tmp = tmp*2 + tmp + tmp/2; in ww_mutex_deadlock_injection() 879 ctx->deadlock_inject_interval = tmp; in ww_mutex_deadlock_injection() 880 ctx->deadlock_inject_countdown = tmp; in ww_mutex_deadlock_injection()
|
/kernel/bpf/ |
D | disasm.c | 248 char tmp[64]; in print_bpf_insn() local 256 tmp, sizeof(tmp))); in print_bpf_insn() 265 char tmp[64]; in print_bpf_insn() local 271 tmp, sizeof(tmp))); in print_bpf_insn() 273 strcpy(tmp, "unknown"); in print_bpf_insn() 276 tmp, sizeof(tmp)), in print_bpf_insn()
|
D | dispatcher.c | 108 void *new, *tmp; in bpf_dispatcher_update() local 115 tmp = d->num_progs ? d->rw_image + noff : NULL; in bpf_dispatcher_update() 120 if (bpf_dispatcher_prepare(d, new, tmp)) in bpf_dispatcher_update() 122 if (IS_ERR(bpf_arch_text_copy(new, tmp, PAGE_SIZE / 2))) in bpf_dispatcher_update()
|
/kernel/time/ |
D | clocksource.c | 49 u64 tmp; in clocks_calc_mult_shift() local 56 tmp = ((u64)maxsec * from) >> 32; in clocks_calc_mult_shift() 57 while (tmp) { in clocks_calc_mult_shift() 58 tmp >>=1; in clocks_calc_mult_shift() 67 tmp = (u64) to << sft; in clocks_calc_mult_shift() 68 tmp += from / 2; in clocks_calc_mult_shift() 69 do_div(tmp, from); in clocks_calc_mult_shift() 70 if ((tmp >> sftacc) == 0) in clocks_calc_mult_shift() 73 *mult = tmp; in clocks_calc_mult_shift() 661 struct clocksource *cs, *tmp; in __clocksource_watchdog_kthread() local [all …]
|
D | timekeeping.c | 153 struct timespec64 tmp; in tk_set_wall_to_mono() local 159 set_normalized_timespec64(&tmp, -tk->wall_to_monotonic.tv_sec, in tk_set_wall_to_mono() 161 WARN_ON_ONCE(tk->offs_real != timespec64_to_ktime(tmp)); in tk_set_wall_to_mono() 163 set_normalized_timespec64(&tmp, -wtm.tv_sec, -wtm.tv_nsec); in tk_set_wall_to_mono() 164 tk->offs_real = timespec64_to_ktime(tmp); in tk_set_wall_to_mono() 312 u64 tmp, ntpinterval; in tk_setup_internals() local 326 tmp = NTP_INTERVAL_LENGTH; in tk_setup_internals() 327 tmp <<= clock->shift; in tk_setup_internals() 328 ntpinterval = tmp; in tk_setup_internals() 329 tmp += clock->mult/2; in tk_setup_internals() [all …]
|
/kernel/debug/kdb/ |
D | kdb_io.c | 202 char tmp; in kdb_read() local 240 tmp = *cp; in kdb_read() 244 *cp = tmp; in kdb_read() 262 tmp = *cp; in kdb_read() 266 *cp = tmp; in kdb_read() 376 tmp = *cp; in kdb_read() 380 *cp = tmp; in kdb_read()
|
/kernel/debug/ |
D | gdbstub.c | 238 char *tmp; in kgdb_mem2hex() local 245 tmp = buf + count; in kgdb_mem2hex() 247 err = copy_from_kernel_nofault(tmp, mem, count); in kgdb_mem2hex() 251 buf = hex_byte_pack(buf, *tmp); in kgdb_mem2hex() 252 tmp++; in kgdb_mem2hex() 957 int tmp; in gdb_serial_stub() local 1048 tmp = gdb_cmd_exception_pass(ks); in gdb_serial_stub() 1049 if (tmp > 0) in gdb_serial_stub() 1051 if (tmp == 0) in gdb_serial_stub()
|