| /tools/lib/bpf/ |
| A D | bpf_endian.h | 64 # define __bpf_ntohs(x) (x) argument 65 # define __bpf_htons(x) (x) argument 66 # define __bpf_constant_ntohs(x) (x) argument 67 # define __bpf_constant_htons(x) (x) argument 68 # define __bpf_ntohl(x) (x) argument 69 # define __bpf_htonl(x) (x) argument 70 # define __bpf_constant_ntohl(x) (x) argument 71 # define __bpf_constant_htonl(x) (x) argument 72 # define __bpf_be64_to_cpu(x) (x) argument 73 # define __bpf_cpu_to_be64(x) (x) argument [all …]
|
| A D | bpf_tracing.h | 169 #define __PT_REGS_CAST(x) ((const user_pt_regs *)(x)) argument 228 #define __PT_REGS_CAST(x) ((const struct user_pt_regs *)(x)) argument 426 #define __PT_REGS_CAST(x) ((const struct user_pt_regs *)(x)) argument 459 #define __PT_REGS_CAST(x) (x) argument 500 #define PT_REGS_RET(x) (__PT_REGS_CAST(x)->__PT_RET_REG) argument 501 #define PT_REGS_FP(x) (__PT_REGS_CAST(x)->__PT_FP_REG) argument 502 #define PT_REGS_RC(x) (__PT_REGS_CAST(x)->__PT_RC_REG) argument 503 #define PT_REGS_SP(x) (__PT_REGS_CAST(x)->__PT_SP_REG) argument 504 #define PT_REGS_IP(x) (__PT_REGS_CAST(x)->__PT_IP_REG) argument 728 #define ___bpf_ctx_arg1(n, t, x) , ___bpf_union_arg(t, x, n - ___bpf_reg_cnt1(t, x)) argument [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_ksyms_module.c | 8 #define X_1(x) x X_0(x) argument 9 #define X_2(x) x X_1(x) argument 10 #define X_3(x) x X_2(x) argument 11 #define X_4(x) x X_3(x) argument 12 #define X_5(x) x X_4(x) argument 13 #define X_6(x) x X_5(x) argument 14 #define X_7(x) x X_6(x) argument 15 #define X_8(x) x X_7(x) argument 16 #define X_9(x) x X_8(x) argument 17 #define X_10(x) x X_9(x) argument [all …]
|
| A D | linked_funcs1.c | 19 static __noinline int subprog(int x) in subprog() argument 22 return x * 1; in subprog() 26 int set_output_val1(int x) in set_output_val1() argument 28 output_val1 = x + subprog(x); in set_output_val1() 29 return x; in set_output_val1() 47 __weak int set_output_weak(int x) in set_output_weak() argument 57 output_weak1 = x; in set_output_weak() 58 return x; in set_output_weak() 61 extern int set_output_val2(int x);
|
| A D | linked_funcs2.c | 19 static __noinline int subprog(int x) in subprog() argument 22 return x * 2; in subprog() 26 int set_output_val2(int x) in set_output_val2() argument 28 output_val2 = 2 * x + 2 * subprog(x); in set_output_val2() 29 return 2 * x; in set_output_val2() 47 __weak int set_output_weak(int x) in set_output_weak() argument 57 output_weak2 = x; in set_output_weak() 58 return 2 * x; in set_output_weak() 61 extern int set_output_val1(int x);
|
| /tools/include/tools/ |
| A D | endian.h | 10 #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/ |
| A D | compiler_types.h | 13 #define __has_builtin(x) (0) argument 18 # define __must_hold(x) __attribute__((context(x,1,1))) argument 19 # define __acquires(x) __attribute__((context(x,0,1))) argument 20 # define __releases(x) __attribute__((context(x,1,0))) argument 21 # define __acquire(x) __context__(x,1) argument 22 # define __release(x) __context__(x,-1) argument 23 # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) argument 26 # define __must_hold(x) argument 27 # define __acquires(x) argument 28 # define __releases(x) argument [all …]
|
| A D | spinlock.h | 9 #define DEFINE_SPINLOCK(x) pthread_mutex_t x = 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_lock_nested(x, subclass) pthread_mutex_lock(x) argument 15 #define spin_unlock(x) pthread_mutex_unlock(x) argument 16 #define spin_lock_bh(x) pthread_mutex_lock(x) argument 17 #define spin_unlock_bh(x) pthread_mutex_unlock(x) argument 18 #define spin_lock_irq(x) pthread_mutex_lock(x) argument 19 #define spin_unlock_irq(x) pthread_mutex_unlock(x) argument 20 #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) argument [all …]
|
| A D | linkage.h | 6 #define SYM_FUNC_START(x) .globl x; x: argument 7 #define SYM_FUNC_END(x) argument 8 #define SYM_DATA_START(x) .globl x; x: argument 9 #define SYM_DATA_START_LOCAL(x) x: argument 10 #define SYM_DATA_END(x) argument
|
| A D | math.h | 10 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) argument 11 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) argument 12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) argument 17 #define roundup(x, y) ( \ argument 20 (((x) + (__y - 1)) / __y) * __y; \
|
| A D | pfn.h | 7 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) argument 8 #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) argument 9 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) argument 10 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) argument
|
| A D | kernel.h | 22 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument 23 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument 30 #define max(x, y) ({ \ argument 31 typeof(x) _max1 = (x); \ 38 #define min(x, y) ({ \ argument 39 typeof(x) _min1 = (x); \ 45 #define max_t(type, x, y) max((type)x, (type)y) argument 46 #define min_t(type, x, y) min((type)x, (type)y) argument
|
| A D | align.h | 8 #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) argument 9 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) argument 10 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument
|
| A D | kconfig.h | 14 #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/arm64/mte/ |
| A D | mte_def.h | 49 #define MT_CLEAR_TAG(x) ((x) & ~(MT_TAG_MASK << MT_TAG_SHIFT)) argument 50 #define MT_SET_TAG(x, y) ((x) | (y << MT_TAG_SHIFT)) argument 51 #define MT_FETCH_TAG(x) ((x >> MT_TAG_SHIFT) & (MT_TAG_MASK)) argument 52 #define MT_ALIGN_UP(x) ((x + MT_ALIGN_GRANULE) & ~(MT_ALIGN_GRANULE)) argument 54 #define MT_CLEAR_ATAG(x) ((x) & ~(MT_TAG_MASK << MT_ATAG_SHIFT)) argument 55 #define MT_SET_ATAG(x, y) ((x) | (((y) & MT_ATAG_MASK) << MT_ATAG_SHIFT)) argument 56 #define MT_FETCH_ATAG(x) ((x >> MT_ATAG_SHIFT) & (MT_ATAG_MASK)) argument 58 #define MT_CLEAR_TAGS(x) (MT_CLEAR_ATAG(MT_CLEAR_TAG(x))) argument 65 #define MT_EXCLUDE_TAG(x) (1 << (x)) argument 66 #define MT_INCLUDE_VALID_TAG(x) (MT_INCLUDE_TAG_MASK ^ MT_EXCLUDE_TAG(x)) argument [all …]
|
| /tools/include/asm-generic/bitops/ |
| A D | fls.h | 17 if (!x) in generic_fls() 19 if (!(x & 0xffff0000u)) { in generic_fls() 20 x <<= 16; in generic_fls() 23 if (!(x & 0xff000000u)) { in generic_fls() 24 x <<= 8; in generic_fls() 27 if (!(x & 0xf0000000u)) { in generic_fls() 28 x <<= 4; in generic_fls() 31 if (!(x & 0xc0000000u)) { in generic_fls() 32 x <<= 2; in generic_fls() 36 x <<= 1; in generic_fls() [all …]
|
| /tools/perf/tests/shell/lib/ |
| A D | perf_json_output_lint.py | 48 'counters': lambda x: isfloat(x), 49 'core': lambda x: True, 50 'counter-value': lambda x: is_counter_value(x), 52 'cpu': lambda x: isint(x), 55 'die': lambda x: True, 57 'event-runtime': lambda x: isfloat(x), 58 'interval': lambda x: isfloat(x), 60 'metric-value': lambda x: isfloat(x), 63 'node': lambda x: True, 64 'pcnt-running': lambda x: isfloat(x), [all …]
|
| /tools/include/nolibc/ |
| A D | math.h | 14 double fabs(double x) in fabs() argument 16 return x >= 0 ? x : -x; in fabs() 20 float fabsf(float x) in fabsf() argument 22 return x >= 0 ? x : -x; in fabsf() 26 long double fabsl(long double x) in fabsl() argument 28 return x >= 0 ? x : -x; in fabsl()
|
| /tools/include/uapi/linux/ |
| A D | const.h | 25 #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 45 #define _BIT128(x) ((unsigned __int128)(1) << (x)) argument 48 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) argument 49 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
|
| /tools/testing/scatterlist/linux/ |
| A D | mm.h | 15 #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 70 x, y) 75 x, y) 124 #define kfree(x) free(x) argument [all …]
|
| /tools/testing/selftests/powerpc/vphn/ |
| A D | test-vphn.c | 8 #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/testing/selftests/vDSO/ |
| A D | vdso_test_chacha.c | 46 uint32_t x[16]; in reference_chacha20_blocks() local 47 memcpy(x, s, sizeof(x)); in reference_chacha20_blocks() 50 x[a] += x[b], \ in reference_chacha20_blocks() 51 x[d] = rol32(x[d] ^ x[a], 16), \ in reference_chacha20_blocks() 52 x[c] += x[d], \ in reference_chacha20_blocks() 53 x[b] = rol32(x[b] ^ x[c], 12), \ in reference_chacha20_blocks() 54 x[a] += x[b], \ in reference_chacha20_blocks() 55 x[d] = rol32(x[d] ^ x[a], 8), \ in reference_chacha20_blocks() 56 x[c] += x[d], \ in reference_chacha20_blocks() 57 x[b] = rol32(x[b] ^ x[c], 7)) in reference_chacha20_blocks() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | reg_bounds.c | 224 if (x.a == x.b) in snprintf_range() 283 u64 a = x.a, b = x.b; in range_cast_to_s32() 309 u64 a = (u64)x.a, b = (u64)x.b; in range_cast_u64() 330 s64 a = (s64)x.a, b = (s64)x.b; in range_cast_s64() 470 if (x.b < y.a && x.a <= y.b) in range_refine() 621 if (x.a == x.b && x.a == y.a) { in range_cond() 623 *newx = range(t, x.a, x.b); in range_cond() 625 } else if (x.a == x.b && x.b == y.b) { in range_cond() 627 *newx = range(t, x.a, x.b); in range_cond() 639 *newx = range(t, x.a, x.b); in range_cond() [all …]
|
| /tools/testing/selftests/kvm/x86/ |
| A D | xapic_state_test.c | 61 struct kvm_vcpu *vcpu = x->vcpu; in ____test_icr() 83 if (!x->is_x2apic) { in ____test_icr() 84 if (!x->has_xavic_errata) in ____test_icr() 90 if (x->has_xavic_errata) in ____test_icr() 103 if (!x->is_x2apic) in __test_icr() 116 __test_icr(x, icr | i); in test_icr() 120 __test_icr(x, icr | i); in test_icr() 227 struct xapic_vcpu x = { in main() local 234 test_icr(&x); in main() 243 x.is_x2apic = false; in main() [all …]
|
| /tools/include/linux/unaligned/ |
| A D | packed_struct.h | 7 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()
|