/tools/include/linux/ |
D | jhash.h | 35 #define __jhash_mix(a, b, c) \ argument 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 39 c -= b; c ^= rol32(b, 8); b += a; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 42 c -= b; c ^= rol32(b, 4); b += a; \ 46 #define __jhash_final(a, b, c) \ argument 49 a ^= c; a -= rol32(c, 11); \ 50 b ^= a; b -= rol32(a, 25); \ [all …]
|
D | math64.h | 8 static inline u64 mul_u64_u64_div64(u64 a, u64 b, u64 c) in mul_u64_u64_div64() argument 13 : "a" (a), "rm" (b), "rm" (c) in mul_u64_u64_div64() 22 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) in mul_u64_u32_shr() argument 24 return (u64)(((unsigned __int128)a * b) >> shift); in mul_u64_u32_shr() 30 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() argument 35 : [a] "a" (a), [b] "rm" (b) ); in mul_u32_u32() 40 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() argument 42 return (u64)a * b; in mul_u32_u32() 46 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) in mul_u64_u32_shr() argument 51 al = a; in mul_u64_u32_shr() [all …]
|
D | overflow.h | 44 #define check_add_overflow(a, b, d) ({ \ argument 45 typeof(a) __a = (a); \ 53 #define check_sub_overflow(a, b, d) ({ \ argument 54 typeof(a) __a = (a); \ 62 #define check_mul_overflow(a, b, d) ({ \ argument 63 typeof(a) __a = (a); \ 82 static inline __must_check size_t array_size(size_t a, size_t b) in array_size() argument 86 if (check_mul_overflow(a, b, &bytes)) in array_size() 104 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size() argument 108 if (check_mul_overflow(a, b, &bytes)) in array3_size()
|
D | compiler-gcc.h | 24 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) argument 39 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 40 #define __scanf(a, b) __attribute__((format(scanf, a, b))) argument
|
/tools/testing/selftests/net/ |
D | fcnal-test.sh | 114 read a 115 [ "$a" = "q" ] && exit 1 122 read a 123 [ "$a" = "q" ] && exit 1 241 read a 263 read a 285 read a 560 local a 565 for a in ${NSB_IP} ${NSB_LO_IP} 568 run_cmd ping -c1 -w1 ${a} [all …]
|
D | so_txtime.sh | 73 do_test 4 mono a,-1 a,-1 74 do_test 6 mono a,0 a,0 75 do_test 6 mono a,10 a,10 76 do_test 4 mono a,10,b,20 a,10,b,20 77 do_test 6 mono a,20,b,10 b,20,a,20 80 ! do_test 4 tai a,-1 a,-1 81 ! do_test 6 tai a,0 a,0 82 do_test 6 tai a,10 a,10 83 do_test 4 tai a,10,b,20 a,10,b,20 84 do_test 6 tai a,20,b,10 b,10,a,20
|
/tools/testing/selftests/bpf/progs/ |
D | test_jhash.h | 12 #define __jhash_mix(a, b, c) \ argument 14 a -= c; a ^= rol32(c, 4); c += b; \ 15 b -= a; b ^= rol32(a, 6); a += c; \ 16 c -= b; c ^= rol32(b, 8); b += a; \ 17 a -= c; a ^= rol32(c, 16); c += b; \ 18 b -= a; b ^= rol32(a, 19); a += c; \ 19 c -= b; c ^= rol32(b, 4); b += a; \ 22 #define __jhash_final(a, b, c) \ argument 25 a ^= c; a -= rol32(c, 11); \ 26 b ^= a; b -= rol32(a, 25); \ [all …]
|
D | core_reloc_types.h | 39 int a; member 46 int a; member 56 int a; member 65 struct core_reloc_nesting_substruct a; member 66 } a; member 77 int a; member 78 } a; member 79 } a; member 94 int a; member 95 } a; member [all …]
|
D | fentry_test.c | 11 int BPF_PROG(test1, int a) in BPF_PROG() argument 13 test1_result = a == 1; in BPF_PROG() 19 int BPF_PROG(test2, int a, __u64 b) in BPF_PROG() argument 21 test2_result = a == 2 && b == 3; in BPF_PROG() 27 int BPF_PROG(test3, char a, int b, __u64 c) in BPF_PROG() argument 29 test3_result = a == 4 && b == 5 && c == 6; in BPF_PROG() 35 int BPF_PROG(test4, void *a, char b, int c, __u64 d) in BPF_PROG() argument 37 test4_result = a == (void *)7 && b == 8 && c == 9 && d == 10; in BPF_PROG() 43 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e) in BPF_PROG() argument 45 test5_result = a == 11 && b == (void *)12 && c == 13 && d == 14 && in BPF_PROG() [all …]
|
D | fexit_test.c | 11 int BPF_PROG(test1, int a, int ret) in BPF_PROG() argument 13 test1_result = a == 1 && ret == 2; in BPF_PROG() 19 int BPF_PROG(test2, int a, __u64 b, int ret) in BPF_PROG() argument 21 test2_result = a == 2 && b == 3 && ret == 5; in BPF_PROG() 27 int BPF_PROG(test3, char a, int b, __u64 c, int ret) in BPF_PROG() argument 29 test3_result = a == 4 && b == 5 && c == 6 && ret == 15; in BPF_PROG() 35 int BPF_PROG(test4, void *a, char b, int c, __u64 d, int ret) in BPF_PROG() argument 37 test4_result = a == (void *)7 && b == 8 && c == 9 && d == 10 && in BPF_PROG() 44 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e, int ret) in BPF_PROG() argument 46 test5_result = a == 11 && b == (void *)12 && c == 13 && d == 14 && in BPF_PROG() [all …]
|
D | test_core_reloc_nesting.c | 17 int a; member 27 struct core_reloc_nesting_substruct a; member 28 } a; member 42 if (CORE_READ(&out->a.a.a, &in->a.a.a)) in test_core_nesting()
|
D | btf_dump_test_case_packing.c | 10 int a; member 15 int a; member 20 short a; member 25 short a; member 31 int a: 4; member 40 int a: 4; member 47 long int a; member 121 int a; member 126 short a; member 131 short a; member
|
D | kfunc_call_test.c | 7 extern int bpf_kfunc_call_test2(struct sock *sk, __u32 a, __u32 b) __ksym; 8 extern __u64 bpf_kfunc_call_test1(struct sock *sk, __u32 a, __u64 b, 30 __u64 a = 1ULL << 32; in kfunc_call_test1() local 40 a = bpf_kfunc_call_test1((struct sock *)sk, 1, a | 2, 3, a | 4); in kfunc_call_test1() 41 ret = a >> 32; /* ret should be 2 */ in kfunc_call_test1() 42 ret += (__u32)a; /* ret should be 12 */ in kfunc_call_test1()
|
/tools/testing/selftests/powerpc/include/ |
D | instructions.h | 77 #define __PPC_RA(a) (((a) & 0x1f) << 16) argument 98 #define PREFIX_MLS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument 104 __PPC_RA(a) | \ 107 #define PREFIX_8LS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument 113 __PPC_RA(a) | \ 117 #define PLBZ(t, a, r, d) PREFIX_MLS(PPC_INST_LBZ, t, a, r, d) argument 118 #define PLHZ(t, a, r, d) PREFIX_MLS(PPC_INST_LHZ, t, a, r, d) argument 119 #define PLHA(t, a, r, d) PREFIX_MLS(PPC_INST_LHA, t, a, r, d) argument 120 #define PLWZ(t, a, r, d) PREFIX_MLS(PPC_INST_LWZ, t, a, r, d) argument 121 #define PLWA(t, a, r, d) PREFIX_8LS(0xa4000000, t, a, r, d) argument [all …]
|
/tools/perf/util/ |
D | affinity.c | 24 int affinity__setup(struct affinity *a) in affinity__setup() argument 28 a->orig_cpus = bitmap_zalloc(cpu_set_size * 8); in affinity__setup() 29 if (!a->orig_cpus) in affinity__setup() 31 sched_getaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__setup() 32 a->sched_cpus = bitmap_zalloc(cpu_set_size * 8); in affinity__setup() 33 if (!a->sched_cpus) { in affinity__setup() 34 zfree(&a->orig_cpus); in affinity__setup() 37 bitmap_zero((unsigned long *)a->sched_cpus, cpu_set_size); in affinity__setup() 38 a->changed = false; in affinity__setup() 48 void affinity__set(struct affinity *a, int cpu) in affinity__set() argument [all …]
|
D | genelf.h | 61 #define ELF_ST_TYPE(a) ELF64_ST_TYPE(a) argument 62 #define ELF_ST_BIND(a) ELF64_ST_BIND(a) argument 63 #define ELF_ST_VIS(a) ELF64_ST_VISIBILITY(a) argument 72 #define ELF_ST_TYPE(a) ELF32_ST_TYPE(a) argument 73 #define ELF_ST_BIND(a) ELF32_ST_BIND(a) argument 74 #define ELF_ST_VIS(a) ELF32_ST_VISIBILITY(a) argument
|
/tools/lib/bpf/ |
D | bpf_core_read.h | 223 #define ___concat(a, b) a ## b argument 240 #define ___last2(a, x) x argument 241 #define ___last3(a, b, x) x argument 242 #define ___last4(a, b, c, x) x argument 243 #define ___last5(a, b, c, d, x) x argument 244 #define ___last6(a, b, c, d, e, x) x argument 245 #define ___last7(a, b, c, d, e, f, x) x argument 246 #define ___last8(a, b, c, d, e, f, g, x) x argument 247 #define ___last9(a, b, c, d, e, f, g, h, x) x argument 248 #define ___last10(a, b, c, d, e, f, g, h, i, x) x argument [all …]
|
/tools/testing/selftests/proc/ |
D | proc-self-map-files-001.c | 26 static void pass(const char *fmt, unsigned long a, unsigned long b) in pass() argument 31 snprintf(name, sizeof(name), fmt, a, b); in pass() 36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail() argument 41 snprintf(name, sizeof(name), fmt, a, b); in fail() 52 unsigned long a, b; in main() local 62 a = (unsigned long)p; in main() 65 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 66 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 67 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 68 fail("/proc/self/map_files/%lx- %lx", a, b); in main() [all …]
|
D | proc-self-map-files-002.c | 26 static void pass(const char *fmt, unsigned long a, unsigned long b) in pass() argument 31 snprintf(name, sizeof(name), fmt, a, b); in pass() 36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail() argument 41 snprintf(name, sizeof(name), fmt, a, b); in fail() 58 unsigned long a, b; in main() local 74 a = (unsigned long)p; in main() 77 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 78 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 79 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 80 fail("/proc/self/map_files/%lx- %lx", a, b); in main() [all …]
|
/tools/lib/lockdep/tests/ |
D | ABBA.c | 7 pthread_mutex_t a, b; in main() local 9 pthread_mutex_init(&a, NULL); in main() 12 LOCK_UNLOCK_2(a, b); in main() 13 LOCK_UNLOCK_2(b, a); in main() 16 pthread_mutex_destroy(&a); in main() 18 pthread_mutex_init(&a, NULL); in main() 21 LOCK_UNLOCK_2(a, b); in main() 22 LOCK_UNLOCK_2(b, a); in main() 25 pthread_mutex_destroy(&a); in main()
|
D | unlock_balance.c | 6 pthread_mutex_t a; in main() local 8 pthread_mutex_init(&a, NULL); in main() 10 pthread_mutex_lock(&a); in main() 11 pthread_mutex_unlock(&a); in main() 12 pthread_mutex_unlock(&a); in main() 14 pthread_mutex_destroy(&a); in main()
|
/tools/testing/selftests/filesystems/fuse/ |
D | test_framework.h | 99 _type a, _type b, enum _operator o) \ 104 pass = a == b; \ 107 pass = a != b; \ 110 pass = a >= b; \ 118 func, line, a, _operator_name[o], b); \ 123 func, line, a, _operator_name[o], b); \ 135 #define _CALL_TO(_type, name, a, b, o) \ argument 137 (_type) (long long) (a), \ 140 #define TESTOPERATOR(a, b, o) \ argument 142 if (_Generic((a), \ [all …]
|
/tools/include/uapi/linux/ |
D | in.h | 277 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 283 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 289 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 294 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 295 #define IN_MULTICAST(a) IN_CLASSD(a) argument 298 #define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff) argument 299 #define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) argument 301 #define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 322 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
|
/tools/memory-model/Documentation/ |
D | glossary.txt | 3 as a way of confirming a diagnosis of OCD), but rather to be searched 7 Address Dependency: When the address of a later memory access is computed 15 3 do_something(p->a); 18 In this case, because the address of "p->a" on line 3 is computed 21 "p->a". In rare cases, optimizing compilers can destroy address 27 Acquire: With respect to a lock, acquiring that lock, for example, 28 using spin_lock(). With respect to a non-lock shared variable, 29 a special operation that includes a load and which orders that 35 When an acquire load returns the value stored by a release store 42 Coherence (co): When one CPU's store to a given variable overwrites [all …]
|
/tools/testing/selftests/sync/ |
D | sync_fence.c | 78 int a, b, c, d, valid; in test_fence_one_timeline_merge() local 82 a = sw_sync_fence_create(timeline, "allocFence", 1); in test_fence_one_timeline_merge() 86 valid = sw_sync_fence_is_valid(a) && in test_fence_one_timeline_merge() 91 d = sync_merge("mergeFence", b, a); in test_fence_one_timeline_merge() 97 ASSERT(sync_fence_count_with_status(a, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge() 99 ASSERT(sync_fence_count_with_status(a, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge() 101 ASSERT(sync_fence_count_with_status(a, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge() 103 ASSERT(sync_fence_count_with_status(a, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge() 108 ASSERT(sync_fence_count_with_status(a, FENCE_STATUS_SIGNALED) == 1, in test_fence_one_timeline_merge() 129 sw_sync_fence_destroy(a); in test_fence_one_timeline_merge()
|