Home
last modified time | relevance | path

Searched refs:atomic_get (Results 1 – 25 of 119) sorted by relevance

12345

/Zephyr-latest/tests/net/offloaded_netdev/src/
Dmain.c78 return atomic_get(&retval); in offload_impl_enable()
154 zassert_equal(atomic_get(&call_count), 1, in ZTEST()
156 zassert_equal(atomic_get(&up_count), 1, in ZTEST()
165 zassert_equal(atomic_get(&call_count), 2, in ZTEST()
167 zassert_equal(atomic_get(&up_count), 0, in ZTEST()
185 zassert_equal(atomic_get(&call_count), 0, in ZTEST()
187 zassert_equal(atomic_get(&up_count), 0, in ZTEST()
196 zassert_equal(atomic_get(&call_count), 0, in ZTEST()
198 zassert_equal(atomic_get(&up_count), 0, in ZTEST()
216 zassert_equal(atomic_get(&call_count), 1, in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/modem/modem_pipe/src/
Dmain.c235 zassert_equal(atomic_get(&test_state), in test_pipe_open()
238 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_open()
246 zassert_equal(atomic_get(&test_state), 0, in test_pipe_reopen()
247 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_reopen()
255 zassert_equal(atomic_get(&test_state), BIT(TEST_MODEM_PIPE_EVENT_CLOSED_BIT), in test_pipe_close()
256 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_close()
264 zassert_equal(atomic_get(&test_state), 0, in test_pipe_reclose()
265 "Unexpected state %u", atomic_get(&test_state)); in test_pipe_reclose()
276 zassert_equal(atomic_get(&test_state), 0, "Unexpected state %u", in test_pipe_async_transmit()
277 atomic_get(&test_state)); in test_pipe_async_transmit()
[all …]
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/
Dflags.h37 #define IS_FLAG_SET(flag) (atomic_get(&flag) != false)
41 while (atomic_get(&var) != val) { \
47 while (!(bool)atomic_get(&flag)) { \
53 while ((bool)atomic_get(&flag)) { \
/Zephyr-latest/tests/boards/nrf/comp/src/
Dtest.c66 zassert_equal(atomic_get(&counter), 1, "COMP was not triggered for first threshold cross"); in ZTEST()
69 zassert_equal(atomic_get(&counter), 2, "COMP was not triggered for second threshold cross"); in ZTEST()
105 zassert_equal(atomic_get(&counter), 1, "COMP was not triggered for first threshold cross"); in ZTEST()
108 zassert_equal(atomic_get(&counter), 2, "COMP was not triggered for second threshold cross"); in ZTEST()
143 zassert_equal(atomic_get(&counter), 1, "COMP was not triggered for first threshold cross"); in ZTEST()
149 zassert_equal(atomic_get(&counter), 2, "COMP was not triggered for second threshold cross"); in ZTEST()
190 zassert_equal(atomic_get(&counter), 1, "COMP wasn't triggered for falling threshold cross"); in ZTEST()
224 zassert_equal(atomic_get(&counter), 0, "COMP was triggered for falling threshold cross"); in ZTEST()
230 zassert_equal(atomic_get(&counter), 1, "COMP was not triggered for rising threshold cross"); in ZTEST()
264 zassert_equal(atomic_get(&counter), 0, "COMP was triggered for falling threshold cross"); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/futex/src/
Dmain.c72 atomic_get(&simple_futex.val), K_TICKS(time_val)); in futex_wait_task()
113 atomic_get(&simple_futex.val), K_TICKS(time_val)); in futex_wait_wake_task()
156 atomic_get(&(multiple_futex[idx].val)), K_TICKS(time_val)); in futex_multiple_wait_wake_task()
185 zassert_false(atomic_get(&simple_futex.val) == 0, in ZTEST()
205 zassert_true(atomic_get(&simple_futex.val) == 0, in ZTEST()
225 zassert_true(atomic_get(&simple_futex.val) == 0, "wait nowait fail"); in ZTEST()
258 zassert_true(atomic_get(&simple_futex.val) == 0, in ZTEST()
291 zassert_true(atomic_get(&simple_futex.val) == 0, in ZTEST()
344 zassert_true(atomic_get(&simple_futex.val) == 0, in ZTEST()
376 zassert_true(atomic_get(&simple_futex.val) == 0, in ZTEST()
[all …]
/Zephyr-latest/tests/net/socket/socketpair/src/
Dblock.c31 LOG_DBG("ctx.m: %lu", atomic_get(&ctx.m)); in work_handler()
32 if (atomic_get(&ctx.m) in work_handler()
77 for (ctx.m = 0; atomic_get(&ctx.m) in ZTEST_F()
86 LOG_DBG("have written %lu bytes", atomic_get(&ctx.m)); in ZTEST_F()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c119 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
129 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
150 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
167 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
183 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
202 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
217 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
231 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
418 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
504 zassert_true(atomic_get(&pkt->atomic_ref) == 0, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/spinlock/src/
Dspinlock_fairness.c47 while (atomic_get(&start_sync) != 0) in test_thread()
57 if (atomic_get(&fairness_test_cycles) == 0) { in test_thread()
74 } while (atomic_get(&fairness_test_cycles) != 0); in test_thread()
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/
Dmain.c152 atomic_val_t initial_refs = atomic_get(&conn->ref); in test_central_connect_when_connecting()
160 TEST_ASSERT(atomic_get(&conn->ref) == initial_refs, in test_central_connect_when_connecting()
166 TEST_ASSERT(atomic_get(&conn->ref) == 0, "Expect no more references"); in test_central_connect_when_connecting()
201 atomic_val_t initial_refs = atomic_get(&conn->ref); in test_central_connect_to_existing()
209 TEST_ASSERT(atomic_get(&conn->ref) == initial_refs, in test_central_connect_to_existing()
/Zephyr-latest/lib/os/
Dsem.c19 old_value = atomic_get(val); in bounded_dec()
36 old_value = atomic_get(val); in bounded_inc()
103 int value = atomic_get(&sem->futex.val); in sys_sem_count_get()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcommon.h84 #define TEST_FLAG(flag) (atomic_get(&flag) == (atomic_t)true)
86 while (!(bool)atomic_get(&flag)) { \
94 while (atomic_get(&flag) != (atomic_t)false) { \
/Zephyr-latest/tests/kernel/common/src/
Datomic.c167 zassert_true((atomic_get(&target) == 50), "atomic_get"); in ZTEST_USER()
364 zassert_true(atomic_value == atomic_get(&atomic_var), in ZTEST()
366 atomic_value, atomic_get(&atomic_var)); in ZTEST()
378 zassert_true(atomic_value == atomic_get(&atomic_var), in ZTEST()
380 atomic_value, atomic_get(&atomic_var)); in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/peripheral/src/
Dmain.c240 __ASSERT(atomic_get(&conn_info.notify_counter) == received_counter, in rx_notification()
242 atomic_get(&conn_info.notify_counter), received_counter); in rx_notification()
436 set_tx_payload(atomic_get(&conn_info.tx_notify_counter)); in test_peripheral_main()
439 if (atomic_get(&conn_info.tx_notify_counter) > 0) { in test_peripheral_main()
446 LOG_INF("TX %d", atomic_get(&conn_info.tx_notify_counter)); in test_peripheral_main()
449 if (atomic_get(&conn_info.tx_notify_counter) > MIN_NOTIFICATIONS && in test_peripheral_main()
450 atomic_get(&conn_info.notify_counter) > MIN_NOTIFICATIONS) { in test_peripheral_main()
/Zephyr-latest/include/zephyr/
Dspinlock.h202 while (atomic_get(&l->owner) != ticket) { 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/samples/drivers/stepper/generic/src/
Dmain.c53 enum stepper_mode mode = atomic_get(&stepper_mode); in button_pressed()
80 switch (atomic_get(&stepper_mode)) { in main()
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c160 atomic_get(&rx_data->avail_count), atomic_get(&tx_data->avail_count)); in main()
/Zephyr-latest/subsys/net/lib/shell/
Dmem.c83 atomic_get(&pool->avail_count), pool->name); in context_info()
132 atomic_get(&rx_data->avail_count), rx_data->max_used, rx_data->name); in cmd_net_mem()
135 atomic_get(&tx_data->avail_count), tx_data->max_used, tx_data->name); in cmd_net_mem()
Dpkt.c109 PR("%p[%ld]", pkt, atomic_get(&pkt->atomic_ref)); in net_pkt_buffer_info()
116 PR("%p[%ld/%u (%u/%u)]", buf, atomic_get(&pkt->atomic_ref), in net_pkt_buffer_info()
/Zephyr-latest/subsys/timing/
Dtiming.c53 old_value = atomic_get(&started_ref); in timing_stop()
/Zephyr-latest/drivers/timer/
Dgecko_burtc_timer.c87 uint32_t prev = atomic_get(&g_last_count); in burtc_isr()
132 uint32_t prev = atomic_get(&g_last_count); in sys_clock_set_timeout()
Dsilabs_sleeptimer_timer.c52 uint32_t prev = atomic_get(&timer->last_count); in sleeptimer_cb()
97 return (sl_sleeptimer_get_tick_count() - atomic_get(&timer->last_count)) / in sleeptimer_clock_elapsed()
/Zephyr-latest/include/zephyr/arch/xtensa/
Datomic_xtensa.h18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() function
155 return (void *) atomic_get((atomic_t *)target); in atomic_ptr_get()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc1200.c174 if (atomic_get(&cc1200->tx) == 1) { in gpio0_int_handler()
175 if (atomic_get(&cc1200->tx_start) == 0) { in gpio0_int_handler()
183 if (atomic_get(&cc1200->rx) == 1) { in gpio0_int_handler()
530 if (atomic_get(&cc1200->rx) == 0) { in cc1200_cca()
565 if (atomic_get(&cc1200->rx) != 0) { in cc1200_set_channel()
651 if (atomic_get(&cc1200->tx_start) == 1) { in cc1200_tx()
659 if (atomic_get(&cc1200->tx) == 1 && in cc1200_tx()
/Zephyr-latest/include/zephyr/sys/
Datomic.h129 atomic_val_t val = atomic_get(ATOMIC_ELEM(target, bit)); in atomic_test_bit()
339 atomic_val_t atomic_get(const atomic_t *target);
/Zephyr-latest/kernel/
Dsmp.c105 while (!atomic_get(start_flag)) { in wait_for_start_signal()
165 while (!atomic_get(&ready_flag)) { in start_cpu()

12345