/Zephyr-latest/include/zephyr/sys/ |
D | atomic_arch.h | 18 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 …]
|
D | atomic.h | 112 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 …]
|
D | atomic_c.h | 20 __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 …]
|
D | atomic_builtin.h | 23 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/ |
D | atomic_xtensa.h | 18 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/ |
D | common.h | 17 #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/ |
D | atomic_c.c | 43 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/ |
D | sem.c | 14 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/ |
D | test_utils.h | 8 #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/ |
D | common.h | 79 #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/ |
D | common.h | 33 #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/ |
D | flags.h | 19 #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/ |
D | common.h | 23 #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/ |
D | common.h | 20 #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/ |
D | common.h | 25 #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/ |
D | common.h | 25 #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/ |
D | common.h | 25 #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/ |
D | common.h | 31 #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/ |
D | common.h | 25 #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/ |
D | common.h | 30 #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/ |
D | utils.h | 16 #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/ |
D | bs_bt_utils.h | 27 #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/ |
D | utils.h | 16 #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/ |
D | utils.h | 16 #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/ |
D | common.h | 15 #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)
|