Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 37) 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.c15 #define SEQ_printf(m, x...) \ argument
18 seq_printf(m, x); \
20 pr_cont(x); \
46 #define SPLIT_NS(x) nsec_high(x), nsec_low(x) argument
671 #define P(x) \ in print_rt_rq() argument
672 SEQ_printf(m, " .%-30s: %Ld\n", #x, (long long)(rt_rq->x)) in print_rt_rq()
673 #define PU(x) \ in print_rt_rq() argument
674 SEQ_printf(m, " .%-30s: %lu\n", #x, (unsigned long)(rt_rq->x)) in print_rt_rq()
675 #define PN(x) \ in print_rt_rq() argument
676 SEQ_printf(m, " .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rt_rq->x)) in print_rt_rq()
[all …]
Dloadavg.c110 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()
Dclock.c249 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()
Dsched.h85 # define SCHED_WARN_ON(x) WARN_ONCE(x, #x) argument
87 # define SCHED_WARN_ON(x) ({ (void)(x), 0; }) argument
2031 #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x])) argument
2035 #define sched_feat(x) (sysctl_sched_features & (1UL << __SCHED_FEAT_##x)) argument
2053 #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.c1060 struct wakeup_test_data *x = data; in trace_wakeup_test_thread() local
1065 complete(&x->is_ready); in trace_wakeup_test_thread()
1069 while (!x->go) { in trace_wakeup_test_thread()
1074 complete(&x->is_ready); in trace_wakeup_test_thread()
Dbpf_trace.c1907 #define BPF_TRACE_DEFN_x(x) \ argument
1908 void bpf_trace_run##x(struct bpf_prog *prog, \
1909 REPEAT(x, SARG, __DL_COM, __SEQ_0_11)) \
1911 u64 args[x]; \
1912 REPEAT(x, COPY, __DL_SEM, __SEQ_0_11); \
1915 EXPORT_SYMBOL_GPL(bpf_trace_run##x)
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
47 do { if (verbose) pr_alert("%s" SCALE_FLAG s, scale_type, ## x); } while (0)
51 #define VERBOSE_SCALEOUT_BATCH(s, x...) \ argument
57 pr_alert("%s" SCALE_FLAG s, scale_type, ## x); \
61 #define VERBOSE_SCALEOUT_ERRSTRING(s, x...) \ argument
62 do { if (verbose) pr_alert("%s" SCALE_FLAG "!!! " s, scale_type, ## x); } while (0)
439 unsigned long x; in ref_acqrel_section() local
444 x = smp_load_acquire(this_cpu_ptr(&test_acqrel)); in ref_acqrel_section()
[all …]
Drcu.h247 #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/
Dscftorture.c41 #define SCFTORTOUT(s, x...) \ argument
42 pr_alert(SCFTORT_FLAG s, ## x)
44 #define VERBOSE_SCFTORTOUT(s, x...) \ argument
45 do { if (verbose) pr_alert(SCFTORT_FLAG s, ## x); } while (0)
47 #define VERBOSE_SCFTORTOUT_ERRSTRING(s, x...) \ argument
48 do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s, ## x); } while (0)
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.c2642 #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x)) argument
2643 #define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1) argument
2644 #define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2) argument
2645 #define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4) argument
Dsys.c1031 static compat_clock_t clock_t_to_compat_clock_t(clock_t x) in clock_t_to_compat_clock_t() argument
1033 return compat_jiffies_to_clock_t(clock_t_to_jiffies(x)); in clock_t_to_compat_clock_t()
1514 struct rlimit x; in SYSCALL_DEFINE2() local
1520 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2()
1522 if (x.rlim_cur > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1523 x.rlim_cur = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1524 if (x.rlim_max > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1525 x.rlim_max = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1526 return copy_to_user(rlim, &x, sizeof(x)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
Dsignal.c211 unsigned long i, *s, *m, x; in next_signal() local
221 x = *s &~ *m; in next_signal()
222 if (x) { in next_signal()
223 if (x & SYNCHRONOUS_MASK) in next_signal()
224 x &= SYNCHRONOUS_MASK; in next_signal()
225 sig = ffz(~x) + 1; in next_signal()
232 x = *++s &~ *++m; in next_signal()
233 if (!x) in next_signal()
235 sig = ffz(~x) + i*_NSIG_BPW + 1; in next_signal()
241 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.c1354 #define BPF_INSN_2_TBL(x, y) [BPF_##x | BPF_##y] = true in bpf_opcode_in_insntable() argument
1355 #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true in bpf_opcode_in_insntable() argument
1391 #define BPF_INSN_2_LBL(x, y) [BPF_##x | BPF_##y] = &&x##_##y in ___bpf_prog_run() argument
1392 #define BPF_INSN_3_LBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = &&x##_##y##_##z in ___bpf_prog_run() argument

12