/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | atomic_arch.h | 14 extern bool atomic_cas(atomic_t *target, atomic_val_t old_value, 15 atomic_val_t new_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); [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 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); [all …]
|
D | atomic_builtin.h | 40 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() 41 atomic_val_t new_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() [all …]
|
D | atomic.h | 23 typedef atomic_t atomic_val_t; typedef 79 #define ATOMIC_BITS (sizeof(atomic_val_t) * 8) 133 atomic_val_t val = atomic_get(ATOMIC_ELEM(target, bit)); in atomic_test_bit() 154 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_clear_bit() 155 atomic_val_t old; in atomic_test_and_clear_bit() 178 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_set_bit() 179 atomic_val_t old; in atomic_test_and_set_bit() 200 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_clear_bit() 219 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit() 239 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit_to()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/xtensa/ |
D | atomic_xtensa.h | 16 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() 18 atomic_val_t ret; in atomic_get() 32 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas() 33 atomic_val_t newval) in xtensa_cas() 42 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() 50 return (atomic_val_t) oldval in atomic_ptr_cas() 51 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas() 52 (atomic_val_t) newval); in atomic_ptr_cas() 62 atomic_val_t res, cur; \ 70 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() [all …]
|
/Zephyr-Core-3.5.0/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 | futex.c | 77 if (atomic_get(&futex->val) != (atomic_val_t)expected) { in z_impl_k_futex_wait()
|
/Zephyr-Core-3.5.0/drivers/wifi/esp_at/ |
D | esp.h | 294 static inline atomic_val_t esp_socket_flags_update(struct esp_socket *sock, in esp_socket_flags_update() 295 atomic_val_t value, in esp_socket_flags_update() 296 atomic_val_t mask) in esp_socket_flags_update() 298 atomic_val_t flags; in esp_socket_flags_update() 308 atomic_val_t esp_socket_flags_clear_and_set(struct esp_socket *sock, in esp_socket_flags_clear_and_set() 309 atomic_val_t clear_flags, in esp_socket_flags_clear_and_set() 310 atomic_val_t set_flags) in esp_socket_flags_clear_and_set() 316 static inline atomic_val_t esp_socket_flags_set(struct esp_socket *sock, in esp_socket_flags_set() 317 atomic_val_t flags) in esp_socket_flags_set() 323 atomic_val_t flags) in esp_socket_flags_test_and_clear() [all …]
|
D | esp_socket.c | 54 atomic_val_t ref; in esp_socket_ref() 68 atomic_val_t ref; in esp_socket_unref() 150 atomic_val_t flags; in esp_socket_rx()
|
D | esp_offload.c | 284 atomic_val_t flags = esp_socket_flags(sock); in esp_socket_can_send() 368 atomic_val_t flags = esp_socket_flags(sock); in esp_sendto() 508 atomic_val_t old_flags; in esp_close_work()
|
/Zephyr-Core-3.5.0/arch/riscv/core/ |
D | smp.c | 68 static atomic_val_t cpu_pending_ipi[CONFIG_MP_MAX_NUM_CPUS]; 102 atomic_val_t pending_ipi = atomic_clear(&cpu_pending_ipi[_current_cpu->id]); in ipi_handler() 131 atomic_val_t *pending_ipi = &cpu_pending_ipi[_current_cpu->id]; in arch_spin_relax()
|
/Zephyr-Core-3.5.0/subsys/timing/ |
D | timing.c | 13 static atomic_val_t started_ref;
|
/Zephyr-Core-3.5.0/tests/drivers/rtc/rtc_api/src/ |
D | test_alarm_callback.c | 49 atomic_val_t callback_called_mask_status_odd; in ZTEST() 50 atomic_val_t callback_called_mask_status_even; in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/net/ip/ |
D | promiscuous.c | 65 atomic_val_t prev; in net_promisc_mode_off()
|
/Zephyr-Core-3.5.0/subsys/logging/ |
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-Core-3.5.0/samples/sensor/adc_cmp_npcx/src/ |
D | main.c | 27 atomic_val_t stop;
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_clock.c | 27 static atomic_val_t hf_refcnt;
|
/Zephyr-Core-3.5.0/tests/kernel/common/src/ |
D | atomic.c | 103 atomic_val_t value; in ZTEST_USER() 104 atomic_val_t oldvalue; in ZTEST_USER()
|
/Zephyr-Core-3.5.0/drivers/serial/ |
D | uart_nrfx_uart.c | 252 static atomic_val_t poll_out_lock; in uart_nrfx_poll_out() 261 (atomic_val_t) 0, in uart_nrfx_poll_out() 262 (atomic_val_t) 1) == false) { in uart_nrfx_poll_out() 421 (atomic_val_t) 0, in uart_nrfx_tx() 422 (atomic_val_t) len) == false) { in uart_nrfx_tx()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | bap_iso.c | 45 atomic_val_t old; in bt_bap_iso_ref() 67 atomic_val_t old; in bt_bap_iso_unref()
|
/Zephyr-Core-3.5.0/arch/x86/core/intel64/ |
D | irq.c | 210 irq = (fz - 1) + (i * sizeof(atomic_val_t) * 8); in arch_irq_allocate()
|
/Zephyr-Core-3.5.0/drivers/wifi/eswifi/ |
D | eswifi.h | 76 atomic_val_t mutex_owner;
|
/Zephyr-Core-3.5.0/drivers/ipm/ |
D | ipm_esp32.c | 27 atomic_val_t lock;
|
/Zephyr-Core-3.5.0/drivers/timer/ |
D | nrf_rtc_timer.c | 157 atomic_val_t prev = atomic_and(&int_mask, ~BIT(chan)); in compare_int_lock() 585 atomic_val_t prev; in z_nrf_rtc_timer_chan_alloc()
|
/Zephyr-Core-3.5.0/subsys/pm/ |
D | device.c | 282 atomic_val_t flags, new_flags; in pm_device_wakeup_enable()
|