| /tools/include/asm-generic/bitops/ |
| A D | non-atomic.h | 66 unsigned long old = *p; in ___test_and_set_bit() local 68 *p = old | mask; in ___test_and_set_bit() 69 return (old & mask) != 0; in ___test_and_set_bit() 86 unsigned long old = *p; in ___test_and_clear_bit() local 88 *p = old & ~mask; in ___test_and_clear_bit() 89 return (old & mask) != 0; in ___test_and_clear_bit() 98 unsigned long old = *p; in ___test_and_change_bit() local 100 *p = old ^ mask; in ___test_and_change_bit() 101 return (old & mask) != 0; in ___test_and_change_bit()
|
| /tools/include/linux/ |
| A D | refcount.h | 83 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() local 94 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero() 95 if (old == val) in refcount_inc_not_zero() 98 val = old; in refcount_inc_not_zero() 128 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() local 140 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test() 141 if (old == val) in refcount_sub_and_test() 144 val = old; in refcount_sub_and_test()
|
| A D | rbtree_augmented.h | 31 void (*copy)(struct rb_node *old, struct rb_node *new); 32 void (*rotate)(struct rb_node *old, struct rb_node *new); 36 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)); 91 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 93 new->RBAUGMENTED = old->RBAUGMENTED; \ 98 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 100 new->RBAUGMENTED = old->RBAUGMENTED; \ 101 RBCOMPUTE(old, false); \ 171 __rb_change_child(struct rb_node *old, struct rb_node *new, in __rb_change_child() argument 175 if (parent->rb_left == old) in __rb_change_child() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | preempted_bpf_ma_op.c | 32 struct bin_data *old; in del_array() local 38 old = bpf_kptr_xchg(&value->data, NULL); in del_array() 39 if (old) in del_array() 40 bpf_obj_drop(old); in del_array() 48 struct bin_data *old, *new; in add_array() local 61 old = bpf_kptr_xchg(&value->data, new); in add_array() 62 if (old) in add_array() 63 bpf_obj_drop(old); in add_array()
|
| A D | test_bpf_ma.c | 60 void *old, *new; in batch_alloc() local 75 if (old) { in batch_alloc() 76 bpf_obj_drop(old); in batch_alloc() 87 void *old; in batch_free() local 97 if (!old) { in batch_free() 101 bpf_obj_drop(old); in batch_free() 110 void *old, *new; in batch_percpu_alloc() local 125 if (old) { in batch_percpu_alloc() 138 void *old; in batch_percpu_free() local 148 if (!old) in batch_percpu_free() [all …]
|
| A D | bpf_arena_spin_lock.h | 150 u32 old, new; in xchg_tail() local 166 return old; in xchg_tail() 169 return old; in xchg_tail() 210 u32 old, new; in arena_fetch_set_pending_acquire() local 214 new = old | _Q_PENDING_VAL; in arena_fetch_set_pending_acquire() 222 return old; in arena_fetch_set_pending_acquire() 225 return old; in arena_fetch_set_pending_acquire() 248 u32 old, tail; in arena_spin_lock_slowpath() local 370 old = xchg_tail(lock, tail); in arena_spin_lock_slowpath() 377 if (old & _Q_TAIL_MASK) { in arena_spin_lock_slowpath() [all …]
|
| A D | crypto_common.h | 40 struct bpf_crypto_ctx *old; in crypto_ctx_insert() local 57 old = bpf_kptr_xchg(&v->ctx, ctx); in crypto_ctx_insert() 58 if (old) { in crypto_ctx_insert() 59 bpf_crypto_ctx_release(old); in crypto_ctx_insert()
|
| A D | test_probe_user.c | 8 static struct sockaddr_in old; variable 14 bpf_probe_read_user(&old, sizeof(old), uservaddr); in handle_sys_connect_common()
|
| A D | setget_sockopt.c | 98 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local 105 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip() 108 if (level == SOL_SOCKET && opt == SO_TXREHASH && old != 0 && old != 1) in bpf_test_sockopt_flip() 109 old = 1; in bpf_test_sockopt_flip() 111 new = !old; in bpf_test_sockopt_flip() 118 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip() 128 int old, tmp, new, expected, opt; in bpf_test_sockopt_int() local 137 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old)) || in bpf_test_sockopt_int() 138 old == new) in bpf_test_sockopt_int() 148 old = t->restore; in bpf_test_sockopt_int() [all …]
|
| A D | cgrp_kfunc_common.h | 46 struct cgroup *acquired, *old; in cgrps_kfunc_map_insert() local 70 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert() 71 if (old) { in cgrps_kfunc_map_insert() 72 bpf_cgroup_release(old); in cgrps_kfunc_map_insert()
|
| A D | task_kfunc_common.h | 46 struct task_struct *acquired, *old; in tasks_kfunc_map_insert() local 68 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert() 69 if (old) { in tasks_kfunc_map_insert() 70 bpf_task_release(old); in tasks_kfunc_map_insert()
|
| A D | bind4_prog.c | 83 int old, tmp, new = 0xeb9f; in misc_opts() local 86 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || in misc_opts() 87 old == new) in misc_opts() 94 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old))) in misc_opts()
|
| /tools/include/asm-generic/ |
| A D | atomic-gcc.h | 76 long old; in test_and_set_bit() local 80 old = __sync_fetch_and_or(addr, mask); in test_and_set_bit() 81 return !!(old & mask); in test_and_set_bit() 87 long old; in test_and_clear_bit() local 91 old = __sync_fetch_and_and(addr, ~mask); in test_and_clear_bit() 92 return !!(old & mask); in test_and_clear_bit()
|
| /tools/arch/x86/include/asm/ |
| A D | cmpxchg.h | 35 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument 38 __typeof__(*(ptr)) __old = (old); \ 83 #define __cmpxchg(ptr, old, new, size) \ argument 84 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX) 86 #define cmpxchg(ptr, old, new) \ argument 87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
|
| /tools/lib/subcmd/ |
| A D | sigchain.c | 9 sigchain_fun *old; member 26 ALLOC_GROW(s->old, s->n + 1, s->alloc); in sigchain_push() 27 s->old[s->n] = signal(sig, f); in sigchain_push() 28 if (s->old[s->n] == SIG_ERR) in sigchain_push() 41 if (signal(sig, s->old[s->n - 1]) == SIG_ERR) in sigchain_pop()
|
| /tools/verification/rvgen/rvgen/ |
| A D | ltl2ba.py | 78 self.old = old.copy() 86 if nd.old == self.old and nd.next == self.next: 188 node.old.add(n) 193 node.old | {n}, 212 node.old |= {n} 368 for f in node.old: 371 node.old |= {n} 396 for f in node.old: 399 node.old |= {n} 431 node.old |= {n} [all …]
|
| /tools/testing/selftests/arm64/bti/ |
| A D | signal.c | 29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() argument 31 return syscall(__NR_rt_sigaction, n, sa, old, sizeof(sa->sa_mask)); in sigaction() 34 int sigprocmask(int how, const sigset_t *mask, sigset_t *old) in sigprocmask() argument 36 return syscall(__NR_rt_sigprocmask, how, mask, old, sizeof(*mask)); in sigprocmask()
|
| /tools/testing/selftests/powerpc/dexcr/ |
| A D | dexcr.c | 23 struct sigaction old; in dexcr_exists() local 26 old = push_signal_handler(SIGILL, generic_signal_handler); in dexcr_exists() 43 pop_signal_handler(SIGILL, old); in dexcr_exists() 92 struct sigaction old; in hashchk_triggers() local 95 old = push_signal_handler(SIGILL, generic_signal_handler); in hashchk_triggers() 104 pop_signal_handler(SIGILL, old); in hashchk_triggers()
|
| /tools/include/nolibc/ |
| A D | sys.h | 238 int sys_dup2(int old, int new) in sys_dup2() argument 241 return my_syscall3(__NR_dup3, old, new, 0); in sys_dup2() 243 return my_syscall2(__NR_dup2, old, new); in sys_dup2() 250 int dup2(int old, int new) in dup2() argument 252 return __sysret(sys_dup2(old, new)); in dup2() 262 int sys_dup3(int old, int new, int flags) in sys_dup3() argument 268 int dup3(int old, int new, int flags) in dup3() argument 573 return my_syscall2(__NR_link, old, new); in sys_link() 580 int link(const char *old, const char *new) in link() argument 582 return __sysret(sys_link(old, new)); in link() [all …]
|
| /tools/perf/util/ |
| A D | help-unknown-cmd.c | 32 static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) in add_cmd_list() argument 34 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list() 48 for (i = 0; i < old->cnt; i++) in add_cmd_list() 49 cmds->names[cmds->cnt++] = old->names[i]; in add_cmd_list() 50 zfree(&old->names); in add_cmd_list() 51 old->cnt = 0; in add_cmd_list()
|
| A D | term.c | 30 void set_term_quiet_input(struct termios *old) in set_term_quiet_input() argument 34 tcgetattr(0, old); in set_term_quiet_input() 35 tc = *old; in set_term_quiet_input()
|
| /tools/testing/selftests/kvm/s390/ |
| A D | memop.c | 50 void *old; member 345 old[offset]++; in default_cmpxchg() 563 return old; in permutate_bits() 591 : [old] "+d" (old), in _cmpxchg() 597 *old_addr = old; in _cmpxchg() 604 : [old] "+d" (old), in _cmpxchg() 610 *old_addr = old; in _cmpxchg() 617 : [old] "+d" (old), in _cmpxchg() 644 old = 1; in guest_cmpxchg_key() 685 old = 0; in test_cmpxchg_key_concurrent() [all …]
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | task_storage_map.c | 59 cpu_set_t old, new; in test_task_storage_map_stress_lookup() local 89 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup() 126 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
|
| /tools/testing/selftests/filesystems/fat/ |
| A D | run_fat_tests.sh | 47 echo old | sudo tee "${old_path}" >/dev/null 2>&1 52 grep old "${new_path}" >/dev/null 2>&1 63 echo old | sudo tee "${old_path}" >/dev/null 2>&1 68 grep old "${new_path}" >/dev/null 2>&1
|
| /tools/testing/selftests/futex/functional/ |
| A D | futex_numa.c | 39 struct futex_numa_32 new, old = { in futex_numa_32_lock() local 44 new = old; in futex_numa_32_lock() 45 if (old.val == 0) { in futex_numa_32_lock() 49 if (old.val & N_LOCK) { in futex_numa_32_lock() 56 if (old.full == new.full) in futex_numa_32_lock() 64 &old.full, new.full, in futex_numa_32_lock() 70 if (!(old.val & N_LOCK)) in futex_numa_32_lock()
|