Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 40) sorted by relevance

12

/kernel/sched/
Dcompletion.c28 void complete(struct completion *x) in complete() argument
32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete()
34 if (x->done != UINT_MAX) in complete()
35 x->done++; in complete()
36 swake_up_locked(&x->wait); in complete()
37 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete()
57 void complete_all(struct completion *x) in complete_all() argument
63 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
64 x->done = UINT_MAX; in complete_all()
65 swake_up_all_locked(&x->wait); in complete_all()
[all …]
Ddebug.c14 #define SEQ_printf(m, x...) \ argument
17 seq_printf(m, x); \
19 pr_cont(x); \
45 #define SPLIT_NS(x) nsec_high(x), nsec_low(x) argument
675 #define P(x) \ in print_rt_rq() argument
676 SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rt_rq->x)) in print_rt_rq()
677 #define PU(x) \ in print_rt_rq() argument
678 SEQ_printf(m, " .%-30s: %lu\n", #x, (unsigned long)(rt_rq->x)) in print_rt_rq()
679 #define PN(x) \ in print_rt_rq() argument
680 SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rt_rq->x)) in print_rt_rq()
[all …]
Dloadavg.c109 fixed_power_int(unsigned long x, unsigned int frac_bits, unsigned int n) in fixed_power_int() argument
116 result *= x; in fixed_power_int()
123 x *= x; in fixed_power_int()
124 x += 1UL << (frac_bits - 1); in fixed_power_int()
125 x >>= frac_bits; in fixed_power_int()
Dclock.c247 notrace static inline u64 wrap_min(u64 x, u64 y) in wrap_min() argument
249 return (s64)(x - y) < 0 ? x : y; in wrap_min()
252 notrace static inline u64 wrap_max(u64 x, u64 y) in wrap_max() argument
254 return (s64)(x - y) > 0 ? x : y; in wrap_max()
Dsched.h98 # define SCHED_WARN_ON(x) WARN_ONCE(x, #x) argument
100 # define SCHED_WARN_ON(x) ({ (void)(x), 0; }) argument
2058 #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x])) argument
2062 #define sched_feat(x) (sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) argument
2080 #define sched_feat(x) !!(sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) argument
/kernel/time/
Dtime.c621 clock_t jiffies_to_clock_t(unsigned long x) in jiffies_to_clock_t() argument
625 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
627 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
635 unsigned long clock_t_to_jiffies(unsigned long x) in clock_t_to_jiffies() argument
638 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies()
640 return x * (HZ / USER_HZ); in clock_t_to_jiffies()
643 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies()
647 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
652 u64 jiffies_64_to_clock_t(u64 x) in jiffies_64_to_clock_t() argument
[all …]
Dtimer_list.c125 #define P(x) \ in print_cpu() argument
126 SEQ_printf(m, " .%-15s: %Lu\n", #x, \ in print_cpu()
127 (unsigned long long)(cpu_base->x)) in print_cpu()
128 #define P_ns(x) \ in print_cpu() argument
129 SEQ_printf(m, " .%-15s: %Lu nsecs\n", #x, \ in print_cpu()
130 (unsigned long long)(ktime_to_ns(cpu_base->x))) in print_cpu()
144 # define P(x) \ in print_cpu() argument
145 SEQ_printf(m, " .%-15s: %Lu\n", #x, \ in print_cpu()
146 (unsigned long long)(ts->x)) in print_cpu()
147 # define P_ns(x) \ in print_cpu() argument
[all …]
Dtimeconst.bc30 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"
Dtimekeeping_internal.h15 #define tk_debug_account_sleep_time(x) argument
/kernel/trace/
Dtrace_output.h36 #define SEQ_PUT_FIELD(s, x) \ argument
37 trace_seq_putmem(s, &(x), sizeof(x))
39 #define SEQ_PUT_HEX_FIELD(s, x) \ argument
40 trace_seq_putmem_hex(s, &(x), sizeof(x))
Dtrace_stack.c160 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()
Dpreemptirq_delay_test.c37 #define MIN(x, y) ((x) < (y) ? (x) : (y)) argument
Dtrace_selftest.c1151 struct wakeup_test_data *x = data; in trace_wakeup_test_thread() local
1156 complete(&x->is_ready); in trace_wakeup_test_thread()
1160 while (!x->go) { in trace_wakeup_test_thread()
1165 complete(&x->is_ready); in trace_wakeup_test_thread()
Dtrace_hwlat.c158 #define time_to_us(x) div_u64(x, 1000) argument
/kernel/rcu/
Drefscale.c43 #define SCALEOUT(s, x...) \ argument
44 pr_alert("%s" SCALE_FLAG s, scale_type, ## x)
46 #define VERBOSE_SCALEOUT(s, x...) \ argument
49 pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \
54 #define VERBOSE_SCALEOUT_BATCH(s, x...) \ argument
60 pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \
64 #define SCALEOUT_ERRSTRING(s, x...) pr_alert("%s" SCALE_FLAG "!!! " s "\n", scale_type, ## x) argument
461 unsigned long x; in ref_acqrel_section() local
466 x = smp_load_acquire(this_cpu_ptr(&test_acqrel)); in ref_acqrel_section()
467 smp_store_release(this_cpu_ptr(&test_acqrel), x + 1); in ref_acqrel_section()
[all …]
Drcu.h262 #define TPS(x) tracepoint_string(x) argument
/kernel/debug/kdb/
Dkdb_private.h97 #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/
Dstatic_call_inline.c504 static int func_a(int x) in func_a() argument
506 return x+1; in func_a()
509 static int func_b(int x) in func_b() argument
511 return x+2; in func_b()
Dcpu.c2667 #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x)) argument
2668 #define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1) argument
2669 #define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2) argument
2670 #define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4) argument
Dscftorture.c41 #define VERBOSE_SCFTORTOUT(s, x...) \ argument
42 do { if (verbose) pr_alert(SCFTORT_FLAG s "\n", ## x); } while (0)
44 #define SCFTORTOUT_ERRSTRING(s, x...) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x) argument
Dcontext_tracking.c39 #define TPS(x) tracepoint_string(x) argument
Dsys.c1032 static compat_clock_t clock_t_to_compat_clock_t(clock_t x) in clock_t_to_compat_clock_t() argument
1034 return compat_jiffies_to_clock_t(clock_t_to_jiffies(x)); in clock_t_to_compat_clock_t()
1581 struct rlimit x; in SYSCALL_DEFINE2() local
1587 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2()
1589 if (x.rlim_cur > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1590 x.rlim_cur = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1591 if (x.rlim_max > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1592 x.rlim_max = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1593 return copy_to_user(rlim, &x, sizeof(x)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
Dsignal.c213 unsigned long i, *s, *m, x; in next_signal() local
223 x = *s &~ *m; in next_signal()
224 if (x) { in next_signal()
225 if (x & SYNCHRONOUS_MASK) in next_signal()
226 x &= SYNCHRONOUS_MASK; in next_signal()
227 sig = ffz(~x) + 1; in next_signal()
234 x = *++s &~ *++m; in next_signal()
235 if (!x) in next_signal()
237 sig = ffz(~x) + i*_NSIG_BPW + 1; in next_signal()
243 x = s[1] &~ m[1]; in next_signal()
[all …]
/kernel/bpf/
Ddisasm.c10 #define __BPF_FUNC_STR_FN(x) [BPF_FUNC_ ## x] = __stringify(bpf_ ## x) argument
Dcore.c1613 #define BPF_INSN_2_TBL(x, y) [BPF_##x | BPF_##y] = true in bpf_opcode_in_insntable() argument
1614 #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true in bpf_opcode_in_insntable() argument
1650 #define BPF_INSN_2_LBL(x, y) [BPF_##x | BPF_##y] = &&x##_##y in ___bpf_prog_run() argument
1651 #define BPF_INSN_3_LBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = &&x##_##y##_##z in ___bpf_prog_run() argument

12