Home
last modified time | relevance | path

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

12345678

/Zephyr-Core-3.5.0/include/zephyr/sys/
Datomic_arch.h14 extern bool atomic_cas(atomic_t *target, atomic_val_t old_value,
20 extern atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
22 extern atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
24 extern atomic_val_t atomic_inc(atomic_t *target);
26 extern atomic_val_t atomic_dec(atomic_t *target);
28 extern atomic_val_t atomic_get(const atomic_t *target);
32 extern atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
36 extern atomic_val_t atomic_clear(atomic_t *target);
40 extern atomic_val_t atomic_or(atomic_t *target, atomic_val_t value);
42 extern atomic_val_t atomic_xor(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 extern 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.h40 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas()
86 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
105 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
123 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
141 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
159 static inline atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
197 static inline atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
240 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear()
279 static inline atomic_val_t atomic_or(atomic_t *target, atomic_val_t value) in atomic_or()
299 static inline atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value) in atomic_xor()
[all …]
Datomic.h22 typedef long atomic_t; typedef
23 typedef atomic_t atomic_val_t;
115 atomic_t name[ATOMIC_BITMAP_SIZE(num_bits)]
131 static inline bool atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit()
152 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit()
176 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit()
198 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit()
217 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit()
237 static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val) in atomic_set_bit_to()
/Zephyr-Core-3.5.0/include/zephyr/arch/xtensa/
Datomic_xtensa.h16 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
32 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas()
42 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas()
51 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
70 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
76 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
82 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
88 atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
94 atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
99 static ALWAYS_INLINE atomic_val_t atomic_or(atomic_t *target, in atomic_or()
[all …]
/Zephyr-Core-3.5.0/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-Core-3.5.0/kernel/
Datomic_c.c43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \
45 Z_OOPS(Z_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 Z_OOPS(Z_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 Z_OOPS(Z_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-Core-3.5.0/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()
65 atomic_t old_value; in sys_sem_give()
86 atomic_t old_value; in sys_sem_take()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dcommon.h36 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
37 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
39 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
45 while (atomic_get(&flag) != (atomic_t)false) { \
71 extern atomic_t flag_connected;
72 extern atomic_t flag_conn_updated;
/Zephyr-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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)
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/l2cap/userdata/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)
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/adv/resume/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-Core-3.5.0/tests/bsim/bluetooth/host/security/bond_overwrite_allowed/src/
Dbs_bt_utils.h29 #define DECLARE_FLAG(flag) extern atomic_t flag
30 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
31 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
32 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/security/bond_overwrite_denied/src/
Dbs_bt_utils.h29 #define DECLARE_FLAG(flag) extern atomic_t flag
30 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
31 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
32 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/gatt/settings/src/
Dutils.h18 #define DECLARE_FLAG(flag) extern atomic_t flag
19 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false
20 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true)
21 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false)

12345678