Home
last modified time | relevance | path

Searched refs:atomic_ptr_val_t (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-2.7.6/include/sys/
Datomic_c.h23 __syscall bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value,
24 atomic_ptr_val_t new_value);
44 extern atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target);
48 __syscall atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value);
56 static inline atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target) in atomic_ptr_clear()
Datomic_builtin.h58 static inline bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in atomic_ptr_cas()
59 atomic_ptr_val_t new_value) in atomic_ptr_cas()
153 static inline atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target) in atomic_ptr_get()
191 static inline atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value) in atomic_ptr_set()
223 static inline atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target) in atomic_ptr_clear()
Datomic.h24 typedef atomic_ptr_t atomic_ptr_val_t; typedef
/Zephyr-Core-2.7.6/kernel/
Datomic_c.c110 bool z_impl_atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in z_impl_atomic_ptr_cas()
111 atomic_ptr_val_t new_value) in z_impl_atomic_ptr_cas()
130 atomic_ptr_val_t old_value, in z_vrfy_atomic_ptr_cas()
131 atomic_ptr_val_t new_value) in z_vrfy_atomic_ptr_cas()
217 atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target) in atomic_ptr_get()
251 atomic_ptr_val_t z_impl_atomic_ptr_set(atomic_ptr_t *target, in z_impl_atomic_ptr_set()
252 atomic_ptr_val_t value) in z_impl_atomic_ptr_set()
255 atomic_ptr_val_t ret; in z_impl_atomic_ptr_set()
268 static inline atomic_ptr_val_t z_vrfy_atomic_ptr_set(atomic_ptr_t *target, in z_vrfy_atomic_ptr_set()
269 atomic_ptr_val_t value) in z_vrfy_atomic_ptr_set()
/Zephyr-Core-2.7.6/tests/kernel/common/src/
Datomic.c117 ptr_value = (atomic_ptr_val_t)5; in test_atomic()
118 old_ptr_value = (atomic_ptr_val_t)6; in test_atomic()
121 ptr_target = (atomic_ptr_val_t)6; in test_atomic()
164 zassert_true((atomic_ptr_get(&ptr_target) == (atomic_ptr_val_t)50), in test_atomic()
175 ptr_value = (atomic_ptr_val_t)77; in test_atomic()
176 zassert_true((atomic_ptr_set(&ptr_target, ptr_value) == (atomic_ptr_val_t)42), in test_atomic()
187 zassert_true((atomic_ptr_clear(&ptr_target) == (atomic_ptr_val_t)100), in test_atomic()