/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 | overflow.h | 49 #define check_add_overflow(a, b, d) ({ \ argument 50 typeof(a) __a = (a); \ 58 #define check_sub_overflow(a, b, d) ({ \ argument 59 typeof(a) __a = (a); \ 67 #define check_mul_overflow(a, b, d) ({ \ argument 68 typeof(a) __a = (a); \ 80 #define __unsigned_add_overflow(a, b, d) ({ \ argument 81 typeof(a) __a = (a); \ 89 #define __unsigned_sub_overflow(a, b, d) ({ \ argument 90 typeof(a) __a = (a); \ [all …]
|
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/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 | 22 int a; member 29 int a; member 39 int a; member 48 struct core_reloc_nesting_substruct a; member 49 } a; member 60 int a; member 61 } a; member 62 } a; member 77 int a; member 78 } 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 | test_rdonly_maps.c | 9 unsigned a[4]; member 16 } rdonly_values = { .a = {2, 3, 4, 5} }; 28 unsigned * volatile p = (void *)&rdonly_values.a; in skip_loop() 47 unsigned * volatile p = (void *)&rdonly_values.a; in part_loop() 66 unsigned * volatile p = (void *)&rdonly_values.a; in full_loop() 67 int i = sizeof(rdonly_values.a) / sizeof(rdonly_values.a[0]); in full_loop()
|
/tools/testing/selftests/net/ |
D | fcnal-test.sh | 111 read a 112 [ "$a" = "q" ] && exit 1 119 read a 120 [ "$a" = "q" ] && exit 1 238 read a 260 read a 282 read a 551 local a 556 for a in ${NSB_IP} ${NSB_LO_IP} 559 run_cmd ping -c1 -w1 ${a} [all …]
|
D | so_txtime.sh | 20 ./so_txtime -4 -6 -c mono a,-1 a,-1 21 ./so_txtime -4 -6 -c mono a,0 a,0 22 ./so_txtime -4 -6 -c mono a,10 a,10 23 ./so_txtime -4 -6 -c mono a,10,b,20 a,10,b,20 24 ./so_txtime -4 -6 -c mono a,20,b,10 b,20,a,20 27 ! ./so_txtime -4 -6 -c tai a,-1 a,-1 28 ! ./so_txtime -4 -6 -c tai a,0 a,0 29 ./so_txtime -4 -6 -c tai a,10 a,10 30 ./so_txtime -4 -6 -c tai a,10,b,20 a,10,b,20 31 ./so_txtime -4 -6 -c tai a,20,b,10 b,10,a,20
|
/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_alloc(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_alloc(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 | 59 #define ELF_ST_TYPE(a) ELF64_ST_TYPE(a) argument 60 #define ELF_ST_BIND(a) ELF64_ST_BIND(a) argument 61 #define ELF_ST_VIS(a) ELF64_ST_VISIBILITY(a) argument 70 #define ELF_ST_TYPE(a) ELF32_ST_TYPE(a) argument 71 #define ELF_ST_BIND(a) ELF32_ST_BIND(a) argument 72 #define ELF_ST_VIS(a) ELF32_ST_VISIBILITY(a) argument
|
/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/bpf/ |
D | bpf_core_read.h | 218 #define ___concat(a, b) a ## b argument 235 #define ___last2(a, x) x argument 236 #define ___last3(a, b, x) x argument 237 #define ___last4(a, b, c, x) x argument 238 #define ___last5(a, b, c, d, x) x argument 239 #define ___last6(a, b, c, d, e, x) x argument 240 #define ___last7(a, b, c, d, e, f, x) x argument 241 #define ___last8(a, b, c, d, e, f, g, x) x argument 242 #define ___last9(a, b, c, d, e, f, g, h, x) x argument 243 #define ___last10(a, b, c, d, e, f, g, h, i, x) x argument [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()
|
D | ABCABC.c | 7 pthread_mutex_t a, b, c; in main() local 9 pthread_mutex_init(&a, NULL); in main() 13 LOCK_UNLOCK_2(a, b); in main() 14 LOCK_UNLOCK_2(c, a); in main() 19 pthread_mutex_destroy(&a); in main()
|
/tools/include/uapi/linux/ |
D | in.h | 255 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 261 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 267 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 272 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 273 #define IN_MULTICAST(a) IN_CLASSD(a) argument 276 #define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff) argument 277 #define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) argument 279 #define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 300 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
|
/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()
|
/tools/testing/scatterlist/linux/ |
D | mm.h | 33 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) argument 35 #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) argument 36 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) argument 62 #define ___PASTE(a,b) a##b argument 63 #define __PASTE(a,b) ___PASTE(a,b) argument 126 #define kmemleak_alloc(a, b, c, d) argument 127 #define kmemleak_free(a) argument
|
/tools/testing/selftests/powerpc/nx-gzip/include/ |
D | copy-paste.h | 11 #define ___PPC_RA(a) (((a) & 0x1f) << 16) argument 17 #define PPC_COPY(a, b) stringify_in_c(.long PPC_INST_COPY | \ argument 18 ___PPC_RA(a) | ___PPC_RB(b)) 19 #define PPC_PASTE(a, b) stringify_in_c(.long PPC_INST_PASTE | \ argument 20 ___PPC_RA(a) | ___PPC_RB(b))
|