Home
last modified time | relevance | path

Searched refs:atomic_t (Results 1 – 17 of 17) sorted by relevance

/tools/testing/selftests/futex/include/
Datomic.h23 } atomic_t; typedef
36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg()
48 atomic_inc(atomic_t *addr) in atomic_inc()
60 atomic_dec(atomic_t *addr) in atomic_dec()
73 atomic_set(atomic_t *addr, int newval) in atomic_set()
/tools/arch/x86/include/asm/
Datomic.h26 static inline int atomic_read(const atomic_t *v) in atomic_read()
38 static inline void atomic_set(atomic_t *v, int i) in atomic_set()
49 static inline void atomic_inc(atomic_t *v) in atomic_inc()
63 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
68 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg()
/tools/include/asm-generic/
Datomic-gcc.h23 static inline int atomic_read(const atomic_t *v) in atomic_read()
35 static inline void atomic_set(atomic_t *v, int i) in atomic_set()
46 static inline void atomic_inc(atomic_t *v) in atomic_inc()
59 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg()
/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c163 TEST_BTF_C(str, atomic_t, 0, {.counter = (int)1,}); in BPF_PROG()
164 TEST_BTF(str, atomic_t, BTF_F_NONAME, "{1,}", {.counter = 1,}); in BPF_PROG()
166 TEST_BTF(str, atomic_t, 0, "(atomic_t){}", {.counter = 0,}); in BPF_PROG()
167 TEST_BTF(str, atomic_t, BTF_F_NONAME, "{}", {.counter = 0,}); in BPF_PROG()
168 TEST_BTF(str, atomic_t, BTF_F_ZERO, "(atomic_t){.counter = (int)0,}", in BPF_PROG()
170 TEST_BTF(str, atomic_t, BTF_F_NONAME|BTF_F_ZERO, in BPF_PROG()
Dkfree_skb.c34 } atomic_t; typedef
36 atomic_t refs;
Dmap_ptr_kern.c89 } atomic_t; typedef
93 atomic_t count;
/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c457 TEST_BTF_DUMP_DATA_C(btf, d, NULL, str, atomic_t, BTF_F_COMPACT, in test_btf_dump_typedef_data()
459 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_NONAME, in test_btf_dump_typedef_data()
461 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, 0, in test_btf_dump_typedef_data()
467 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT, "(atomic_t){}", in test_btf_dump_typedef_data()
469 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_NONAME, in test_btf_dump_typedef_data()
471 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, 0, in test_btf_dump_typedef_data()
475 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_COMPACT | BTF_F_ZERO, in test_btf_dump_typedef_data()
478 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, in test_btf_dump_typedef_data()
481 TEST_BTF_DUMP_DATA(btf, d, NULL, str, atomic_t, BTF_F_ZERO, in test_btf_dump_typedef_data()
488 TEST_BTF_DUMP_DATA_OVER(btf, d, NULL, str, atomic_t, sizeof(atomic_t)-1, in test_btf_dump_typedef_data()
/tools/include/linux/
Dlockdep.h58 #define atomic_t unsigned long macro
Dtypes.h69 } atomic_t; typedef
Drefcount.h53 atomic_t refs;
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/
Dtypes.h100 } atomic_t; typedef
/tools/testing/selftests/kvm/
Drseq_test.c46 static atomic_t seq_cnt;
Ddirty_log_test.c149 static atomic_t vcpu_sync_stop_requested;
/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c36 atomic_t waiters_blocked = ATOMIC_INITIALIZER;
37 atomic_t waiters_woken = ATOMIC_INITIALIZER;
Dfutex_requeue_pi_signal_restart.c36 atomic_t requeued = ATOMIC_INITIALIZER;
/tools/perf/bench/
Dsynthesize.c50 static atomic_t event_count;
/tools/memory-model/Documentation/
Dsimple.txt190 Documentation/atomic_t.txt