Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 63) sorted by relevance

123

/tools/include/asm-generic/bitops/
Dnon-atomic.h62 unsigned long old = *p; in __test_and_set_bit() local
64 *p = old | mask; in __test_and_set_bit()
65 return (old & mask) != 0; in __test_and_set_bit()
81 unsigned long old = *p; in __test_and_clear_bit() local
83 *p = old & ~mask; in __test_and_clear_bit()
84 return (old & mask) != 0; in __test_and_clear_bit()
93 unsigned long old = *p; in __test_and_change_bit() local
95 *p = old ^ mask; in __test_and_change_bit()
96 return (old & mask) != 0; in __test_and_change_bit()
/tools/include/linux/
Drefcount.h78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() local
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
90 if (old == val) in refcount_inc_not_zero()
93 val = old; in refcount_inc_not_zero()
123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() local
135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
136 if (old == val) in refcount_sub_and_test()
139 val = old; in refcount_sub_and_test()
Dbitmap.h88 unsigned long old; in test_and_set_bit() local
90 old = *p; in test_and_set_bit()
91 *p = old | mask; in test_and_set_bit()
93 return (old & mask) != 0; in test_and_set_bit()
105 unsigned long old; in test_and_clear_bit() local
107 old = *p; in test_and_clear_bit()
108 *p = old & ~mask; in test_and_clear_bit()
110 return (old & mask) != 0; in test_and_clear_bit()
Drbtree_augmented.h31 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 …]
Dlist.h123 static inline void list_replace(struct list_head *old, in list_replace() argument
126 new->next = old->next; in list_replace()
128 new->prev = old->prev; in list_replace()
132 static inline void list_replace_init(struct list_head *old, in list_replace_init() argument
135 list_replace(old, new); in list_replace_init()
136 INIT_LIST_HEAD(old); in list_replace_init()
685 static inline void hlist_move_list(struct hlist_head *old, in hlist_move_list() argument
688 new->first = old->first; in hlist_move_list()
691 old->first = NULL; in hlist_move_list()
/tools/arch/x86/include/asm/
Dcmpxchg.h35 #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)))
Datomic.h68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
/tools/lib/subcmd/
Dsigchain.c9 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/testing/selftests/arm64/bti/
Dsignal.c29 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()
Dsignal.h18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
19 int sigprocmask(int how, const sigset_t *mask, sigset_t *old);
/tools/testing/selftests/bpf/progs/
Dtest_probe_user.c11 static struct sockaddr_in old; variable
19 bpf_probe_read_user(&old, sizeof(old), ptr); in BPF_KPROBE()
Dbind4_prog.c83 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()
Dbind6_prog.c89 int old, tmp, new = 0xeb9f; in misc_opts() local
92 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || in misc_opts()
93 old == new) in misc_opts()
100 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old))) in misc_opts()
/tools/perf/util/
Dhelp-unknown-cmd.c32 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()
Dterm.c30 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()
Dterm.h9 void set_term_quiet_input(struct termios *old);
/tools/perf/bench/
Dfind-bit-bench.c64 unsigned int old; in do_for_each_set_bit() local
76 old = accumulator; in do_for_each_set_bit()
83 assert(old + (inner_iterations * set_bits) == accumulator); in do_for_each_set_bit()
88 old = accumulator; in do_for_each_set_bit()
97 assert(old + (inner_iterations * set_bits) == accumulator); in do_for_each_set_bit()
/tools/lib/
Drbtree.c75 __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, in __rb_rotate_set_parents() argument
78 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents()
79 new->__rb_parent_color = old->__rb_parent_color; in __rb_rotate_set_parents()
80 rb_set_parent_color(old, new, color); in __rb_rotate_set_parents()
81 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents()
86 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_insert() argument
228 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in ____rb_erase_color() argument
411 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_erase_color() argument
424 static inline void dummy_copy(struct rb_node *old, struct rb_node *new) {} in dummy_copy() argument
425 static inline void dummy_rotate(struct rb_node *old, struct rb_node *new) {} in dummy_rotate() argument
[all …]
/tools/include/nolibc/
Dnolibc.h184 int sys_dup3(int old, int new, int flags) in sys_dup3() argument
186 return my_syscall3(__NR_dup3, old, new, flags); in sys_dup3()
191 int sys_dup2(int old, int new) in sys_dup2() argument
194 return my_syscall3(__NR_dup3, old, new, 0); in sys_dup2()
196 return my_syscall2(__NR_dup2, old, new); in sys_dup2()
273 int sys_link(const char *old, const char *new) in sys_link() argument
276 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link()
278 return my_syscall2(__NR_link, old, new); in sys_link()
334 int sys_pivot_root(const char *new, const char *old) in sys_pivot_root() argument
336 return my_syscall2(__NR_pivot_root, new, old); in sys_pivot_root()
[all …]
/tools/testing/radix-tree/linux/
Dpercpu.h9 #define this_cpu_cmpxchg(var, old, new) uatomic_cmpxchg(&var, old, new) argument
/tools/power/x86/turbostat/
Dturbostat.c1404 #define DELTA_WRAP32(new, old) \ argument
1405 old = ((((unsigned long long)new << 32) - ((unsigned long long)old << 32)) >> 32);
1407 int delta_package(struct pkg_data *new, struct pkg_data *old) in delta_package() argument
1413 old->pkg_wtd_core_c0 = new->pkg_wtd_core_c0 - old->pkg_wtd_core_c0; in delta_package()
1415 old->pkg_any_core_c0 = new->pkg_any_core_c0 - old->pkg_any_core_c0; in delta_package()
1417 old->pkg_any_gfxe_c0 = new->pkg_any_gfxe_c0 - old->pkg_any_gfxe_c0; in delta_package()
1419 old->pkg_both_core_gfxe_c0 = new->pkg_both_core_gfxe_c0 - old->pkg_both_core_gfxe_c0; in delta_package()
1421 old->pc2 = new->pc2 - old->pc2; in delta_package()
1423 old->pc3 = new->pc3 - old->pc3; in delta_package()
1425 old->pc6 = new->pc6 - old->pc6; in delta_package()
[all …]
/tools/testing/selftests/arm64/pauth/
Dpac.c56 int n_same(struct signatures *old, struct signatures *new, int nkeys) in n_same() argument
60 res += old->keyia == new->keyia; in n_same()
61 res += old->keyib == new->keyib; in n_same()
62 res += old->keyda == new->keyda; in n_same()
63 res += old->keydb == new->keydb; in n_same()
65 res += old->keyg == new->keyg; in n_same()
/tools/perf/arch/x86/util/
Dintel-bts.c366 u64 *head, u64 *old) in intel_bts_find_snapshot() argument
374 __func__, idx, (size_t)*old, (size_t)*head); in intel_bts_find_snapshot()
395 *old = *head; in intel_bts_find_snapshot()
399 *old &= mm->mask; in intel_bts_find_snapshot()
401 *old %= mm->len; in intel_bts_find_snapshot()
402 if (*old > *head) in intel_bts_find_snapshot()
407 __func__, wrapped ? "" : "not ", (size_t)*old, (size_t)*head); in intel_bts_find_snapshot()
/tools/lib/traceevent/Documentation/
Dlibtraceevent-header_page.txt44 The _tep_is_old_format()_ function returns true, if an old kernel is used to
58 bool old;
62 old = tep_is_old_format(tep);
65 old?"Old":"New");
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk229 function add_flags(old,new) {
230 if (old && new)
231 return old " | " new
232 else if (old)
233 return old

123