/Zephyr-latest/include/zephyr/sys/ |
D | atomic_arch.h | 18 bool atomic_cas(atomic_t *target, atomic_val_t old_value, 19 atomic_val_t new_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); [all …]
|
D | atomic_c.h | 20 __syscall bool atomic_cas(atomic_t *target, atomic_val_t old_value, 21 atomic_val_t new_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); [all …]
|
D | atomic.h | 76 #define ATOMIC_BITS (sizeof(atomic_val_t) * BITS_PER_BYTE) 129 atomic_val_t val = atomic_get(ATOMIC_ELEM(target, bit)); in atomic_test_bit() 149 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_clear_bit() 150 atomic_val_t old; in atomic_test_and_clear_bit() 172 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_set_bit() 173 atomic_val_t old; in atomic_test_and_set_bit() 193 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_clear_bit() 211 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit() 230 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit_to() 254 bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value); [all …]
|
D | atomic_builtin.h | 23 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() 24 atomic_val_t new_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() [all …]
|
D | atomic_types.h | 16 typedef atomic_t atomic_val_t; typedef
|
/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() 20 atomic_val_t ret; in atomic_get() 51 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas() 52 atomic_val_t newval) in xtensa_cas() 62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() 71 return (atomic_val_t) oldval in atomic_ptr_cas() 72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas() 73 (atomic_val_t) newval); in atomic_ptr_cas() 82 atomic_val_t res, cur; \ 91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() [all …]
|
/Zephyr-latest/include/zephyr/arch/riscv/ |
D | atomic.h | 21 static ALWAYS_INLINE atomic_val_t atomic_swap(const atomic_t *target, atomic_val_t newval) in atomic_swap() 23 atomic_val_t ret; in atomic_swap() 33 static ALWAYS_INLINE atomic_val_t atomic_max(atomic_t *target, atomic_val_t value) in atomic_max() 35 atomic_val_t ret; in atomic_max() 45 static ALWAYS_INLINE atomic_val_t atomic_min(atomic_t *target, atomic_val_t value) in atomic_min() 47 atomic_val_t ret; in atomic_min() 57 static ALWAYS_INLINE atomic_val_t atomic_maxu(unsigned long *target, unsigned long value) in atomic_maxu() 69 static ALWAYS_INLINE atomic_val_t atomic_minu(unsigned long *target, unsigned long value) in atomic_minu() 83 static ALWAYS_INLINE atomic_val_t atomic_swap(const atomic_t *target, atomic_val_t newval) 85 atomic_val_t ret; [all …]
|
/Zephyr-latest/kernel/ |
D | atomic_c.c | 43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \ 50 static inline atomic_val_t z_vrfy_##name(atomic_t *target, \ 51 atomic_val_t value) \ 81 bool z_impl_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_impl_atomic_cas() 82 atomic_val_t new_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() 109 atomic_val_t new_value) in z_vrfy_atomic_cas() 161 atomic_val_t z_impl_atomic_add(atomic_t *target, atomic_val_t value) in z_impl_atomic_add() 164 atomic_val_t ret; in z_impl_atomic_add() 191 atomic_val_t z_impl_atomic_sub(atomic_t *target, atomic_val_t value) in z_impl_atomic_sub() [all …]
|
D | ipi.c | 20 atomic_or(&_kernel.pending_ipi, (atomic_val_t)ipi_mask); in flag_ipi() 26 atomic_val_t ipi_mask_create(struct k_thread *thread) in ipi_mask_create() 66 return (atomic_val_t)ipi_mask; in ipi_mask_create()
|
D | futex.c | 77 if (atomic_get(&futex->val) != (atomic_val_t)expected) { in z_impl_k_futex_wait()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.h | 295 static inline atomic_val_t esp_socket_flags_update(struct esp_socket *sock, in esp_socket_flags_update() 296 atomic_val_t value, in esp_socket_flags_update() 297 atomic_val_t mask) in esp_socket_flags_update() 299 atomic_val_t flags; in esp_socket_flags_update() 309 atomic_val_t esp_socket_flags_clear_and_set(struct esp_socket *sock, in esp_socket_flags_clear_and_set() 310 atomic_val_t clear_flags, in esp_socket_flags_clear_and_set() 311 atomic_val_t set_flags) in esp_socket_flags_clear_and_set() 317 static inline atomic_val_t esp_socket_flags_set(struct esp_socket *sock, in esp_socket_flags_set() 318 atomic_val_t flags) in esp_socket_flags_set() 324 atomic_val_t flags) in esp_socket_flags_test_and_clear() [all …]
|
D | esp_socket.c | 56 atomic_val_t ref; in esp_socket_ref() 70 atomic_val_t ref; in esp_socket_unref() 157 atomic_val_t flags;
|
/Zephyr-latest/arch/riscv/core/ |
D | ipi_clint.c | 19 static atomic_val_t cpu_pending_ipi[CONFIG_MP_MAX_NUM_CPUS]; 53 atomic_val_t pending_ipi = atomic_clear(&cpu_pending_ipi[_current_cpu->id]); in sched_ipi_handler() 82 atomic_val_t *pending_ipi = &cpu_pending_ipi[_current_cpu->id]; in arch_spin_relax()
|
/Zephyr-latest/tests/kernel/common/src/ |
D | atomic.c | 103 atomic_val_t value; in ZTEST_USER() 104 atomic_val_t oldvalue; in ZTEST_USER() 358 atomic_val_t atomic_value = overflowed_value - 1; in ZTEST() 367 zassert_true(atomic_value == (atomic_val_t)overflowed_value, in ZTEST() 369 atomic_value, (atomic_val_t)overflowed_value); in ZTEST()
|
/Zephyr-latest/kernel/include/ |
D | ipi.h | 24 atomic_val_t ipi_mask_create(struct k_thread *thread);
|
/Zephyr-latest/include/zephyr/ |
D | spinlock.h | 200 atomic_val_t ticket = atomic_inc(&l->tail); in k_spin_lock() 255 atomic_val_t ticket_val = atomic_get(&l->owner); in k_spin_trylock() 349 atomic_val_t ticket_val = atomic_get(&l->owner); in z_spin_is_locked()
|
/Zephyr-latest/subsys/timing/ |
D | timing.c | 13 static atomic_val_t started_ref;
|
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/ |
D | test_alarm_callback.c | 68 atomic_val_t callback_called_mask_status_odd; in ZTEST() 69 atomic_val_t callback_called_mask_status_even; in ZTEST()
|
/Zephyr-latest/subsys/net/ip/ |
D | promiscuous.c | 65 atomic_val_t prev; in net_promisc_mode_off()
|
/Zephyr-latest/tests/arch/riscv/atomic/src/ |
D | main.c | 36 atomic_val_t value; in ZTEST_USER()
|
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/ |
D | main.c | 131 atomic_val_t initial_refs = atomic_get(&conn->ref); in test_central_connect_when_connecting() 180 atomic_val_t initial_refs = atomic_get(&conn->ref); in test_central_connect_to_existing()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_nrf2_common.c | 40 atomic_val_t prev_flags = atomic_or(&cfg->flags, FLAG_UPDATE_NEEDED); in update_config() 167 atomic_val_t prev_flags; in clock_config_update_end()
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_dict_uart.c | 78 static atomic_val_t add_drop_msg(void); 126 static atomic_val_t add_drop_msg(void) in add_drop_msg() 167 atomic_val_t rem_pkts = atomic_dec(&active_cnt); in uart_callback()
|
/Zephyr-latest/samples/sensor/adc_cmp_npcx/src/ |
D | main.c | 27 atomic_val_t stop;
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_clock.c | 27 static atomic_val_t hf_refcnt;
|