/kernel/sched/ |
D | completion.c | 28 void complete(struct completion *x) in complete() argument 32 spin_lock_irqsave(&x->wait.lock, flags); in complete() 34 if (x->done != UINT_MAX) in complete() 35 x->done++; in complete() 36 __wake_up_locked(&x->wait, TASK_NORMAL, 1); in complete() 37 spin_unlock_irqrestore(&x->wait.lock, flags); in complete() 57 void complete_all(struct completion *x) in complete_all() argument 61 spin_lock_irqsave(&x->wait.lock, flags); in complete_all() 62 x->done = UINT_MAX; in complete_all() 63 __wake_up_locked(&x->wait, TASK_NORMAL, 0); in complete_all() [all …]
|
D | debug.c | 17 #define SEQ_printf(m, x...) \ argument 20 seq_printf(m, x); \ 22 pr_cont(x); \ 48 #define SPLIT_NS(x) nsec_high(x), nsec_low(x) argument 571 #define P(x) \ in print_rt_rq() argument 572 SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rt_rq->x)) in print_rt_rq() 573 #define PU(x) \ in print_rt_rq() argument 574 SEQ_printf(m, " .%-30s: %lu\n", #x, (unsigned long)(rt_rq->x)) in print_rt_rq() 575 #define PN(x) \ in print_rt_rq() argument 576 SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rt_rq->x)) in print_rt_rq() [all …]
|
D | loadavg.c | 110 fixed_power_int(unsigned long x, unsigned int frac_bits, unsigned int n) in fixed_power_int() argument 117 result *= x; in fixed_power_int() 124 x *= x; in fixed_power_int() 125 x += 1UL << (frac_bits - 1); in fixed_power_int() 126 x >>= frac_bits; in fixed_power_int()
|
D | clock.c | 249 static inline u64 wrap_min(u64 x, u64 y) in wrap_min() argument 251 return (s64)(x - y) < 0 ? x : y; in wrap_min() 254 static inline u64 wrap_max(u64 x, u64 y) in wrap_max() argument 256 return (s64)(x - y) > 0 ? x : y; in wrap_max()
|
D | sched.h | 79 # define SCHED_WARN_ON(x) WARN_ONCE(x, #x) argument 81 # define SCHED_WARN_ON(x) ({ (void)(x), 0; }) argument 1591 #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x])) argument 1607 #define sched_feat(x) !!(sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) argument
|
/kernel/trace/ |
D | trace_output.h | 35 #define SEQ_PUT_FIELD(s, x) \ argument 36 trace_seq_putmem(s, &(x), sizeof(x)) 38 #define SEQ_PUT_HEX_FIELD(s, x) \ argument 39 trace_seq_putmem_hex(s, &(x), sizeof(x))
|
D | trace_stack.c | 160 int i, x; in check_stack() local 211 x = 0; in check_stack() 226 stack_trace_index[x] = this_size; in check_stack() 235 stack_dump_trace[x] = stack_dump_trace[i++]; in check_stack() 236 this_size = stack_trace_index[x++] = in check_stack() 267 if (x > 1) { in check_stack() 269 sizeof(stack_trace_index[0]) * (x - 1)); in check_stack() 270 x--; in check_stack() 274 stack_trace_nr_entries = x; in check_stack()
|
D | trace_selftest.c | 1056 struct wakeup_test_data *x = data; in trace_wakeup_test_thread() local 1061 complete(&x->is_ready); in trace_wakeup_test_thread() 1065 while (!x->go) { in trace_wakeup_test_thread() 1070 complete(&x->is_ready); in trace_wakeup_test_thread()
|
D | bpf_trace.c | 1362 #define BPF_TRACE_DEFN_x(x) \ argument 1363 void bpf_trace_run##x(struct bpf_prog *prog, \ 1364 REPEAT(x, SARG, __DL_COM, __SEQ_0_11)) \ 1366 u64 args[x]; \ 1367 REPEAT(x, COPY, __DL_SEM, __SEQ_0_11); \ 1370 EXPORT_SYMBOL_GPL(bpf_trace_run##x)
|
D | trace_hwlat.c | 135 #define time_to_us(x) div_u64(x, 1000) argument
|
/kernel/time/ |
D | time.c | 711 clock_t jiffies_to_clock_t(unsigned long x) in jiffies_to_clock_t() argument 715 return x * (USER_HZ / HZ); in jiffies_to_clock_t() 717 return x / (HZ / USER_HZ); in jiffies_to_clock_t() 720 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t() 725 unsigned long clock_t_to_jiffies(unsigned long x) in clock_t_to_jiffies() argument 728 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies() 730 return x * (HZ / USER_HZ); in clock_t_to_jiffies() 733 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies() 737 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies() 742 u64 jiffies_64_to_clock_t(u64 x) in jiffies_64_to_clock_t() argument [all …]
|
D | timer_list.c | 140 #define P(x) \ in print_cpu() argument 141 SEQ_printf(m, " .%-15s: %Lu\n", #x, \ in print_cpu() 142 (unsigned long long)(cpu_base->x)) in print_cpu() 143 #define P_ns(x) \ in print_cpu() argument 144 SEQ_printf(m, " .%-15s: %Lu nsecs\n", #x, \ in print_cpu() 145 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu() 159 # define P(x) \ in print_cpu() argument 160 SEQ_printf(m, " .%-15s: %Lu\n", #x, \ in print_cpu() 161 (unsigned long long)(ts->x)) in print_cpu() 162 # define P_ns(x) \ in print_cpu() argument [all …]
|
D | timeconst.bc | 30 which brings the mul value into the range 2^b-1 <= x < 2^b. Such 63 print "#define HZ_TO_MSEC_MUL32\tU64_C(0x", fmul(s,1000,hz), ")\n" 64 print "#define HZ_TO_MSEC_ADJ32\tU64_C(0x", fadj(s,1000,hz), ")\n" 70 print "#define MSEC_TO_HZ_MUL32\tU64_C(0x", fmul(s,hz,1000), ")\n" 71 print "#define MSEC_TO_HZ_ADJ32\tU64_C(0x", fadj(s,hz,1000), ")\n" 85 print "#define HZ_TO_USEC_MUL32\tU64_C(0x", fmul(s,1000000,hz), ")\n" 86 print "#define HZ_TO_USEC_ADJ32\tU64_C(0x", fadj(s,1000000,hz), ")\n" 92 print "#define USEC_TO_HZ_MUL32\tU64_C(0x", fmul(s,hz,1000000), ")\n" 93 print "#define USEC_TO_HZ_ADJ32\tU64_C(0x", fadj(s,hz,1000000), ")\n"
|
D | timekeeping_internal.h | 13 #define tk_debug_account_sleep_time(x) argument
|
/kernel/debug/kdb/ |
D | kdb_private.h | 97 #define kdb_getarea(x, addr) kdb_getarea_size(&(x), addr, sizeof((x))) argument 98 #define kdb_putarea(addr, x) kdb_putarea_size(addr, &(x), sizeof((x))) argument
|
/kernel/ |
D | cpu.c | 2280 #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x)) argument 2281 #define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1) argument 2282 #define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2) argument 2283 #define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4) argument
|
D | sys.c | 972 static compat_clock_t clock_t_to_compat_clock_t(clock_t x) in clock_t_to_compat_clock_t() argument 974 return compat_jiffies_to_clock_t(clock_t_to_jiffies(x)); in clock_t_to_compat_clock_t() 1453 struct rlimit x; in SYSCALL_DEFINE2() local 1459 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2() 1461 if (x.rlim_cur > 0x7FFFFFFF) in SYSCALL_DEFINE2() 1462 x.rlim_cur = 0x7FFFFFFF; in SYSCALL_DEFINE2() 1463 if (x.rlim_max > 0x7FFFFFFF) in SYSCALL_DEFINE2() 1464 x.rlim_max = 0x7FFFFFFF; in SYSCALL_DEFINE2() 1465 return copy_to_user(rlim, &x, sizeof(x)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
|
D | signal.c | 210 unsigned long i, *s, *m, x; in next_signal() local 220 x = *s &~ *m; in next_signal() 221 if (x) { in next_signal() 222 if (x & SYNCHRONOUS_MASK) in next_signal() 223 x &= SYNCHRONOUS_MASK; in next_signal() 224 sig = ffz(~x) + 1; in next_signal() 231 x = *++s &~ *++m; in next_signal() 232 if (!x) in next_signal() 234 sig = ffz(~x) + i*_NSIG_BPW + 1; in next_signal() 240 x = s[1] &~ m[1]; in next_signal() [all …]
|
D | resource.c | 1493 int x = reserved; in reserve_setup() local 1500 if (x < MAXRESERVE) { in reserve_setup() 1501 struct resource *res = reserve + x; in reserve_setup() 1521 reserved = x+1; in reserve_setup()
|
D | fork.c | 130 #define NAMED_ARRAY_INDEX(x) [x] = __stringify(x) argument 666 long x = atomic_long_read(&mm->rss_stat.count[i]); in check_mm() local 668 if (unlikely(x)) in check_mm() 670 mm, resident_page_types[i], x); in check_mm()
|
D | kexec_core.c | 142 #define PAGE_COUNT(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) argument
|
/kernel/bpf/ |
D | disasm.c | 10 #define __BPF_FUNC_STR_FN(x) [BPF_FUNC_ ## x] = __stringify(bpf_ ## x) argument
|
D | core.c | 1283 #define BPF_INSN_2_TBL(x, y) [BPF_##x | BPF_##y] = true in bpf_opcode_in_insntable() argument 1284 #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true in bpf_opcode_in_insntable() argument 1313 #define BPF_INSN_2_LBL(x, y) [BPF_##x | BPF_##y] = &&x##_##y in ___bpf_prog_run() argument 1314 #define BPF_INSN_3_LBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = &&x##_##y##_##z in ___bpf_prog_run() argument
|
/kernel/rcu/ |
D | rcu.h | 257 #define TPS(x) tracepoint_string(x) argument
|
/kernel/power/ |
D | snapshot.c | 1567 static unsigned long __fraction(u64 x, u64 multiplier, u64 base) in __fraction() argument 1569 x *= multiplier; in __fraction() 1570 do_div(x, base); in __fraction() 1571 return (unsigned long)x; in __fraction()
|