Home
last modified time | relevance | path

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

1234

/Zephyr-Core-2.7.6/include/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.h37 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas()
77 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
93 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
108 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
123 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
138 static inline atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
170 static inline atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
207 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear()
240 static inline atomic_val_t atomic_or(atomic_t *target, atomic_val_t value) in atomic_or()
257 static inline atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value) in atomic_xor()
[all …]
Datomic.h21 typedef int atomic_t; typedef
22 typedef atomic_t atomic_val_t;
114 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()
145 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit()
166 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit()
187 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit()
205 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit()
224 static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val) in atomic_set_bit_to()
/Zephyr-Core-2.7.6/include/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-2.7.6/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()
100 bool z_vrfy_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_vrfy_atomic_cas()
103 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); in z_vrfy_atomic_cas()
105 return z_impl_atomic_cas((atomic_t *)target, old_value, new_value); in z_vrfy_atomic_cas()
[all …]
Dsmp.c13 static atomic_t global_lock;
14 static atomic_t start_flag;
55 atomic_t *cpu_start_flag = arg; in z_smp_thread_init()
/Zephyr-Core-2.7.6/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-2.7.6/tests/bluetooth/bsim_bt/bsim_test_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-2.7.6/tests/bluetooth/bsim_bt/bsim_test_audio/src/
Dcommon.h35 #define CREATE_FLAG(flag) static atomic_t flag = (atomic_t)false
36 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)true)
37 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t)false)
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Dmonitor.c63 static atomic_t flags;
66 atomic_t cmd;
67 atomic_t evt;
68 atomic_t acl_tx;
69 atomic_t acl_rx;
71 atomic_t sco_tx;
72 atomic_t sco_rx;
74 atomic_t other;
91 atomic_t *val) in encode_drops()
/Zephyr-Core-2.7.6/samples/arch/smp/pi/src/
Dmain.c32 static atomic_t counter = THREADS_NUM;
36 atomic_t *counter = (atomic_t *)arg1; in test_thread()
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/
Dcommon.h44 atomic_t bytes_received;
50 atomic_t bytes_received;
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_cc1200.h53 atomic_t tx;
54 atomic_t tx_start;
60 atomic_t rx;
/Zephyr-Core-2.7.6/include/bluetooth/
Dl2cap.h164 atomic_t credits;
228 atomic_t flags[1];
328 void (*status)(struct bt_l2cap_chan *chan, atomic_t *status);
/Zephyr-Core-2.7.6/subsys/tracing/
Dtracing_core.c36 static atomic_t tracing_state;
37 static atomic_t tracing_packet_drop_num;
/Zephyr-Core-2.7.6/include/mgmt/mcumgr/
Dsmp_shell.h27 atomic_t esc_state;
/Zephyr-Core-2.7.6/subsys/timing/
Dtiming.c49 atomic_t old_value, new_value; in timing_stop()
/Zephyr-Core-2.7.6/samples/subsys/edac/src/
Dmain.c19 static atomic_t handled;
/Zephyr-Core-2.7.6/subsys/net/lib/websocket/
Dwebsocket_internal.h43 atomic_t refcount;
/Zephyr-Core-2.7.6/drivers/wifi/eswifi/
Deswifi.h97 if (atomic_get(&eswifi->mutex_owner) != (atomic_t)(uintptr_t)_current) { in eswifi_lock()
99 atomic_set(&eswifi->mutex_owner, (atomic_t)(uintptr_t)_current); in eswifi_lock()
/Zephyr-Core-2.7.6/tests/kernel/interrupt/src/
Dinterrupt_offload.c23 static atomic_t submit_success;
24 static atomic_t offload_job_cnt;
/Zephyr-Core-2.7.6/subsys/pm/
Dpm_ctrl.c19 static atomic_t power_state_disable_count[PM_STATES_LEN];
/Zephyr-Core-2.7.6/doc/reference/kernel/other/
Datomic.rst31 An atomic variable is defined using a variable of type :c:type:`atomic_t`.
38 atomic_t flags = ATOMIC_INIT(0xFF);
54 atomic_t call_count;
/Zephyr-Core-2.7.6/subsys/net/ip/
Dpromiscuous.c26 static atomic_t enabled = ATOMIC_INIT(0);

1234