Home
last modified time | relevance | path

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

1234567891011

/Zephyr-latest/include/zephyr/sys/
Datomic_arch.h18 bool atomic_cas(atomic_t *target, atomic_val_t old_value,
24 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
26 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
28 atomic_val_t atomic_inc(atomic_t *target);
30 atomic_val_t atomic_dec(atomic_t *target);
32 atomic_val_t atomic_get(const atomic_t *target);
36 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
40 atomic_val_t atomic_clear(atomic_t *target);
44 atomic_val_t atomic_or(atomic_t *target, atomic_val_t value);
46 atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value);
[all …]
Datomic.h112 atomic_t name[ATOMIC_BITMAP_SIZE(num_bits)]
127 static inline bool atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit()
147 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit()
170 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit()
191 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit()
209 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit()
228 static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val) in atomic_set_bit_to()
254 bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value);
286 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
300 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
[all …]
Datomic_c.h20 __syscall bool atomic_cas(atomic_t *target, atomic_val_t old_value,
26 __syscall atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
28 __syscall atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
30 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
36 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
42 atomic_val_t atomic_get(const atomic_t *target);
46 __syscall atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
50 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear()
62 __syscall atomic_val_t atomic_or(atomic_t *target, atomic_val_t value);
64 __syscall atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value);
[all …]
Datomic_builtin.h23 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas()
39 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
44 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
49 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
54 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
59 static inline atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
69 static inline atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
83 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear()
93 static inline atomic_val_t atomic_or(atomic_t *target, atomic_val_t value) in atomic_or()
98 static inline atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value) in atomic_xor()
[all …]
/Zephyr-latest/include/zephyr/arch/xtensa/
Datomic_xtensa.h18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
51 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas()
62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas()
72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
98 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
105 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
112 atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
119 atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
125 static ALWAYS_INLINE atomic_val_t atomic_or(atomic_t *target, in atomic_or()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcommon.h17 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t) false
18 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
19 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
20 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t) true)
45 extern atomic_t flag_connected;
46 extern atomic_t flag_conn_updated;
/Zephyr-latest/kernel/
Datomic_c.c43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \
45 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \
46 return z_impl_##name((atomic_t *)target); \
50 static inline atomic_val_t z_vrfy_##name(atomic_t *target, \
53 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \
54 return z_impl_##name((atomic_t *)target, value); \
81 bool z_impl_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_impl_atomic_cas()
108 bool z_vrfy_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_vrfy_atomic_cas()
111 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); in z_vrfy_atomic_cas()
113 return z_impl_atomic_cas((atomic_t *)target, old_value, new_value); in z_vrfy_atomic_cas()
[all …]
/Zephyr-latest/lib/os/
Dsem.c14 static inline atomic_t bounded_dec(atomic_t *val, atomic_t minimum) in bounded_dec()
16 atomic_t old_value, new_value; in bounded_dec()
30 static inline atomic_t bounded_inc(atomic_t *val, atomic_t minimum, in bounded_inc()
31 atomic_t maximum) in bounded_inc()
33 atomic_t old_value, new_value; in bounded_inc()
64 atomic_t old_value; in sys_sem_give()
85 atomic_t old_value; in sys_sem_take()
/Zephyr-latest/tests/bsim/bluetooth/host/att/retry_on_sec_err/
Dtest_utils.h8 #define DECLARE_FLAG(flag) extern atomic_t flag
9 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
10 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
11 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcommon.h79 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
80 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
82 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
88 while (atomic_get(&flag) != (atomic_t)false) { \
115 extern atomic_t flag_connected;
116 extern atomic_t flag_disconnected;
117 extern atomic_t flag_conn_updated;
118 extern atomic_t flag_audio_received;
/Zephyr-latest/tests/bsim/bluetooth/host/adv/periodic/src/
Dcommon.h33 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
34 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
35 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
36 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/
Dflags.h19 #define DECLARE_FLAG(flag) extern atomic_t flag
26 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
28 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
29 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/general/src/
Dcommon.h23 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
24 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
25 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
26 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/adv/extended/src/
Dcommon.h20 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
21 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
22 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
23 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dcommon.h25 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
26 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
27 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
28 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits/src/
Dcommon.h25 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
26 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
27 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
28 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dcommon.h25 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
26 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
27 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
28 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt_notif/src/
Dcommon.h31 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
32 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
33 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
34 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dcommon.h25 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
26 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
27 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
28 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify_multiple/src/
Dcommon.h30 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
31 #define FORCE_FLAG(flag, val) (void)atomic_set(&flag, (atomic_t)val)
32 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
33 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/common/
Dutils.h16 #define DECLARE_FLAG(flag) extern atomic_t flag
17 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
18 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
19 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Dbs_bt_utils.h27 #define DECLARE_FLAG(flag) extern atomic_t flag
28 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
29 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
30 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc/src/
Dutils.h16 #define DECLARE_FLAG(flag) extern atomic_t flag
17 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t)false
18 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
19 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/common/
Dutils.h16 #define DECLARE_FLAG(flag) extern atomic_t flag
17 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
18 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
19 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/send_on_connect/src/
Dcommon.h15 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
16 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
17 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)

1234567891011