| /tools/include/linux/ |
| A D | jhash.h | 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 49 a ^= c; a -= rol32(c, 11); \ 50 b ^= a; b -= rol32(a, 25); \ 52 a ^= c; a -= rol32(c, 4); \ 53 b ^= a; b -= rol32(a, 14); \ 72 u32 a, b, c; in jhash() local 119 u32 a, b, c; in jhash2() local [all …]
|
| A 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() 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() 51 al = a; in mul_u64_u32_shr() 52 ah = a >> 32; in mul_u64_u32_shr() 68 quot = a / c; in mul_u64_u64_div64() [all …]
|
| 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
|
| /tools/testing/selftests/net/ |
| A D | fcnal-test.sh | 253 read a 275 read a 297 read a 584 local a 1253 run_cmd nettest -r ${a} -0 ${a} -1 ${a} 1261 run_cmd nettest -r ${a} -0 ${a} 1447 run_cmd nettest -r ${a} -d ${VRF} -0 ${a} 1468 run_cmd nettest -r ${a} -d ${VRF} -0 ${a} 1584 run_cmd nettest -D -r ${a} -0 ${a} -1 ${a} 2834 run_cmd nettest -6 -r ${a} -0 ${a} [all …]
|
| A D | so_txtime.sh | 87 do_test 4 mono a,-1 a,-1 88 do_test 6 mono a,0 a,0 89 do_test 6 mono a,10 a,10 90 do_test 4 mono a,10,b,20 a,10,b,20 91 do_test 6 mono a,20,b,10 b,20,a,20 94 do_fail_test 4 tai a,-1 a,-1 95 do_fail_test 6 tai a,0 a,0 96 do_test 6 tai a,10 a,10 97 do_test 4 tai a,10,b,20 a,10,b,20 98 do_test 6 tai a,20,b,10 b,10,a,20
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_jhash.h | 14 a -= c; a ^= rol32(c, 4); c += b; \ 15 b -= a; b ^= rol32(a, 6); a += c; \ 17 a -= c; a ^= rol32(c, 16); c += b; \ 18 b -= a; b ^= rol32(a, 19); a += c; \ 25 a ^= c; a -= rol32(c, 11); \ 26 b ^= a; b -= rol32(a, 25); \ 28 a ^= c; a -= rol32(c, 4); \ 29 b ^= a; b -= rol32(a, 14); \ 38 u32 a, b, c; in jhash() local 64 c ^= a; in jhash() [all …]
|
| A D | set_global_vars.c | 84 a = var_s64; in test_set_globals() 85 a = var_u64; in test_set_globals() 86 a = var_s32; in test_set_globals() 90 a = var_s8; in test_set_globals() 91 a = var_u8; in test_set_globals() 92 a = var_ea; in test_set_globals() 93 a = var_eb; in test_set_globals() 94 a = var_ec; in test_set_globals() 95 a = var_b; in test_set_globals() 98 a = arr[3]; in test_set_globals() [all …]
|
| A D | tracing_struct.c | 9 int a; member 12 long a; member 17 int a; member 32 t1_a_a = a.a; in BPF_PROG2() 33 t1_a_b = a.b; in BPF_PROG2() 61 t2_a = a; in BPF_PROG2() 62 t2_b_a = b.a; in BPF_PROG2() 78 t3_a = a; in BPF_PROG2() 80 t3_c_a = c.a; in BPF_PROG2() 96 t4_a_a = a.a; in BPF_PROG2() [all …]
|
| A D | core_reloc_types.h | 40 int a; member 47 int a; member 57 int a; member 67 } a; member 79 } a; member 80 } a; member 96 } a; member 97 } a; member 145 } a; member 162 } a; member [all …]
|
| A 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 60 struct bpf_fentry_test_t *a; member [all …]
|
| A D | struct_ops_private_stack.c | 20 __noinline static int subprog2(int *a, int *b) in subprog2() argument 22 return val_i + a[10] + b[20]; in subprog2() 25 __noinline static int subprog1(int *a) in subprog1() argument 31 return subprog2(a, b); in subprog1() 39 int a[100] = {}; in BPF_PROG() local 41 a[10] = 1; in BPF_PROG() 42 val_i = subprog1(a); in BPF_PROG() 51 int a[50] = {}; in BPF_PROG() local 53 a[10] = 3; in BPF_PROG() 54 val_j = subprog1(a); in BPF_PROG()
|
| A D | struct_ops_private_stack_fail.c | 20 __noinline static int subprog2(int *a, int *b) in subprog2() argument 22 return val_i + a[10] + b[20]; in subprog2() 25 __noinline static int subprog1(int *a) in subprog1() argument 31 return subprog2(a, b); in subprog1() 39 int a[25] = {}; in BPF_PROG() local 41 a[10] = 1; in BPF_PROG() 42 val_i = subprog1(a); in BPF_PROG() 51 int a[100] = {}; in BPF_PROG() local 53 a[10] = 3; in BPF_PROG() 54 val_j = subprog1(a); in BPF_PROG()
|
| A 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() 46 test5_result = a == 11 && b == (void *)12 && c == 13 && d == 14 && in BPF_PROG() 61 struct bpf_fentry_test *a; member [all …]
|
| A 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()
|
| A D | struct_ops_module.c | 21 void BPF_PROG(test_2, int a, int b) in BPF_PROG() argument 23 test_2_result = a + b; in BPF_PROG() 27 int BPF_PROG(test_3, int a, int b) in BPF_PROG() argument 29 test_2_result = a + b + 3; in BPF_PROG() 30 return a + b + 3; in BPF_PROG() 41 void BPF_PROG(test_2_v2, int a, int b) in BPF_PROG() argument 43 test_2_result = a * b; in BPF_PROG() 48 void (*test_2)(int a, int b); 60 void (*test_2)(int a, int b); 62 void (*zeroed_op)(int a, int b); [all …]
|
| A 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 a; member 121 int a; member 126 short a; member 131 short a; member
|
| /tools/testing/selftests/powerpc/include/ |
| A D | instructions.h | 77 #define __PPC_RA(a) (((a) & 0x1f) << 16) argument 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 122 #define PLD(t, a, r, d) PREFIX_8LS(0xe4000000, t, a, r, d) argument 123 #define PLQ(t, a, r, d) PREFIX_8LS(0xe0000000, t, a, r, d) argument 127 #define PSTD(s, a, r, d) PREFIX_8LS(0xf4000000, s, a, r, d) argument 128 #define PSTQ(s, a, r, d) PREFIX_8LS(0xf0000000, s, a, r, d) argument [all …]
|
| /tools/perf/util/ |
| A D | affinity.c | 30 if (!a->orig_cpus) in affinity__setup() 34 if (!a->sched_cpus) { in affinity__setup() 35 zfree(&a->orig_cpus); in affinity__setup() 39 a->changed = false; in affinity__setup() 61 a->changed = true; in affinity__set() 62 __set_bit(cpu, a->sched_cpus); in affinity__set() 76 if (a->changed) in __affinity__cleanup() 78 zfree(&a->sched_cpus); in __affinity__cleanup() 79 zfree(&a->orig_cpus); in __affinity__cleanup() 84 if (a != NULL) in affinity__cleanup() [all …]
|
| /tools/testing/selftests/proc/ |
| A D | proc-self-map-files-001.c | 31 snprintf(name, sizeof(name), fmt, a, b); in pass() 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() 69 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 70 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() [all …]
|
| A D | proc-self-map-files-002.c | 31 snprintf(name, sizeof(name), fmt, a, b); in pass() 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() 81 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 82 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() [all …]
|
| /tools/lib/ |
| A D | list_sort.c | 21 *tail = a; in merge() 23 a = a->next; in merge() 24 if (!a) { in merge() 33 *tail = a; in merge() 59 tail = a; in merge_final() 60 a = a->next; in merge_final() 61 if (!a) in merge_final() 69 b = a; in merge_final() 210 struct list_head *a = *tail, *b = a->prev; in list_sort() local 212 a = merge(priv, cmp, b, a); in list_sort() [all …]
|
| /tools/lib/bpf/ |
| A D | bpf_core_read.h | 340 #define ___concat(a, b) a ## b argument 368 #define ___nolast2(a, _) a argument 369 #define ___nolast3(a, b, _) a, b argument 370 #define ___nolast4(a, b, c, _) a, b, c argument 371 #define ___nolast5(a, b, c, d, _) a, b, c, d argument 372 #define ___nolast6(a, b, c, d, e, _) a, b, c, d, e argument 379 #define ___arrow1(a) a argument 380 #define ___arrow2(a, b) a->b argument 381 #define ___arrow3(a, b, c) a->b->c argument 382 #define ___arrow4(a, b, c, d) a->b->c->d argument [all …]
|
| /tools/net/ynl/samples/ |
| A D | page-pool.c | 35 return &a->s[i]; in find_ifc() 38 a->i++; in find_ifc() 39 if (a->i == a->max) { in find_ifc() 40 a->max *= 2; in find_ifc() 41 a->s = reallocarray(a->s, a->max, sizeof(*a->s)); in find_ifc() 43 a->s[i].ifc = ifindex; in find_ifc() 44 return &a->s[i]; in find_ifc() 71 a.max = 128; in main() 72 a.s = calloc(a.max, sizeof(*a.s)); in main() 73 if (!a.s) in main() [all …]
|
| /tools/virtio/linux/ |
| A D | dma-mapping.h | 27 #define dma_map_single_attrs(d, p, s, dir, a) (virt_to_phys(p)) argument 30 #define dma_unmap_single(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) argument 31 #define dma_unmap_page(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) argument 35 #define dma_need_sync(v, a) (0) argument 36 #define dma_unmap_single_attrs(d, a, s, r, t) do { \ argument 37 (void)(d); (void)(a); (void)(s); (void)(r); (void)(t); \ 39 #define dma_sync_single_range_for_cpu(d, a, o, s, r) do { \ argument 40 (void)(d); (void)(a); (void)(o); (void)(s); (void)(r); \ 42 #define dma_sync_single_range_for_device(d, a, o, s, r) do { \ argument 43 (void)(d); (void)(a); (void)(o); (void)(s); (void)(r); \
|
| /tools/testing/selftests/net/lib/py/ |
| A D | ksft.py | 58 def ksft_eq(a, b, comment=""): argument 60 if a != b: 64 def ksft_ne(a, b, comment=""): argument 66 if a == b: 70 def ksft_true(a, comment=""): argument 71 if not a: 76 if a not in b: 81 if a in b: 86 if a is not b: 91 if a < b: [all …]
|