Home
last modified time | relevance | path

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

12345678910>>...16

/tools/lib/bpf/
Dbpf_endian.h13 #define ___bpf_mvb(x, b, n, m) ((__u##b)(x) << (b-(n+1)*8) >> (b-8) << (m*8)) argument
15 #define ___bpf_swab16(x) ((__u16)( \ argument
16 ___bpf_mvb(x, 16, 0, 1) | \
17 ___bpf_mvb(x, 16, 1, 0)))
19 #define ___bpf_swab32(x) ((__u32)( \ argument
20 ___bpf_mvb(x, 32, 0, 3) | \
21 ___bpf_mvb(x, 32, 1, 2) | \
22 ___bpf_mvb(x, 32, 2, 1) | \
23 ___bpf_mvb(x, 32, 3, 0)))
25 #define ___bpf_swab64(x) ((__u64)( \ argument
[all …]
Dbpf_tracing.h54 #define PT_REGS_PARM1(x) ((x)->di) argument
55 #define PT_REGS_PARM2(x) ((x)->si) argument
56 #define PT_REGS_PARM3(x) ((x)->dx) argument
57 #define PT_REGS_PARM4(x) ((x)->cx) argument
58 #define PT_REGS_PARM5(x) ((x)->r8) argument
59 #define PT_REGS_RET(x) ((x)->sp) argument
60 #define PT_REGS_FP(x) ((x)->bp) argument
61 #define PT_REGS_RC(x) ((x)->ax) argument
62 #define PT_REGS_SP(x) ((x)->sp) argument
63 #define PT_REGS_IP(x) ((x)->ip) argument
[all …]
/tools/include/tools/
Dendian.h10 #define htole16(x) (x) argument
13 #define htole32(x) (x) argument
16 #define htole64(x) (x) argument
20 #define le16toh(x) (x) argument
24 #define le32toh(x) (x) argument
28 #define le64toh(x) (x) argument
34 #define htole16(x) __bswap_16(x) argument
37 #define htole32(x) __bswap_32(x) argument
40 #define htole64(x) __bswap_64(x) argument
44 #define le16toh(x) __bswap_16(x) argument
[all …]
/tools/include/linux/
Dspinlock.h9 #define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER argument
10 #define __SPIN_LOCK_UNLOCKED(x) (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER argument
11 #define spin_lock_init(x) pthread_mutex_init(x, NULL) argument
13 #define spin_lock(x) pthread_mutex_lock(x) argument
14 #define spin_unlock(x) pthread_mutex_unlock(x) argument
15 #define spin_lock_bh(x) pthread_mutex_lock(x) argument
16 #define spin_unlock_bh(x) pthread_mutex_unlock(x) argument
17 #define spin_lock_irq(x) pthread_mutex_lock(x) argument
18 #define spin_unlock_irq(x) pthread_mutex_unlock(x) argument
19 #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) argument
[all …]
Dkernel.h19 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument
20 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
40 #define max(x, y) ({ \ argument
41 typeof(x) _max1 = (x); \
48 #define min(x, y) ({ \ argument
49 typeof(x) _min1 = (x); \
56 #define roundup(x, y) ( \ argument
59 (((x) + (__y - 1)) / __y) * __y; \
113 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) argument
114 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) argument
[all …]
Dkconfig.h14 #define __and(x, y) ___and(x, y) argument
15 #define ___and(x, y) ____and(__ARG_PLACEHOLDER_##x, y) argument
18 #define __or(x, y) ___or(x, y) argument
19 #define ___or(x, y) ____or(__ARG_PLACEHOLDER_##x, y) argument
35 #define __is_defined(x) ___is_defined(x) argument
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dint_typedefs.h25 #define S8_C(x) INT8_C(x) argument
26 #define U8_C(x) UINT8_C(x) argument
27 #define S16_C(x) INT16_C(x) argument
28 #define U16_C(x) UINT16_C(x) argument
29 #define S32_C(x) INT32_C(x) argument
30 #define U32_C(x) UINT32_C(x) argument
31 #define S64_C(x) INT64_C(x) argument
32 #define U64_C(x) UINT64_C(x) argument
Dbarriers.h38 #define READ_ONCE(x) (*(volatile typeof(x) *) &(x)) argument
39 #define WRITE_ONCE(x) ((*(volatile typeof(x) *) &(x)) = (val)) argument
Dlocks.h15 #define __acquire(x) argument
16 #define __acquires(x) argument
17 #define __release(x) argument
18 #define __releases(x) argument
128 #define __SPIN_LOCK_UNLOCKED(x) SPIN_LOCK_UNLOCKED argument
129 #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED argument
181 #define COMPLETION_INITIALIZER(x) {.count = 0} argument
182 #define DECLARE_COMPLETION(x) struct completion x = COMPLETION_INITIALIZER(x) argument
183 #define DECLARE_COMPLETION_ONSTACK(x) DECLARE_COMPLETION(x) argument
/tools/include/asm-generic/bitops/
Dfls.h13 static __always_inline int fls(unsigned int x) in fls() argument
17 if (!x) in fls()
19 if (!(x & 0xffff0000u)) { in fls()
20 x <<= 16; in fls()
23 if (!(x & 0xff000000u)) { in fls()
24 x <<= 8; in fls()
27 if (!(x & 0xf0000000u)) { in fls()
28 x <<= 4; in fls()
31 if (!(x & 0xc0000000u)) { in fls()
32 x <<= 2; in fls()
[all …]
Dfls64.h19 static __always_inline int fls64(__u64 x) in fls64() argument
21 __u32 h = x >> 32; in fls64()
24 return fls(x); in fls64()
27 static __always_inline int fls64(__u64 x) in fls64() argument
29 if (x == 0) in fls64()
31 return __fls(x) + 1; in fls64()
/tools/testing/selftests/arm64/mte/
Dmte_def.h47 #define MT_CLEAR_TAG(x) ((x) & ~(MT_TAG_MASK << MT_TAG_SHIFT)) argument
48 #define MT_SET_TAG(x, y) ((x) | (y << MT_TAG_SHIFT)) argument
49 #define MT_FETCH_TAG(x) ((x >> MT_TAG_SHIFT) & (MT_TAG_MASK)) argument
50 #define MT_ALIGN_UP(x) ((x + MT_ALIGN_GRANULE) & ~(MT_ALIGN_GRANULE)) argument
57 #define MT_EXCLUDE_TAG(x) (1 << (x)) argument
58 #define MT_INCLUDE_VALID_TAG(x) (MT_INCLUDE_TAG_MASK ^ MT_EXCLUDE_TAG(x)) argument
59 #define MT_INCLUDE_VALID_TAGS(x) (MT_INCLUDE_TAG_MASK ^ (x)) argument
/tools/testing/scatterlist/linux/
Dmm.h15 #define BUG_ON(x) assert(!(x)) argument
33 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) argument
34 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
35 #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) argument
36 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) argument
42 #define virt_to_page(x) ((void *)x) argument
43 #define page_address(x) ((void *)x) argument
56 #define __min(t1, t2, min1, min2, x, y) ({ \ argument
57 t1 min1 = (x); \
67 #define min(x, y) \ argument
[all …]
/tools/testing/selftests/powerpc/vphn/
Dtest-vphn.c8 #define cpu_to_be32(x) bswap_32(x) argument
9 #define be32_to_cpu(x) bswap_32(x) argument
10 #define be16_to_cpup(x) bswap_16(*x) argument
11 #define cpu_to_be64(x) bswap_64(x) argument
13 #define cpu_to_be32(x) (x) argument
14 #define be32_to_cpu(x) (x) argument
15 #define be16_to_cpup(x) (*x) argument
16 #define cpu_to_be64(x) (x) argument
/tools/include/uapi/linux/
Dconst.h25 #define _UL(x) (_AC(x, UL)) argument
26 #define _ULL(x) (_AC(x, ULL)) argument
28 #define _BITUL(x) (_UL(1) << (x)) argument
29 #define _BITULL(x) (_ULL(1) << (x)) argument
31 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) argument
32 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
/tools/testing/selftests/rseq/
Drseq.h63 #define rseq_likely(x) __builtin_expect(!!(x), 1) argument
64 #define rseq_unlikely(x) __builtin_expect(!!(x), 0) argument
67 #define RSEQ_ACCESS_ONCE(x) (*(__volatile__ __typeof__(x) *)&(x)) argument
68 #define RSEQ_WRITE_ONCE(x, v) __extension__ ({ RSEQ_ACCESS_ONCE(x) = (v); }) argument
69 #define RSEQ_READ_ONCE(x) RSEQ_ACCESS_ONCE(x) argument
71 #define __rseq_str_1(x) #x argument
72 #define __rseq_str(x) __rseq_str_1(x) argument
/tools/perf/util/
Dutil.h36 #define KVER_VERSION(x) (((x) >> 16) & 0xff) argument
37 #define KVER_PATCHLEVEL(x) (((x) >> 8) & 0xff) argument
38 #define KVER_SUBLEVEL(x) ((x) & 0xff) argument
40 #define KVER_PARAM(x) KVER_VERSION(x), KVER_PATCHLEVEL(x), KVER_SUBLEVEL(x) argument
/tools/include/linux/unaligned/
Dpacked_struct.h7 struct __una_u16 { u16 x; } __packed; member
8 struct __una_u32 { u32 x; } __packed; member
9 struct __una_u64 { u64 x; } __packed; member
14 return ptr->x; in __get_unaligned_cpu16()
20 return ptr->x; in __get_unaligned_cpu32()
26 return ptr->x; in __get_unaligned_cpu64()
32 ptr->x = val; in __put_unaligned_cpu16()
38 ptr->x = val; in __put_unaligned_cpu32()
44 ptr->x = val; in __put_unaligned_cpu64()
/tools/testing/selftests/ftrace/test.d/instances/
Dinstance.tc7 rmdir x y z 2>/dev/null
18 mkdir x
19 rmdir x
29 mkdir x
32 rmdir x
71 mkdir x y z
72 ls x y z
73 rmdir x y z
74 for d in x y z; do
/tools/perf/ui/tui/
Dutil.c78 int x, y, len, key; in ui_browser__input_window() local
103 x = SLtt_Screen_Cols / 2 - max_len / 2; in ui_browser__input_window()
106 SLsmg_draw_box(y, x++, nr_lines, max_len); in ui_browser__input_window()
108 SLsmg_gotorc(y, x + 1); in ui_browser__input_window()
111 SLsmg_gotorc(++y, x); in ui_browser__input_window()
114 SLsmg_write_wrapped_string((unsigned char *)text, y, x, in ui_browser__input_window()
119 SLsmg_gotorc(y + len - 1, x); in ui_browser__input_window()
122 SLsmg_draw_box(y++, x + 1, 3, max_len - 2); in ui_browser__input_window()
124 SLsmg_gotorc(y + 3, x); in ui_browser__input_window()
130 x += 2; in ui_browser__input_window()
[all …]
/tools/perf/scripts/python/
Dexport-to-sqlite.py328 def emit_to_hex(x): argument
330 return 'printf("%x", ' + x + ')'
332 return x
670 def sched__sched_switch(*x): argument
673 def bind_exec(q, n, x): argument
674 for xx in x[0:n]:
678 def evsel_table(*x): argument
679 bind_exec(evsel_query, 2, x)
681 def machine_table(*x): argument
682 bind_exec(machine_query, 3, x)
[all …]
/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-trace-marker-snapshot.tc14 x=$2
21 echo "testing $line for >$x<"
22 match=`echo $line | sed -e "s/>$x<//"`
24 fail "$line does not have >$x< in it"
26 x=$((x+2))
/tools/testing/selftests/powerpc/copyloops/asm/
Dppc_asm.h32 #define EX_TABLE(x, y) \ argument
34 .8byte x, y; \
39 #define ALT_FTR_SECTION_END_IFCLR(x) .endif argument
40 #define ALT_FTR_SECTION_END_IFSET(x) .endif argument
41 #define ALT_FTR_SECTION_END(x, y) .endif argument
42 #define END_FTR_SECTION_IFCLR(x) .endif argument
43 #define END_FTR_SECTION_IFSET(x) .endif argument
/tools/virtio/linux/
Dkernel.h26 #define PAGE_ALIGN(x) ((x + PAGE_SIZE - 1) & PAGE_MASK) argument
52 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) argument
115 # define likely(x) (__builtin_expect(!!(x), 1)) argument
118 # define unlikely(x) (__builtin_expect(!!(x), 0)) argument
132 #define min(x, y) ({ \ argument
133 typeof(x) _min1 = (x); \
/tools/memory-model/litmus-tests/
DCoWR+poonceonce+Once.litmus12 P0(int *x)
16 WRITE_ONCE(*x, 1);
17 r0 = READ_ONCE(*x);
20 P1(int *x)
22 WRITE_ONCE(*x, 2);
25 exists (x=1 /\ 0:r0=2)

12345678910>>...16