Home
last modified time | relevance | path

Searched refs:K_FOREVER (Results 1 – 25 of 898) sorted by relevance

12345678910>>...36

/Zephyr-Core-3.5.0/scripts/coccinelle/
Dms_timeout.cocci4 // Replace use of K_NO_WAIT and K_FOREVER in API that requires
10 // with 0; for K_FOREVER replace with SYS_FOREVER_MS, the value of
44 identifier K_FOREVER =~ "^K_FOREVER$";
51 K_FOREVER
70 identifier K_FOREVER =~ "^K_FOREVER$";
77 - K_FOREVER
99 identifier K_FOREVER =~ "^K_FOREVER$";
107 K_FOREVER
126 identifier K_FOREVER =~ "^K_FOREVER$";
134 - K_FOREVER
[all …]
/Zephyr-Core-3.5.0/tests/subsys/input/input_longpress/src/
Dmain.c38 input_report_key(fake_dev, INPUT_KEY_3, 1, true, K_FOREVER); in ZTEST()
39 input_report_key(fake_dev, INPUT_KEY_3, 0, true, K_FOREVER); in ZTEST()
41 input_report_abs(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
42 input_report_abs(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST()
46 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
48 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST()
58 input_report_key(fake_dev, INPUT_KEY_1, 1, true, K_FOREVER); in ZTEST()
60 input_report_key(fake_dev, INPUT_KEY_1, 0, true, K_FOREVER); in ZTEST()
70 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
72 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/input/api/src/
Dmain.c24 k_sem_take(&cb_start, K_FOREVER); in input_cb_filtered()
55 k_sem_take(&cb_start, K_FOREVER); in ZTEST()
56 k_sem_take(&cb_done, K_FOREVER); in ZTEST()
61 ret = input_report_key(&fake_dev, i, 1, false, K_FOREVER); in ZTEST()
68 ret = input_report_key(NULL, 0, 1, false, K_FOREVER); in ZTEST()
80 k_sem_take(&cb_done, K_FOREVER); in ZTEST()
109 ret = input_report_key(&fake_dev, 0, 1, false, K_FOREVER); in ZTEST()
112 ret = input_report_key(NULL, 0, 1, false, K_FOREVER); in ZTEST()
131 ret = input_report_key(&fake_dev, INPUT_KEY_A, 1, false, K_FOREVER); in ZTEST()
139 ret = input_report_key(&fake_dev, INPUT_KEY_B, 1234, true, K_FOREVER); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/benchmarks/footprints/src/
Dsemaphore.c20 k_sem_take(&semaphore0, K_FOREVER); in thread_fn()
32 k_sem_take(&sem0, K_FOREVER); in run_semaphore()
39 k_thread_join(sem0_tid, K_FOREVER); in run_semaphore()
45 0, K_USER, K_FOREVER); in run_semaphore()
50 k_thread_join(sem0_tid, K_FOREVER); in run_semaphore()
Dmutex.c22 k_mutex_lock(&user_mutex, K_FOREVER); in user_thread_fn()
34 0, K_USER, K_FOREVER); in run_user_mutex()
38 k_thread_join(tid, K_FOREVER); in run_user_mutex()
48 k_mutex_lock(&sys_mutex, K_FOREVER); in run_system_mutex()
Dworkq.c51 k_sem_take(&sync_sema, K_FOREVER); in simple_workq_thread()
66 k_sem_take(&sync_sema, K_FOREVER); in delayed_workq_thread()
80 k_sem_take(&sync_sema, K_FOREVER); in simple_user_workq_thread()
99 k_thread_join(tid, K_FOREVER); in run_workq()
106 k_thread_join(tid, K_FOREVER); in run_workq()
122 0, K_USER, K_FOREVER); in run_workq()
131 k_thread_join(tid, K_FOREVER); in run_workq()
/Zephyr-Core-3.5.0/tests/benchmarks/app_kernel/src/
Dreceiver.c36 k_sem_take(&STARTRCV, K_FOREVER); in recvtask()
40 k_sem_take(&STARTRCV, K_FOREVER); in recvtask()
44 k_sem_take(&STARTRCV, K_FOREVER); in recvtask()
48 k_sem_take(&STARTRCV, K_FOREVER); in recvtask()
Dfifo_b.c26 k_msgq_put(&DEMOQX1, data_bench, K_FOREVER); in queue_test()
35 k_msgq_get(&DEMOQX1, data_bench, K_FOREVER); in queue_test()
45 k_msgq_put(&DEMOQX4, data_bench, K_FOREVER); in queue_test()
55 k_msgq_get(&DEMOQX4, data_bench, K_FOREVER); in queue_test()
67 k_msgq_put(&DEMOQX1, data_bench, K_FOREVER); in queue_test()
78 k_msgq_put(&DEMOQX4, data_bench, K_FOREVER); in queue_test()
/Zephyr-Core-3.5.0/tests/benchmarks/sys_kernel/
DREADME.txt21 k_sem_take(K_FOREVER)
42 k_sem_take(K_FOREVER)
45 k_sem_take(K_FOREVER)
54 k_lifo_get(K_FOREVER)
64 k_lifo_get(K_FOREVER)
76 k_lifo_get(K_FOREVER)
78 k_lifo_get(K_FOREVER)
88 k_fifo_get(K_FOREVER)
98 k_fifo_get(K_FOREVER)
110 k_fifo_get(K_FOREVER)
[all …]
/Zephyr-Core-3.5.0/tests/arch/riscv/fpu_sharing/src/
Dmain.c116 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
125 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
132 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
143 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
153 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
167 k_sem_take(&thread1_sem, K_FOREVER); in thread1_entry()
190 k_sem_take(&thread2_sem, K_FOREVER); in thread2_entry()
197 k_sem_take(&thread2_sem, K_FOREVER); in thread2_entry()
204 k_sem_take(&thread2_sem, K_FOREVER); in thread2_entry()
211 k_sem_take(&thread2_sem, K_FOREVER); in thread2_entry()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/mbox/mbox_usage/src/
Dmain.c44 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in msg_sender()
45 k_mbox_put(pmbox, &mmsg, K_FOREVER); in msg_sender()
67 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in msg_receiver()
69 rxdata, K_FOREVER) == 0, NULL); in msg_receiver()
115 msg_sender((struct k_mbox *)p1, K_FOREVER); in test_send_un()
128 msg_receiver(&mbox, tid1, K_FOREVER); in ZTEST()
140 ret = k_mbox_get(&multi_tmbox, &mmsg, rxdata, K_FOREVER); in thread_low_prio()
157 ret = k_mbox_get(&multi_tmbox, &mmsg, rxdata, K_FOREVER); in thread_high_prio()
185 k_mbox_put(&multi_tmbox, &mmsg, K_FOREVER); in ZTEST_USER()
190 k_mbox_put(&multi_tmbox, &mmsg, K_FOREVER); in ZTEST_USER()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/semaphore/semaphore/src/
Dmain.c97 zassert_false(k_sem_take((struct k_sem *)p1, K_FOREVER)); in sem_reset_take_task()
113 expect_k_sem_take_nomsg(psem, K_FOREVER, 0); in tsema_thread_thread()
116 k_thread_join(tid, K_FOREVER); in tsema_thread_thread()
124 expect_k_sem_take_nomsg(psem, K_FOREVER, 0); in tsema_thread_isr()
152 expect_k_sem_take_nomsg(&low_prio_sem, K_FOREVER, 0); in sem_take_multiple_low_prio_helper()
153 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_low_prio_helper()
160 expect_k_sem_take_nomsg(&mid_prio_sem, K_FOREVER, 0); in sem_take_multiple_mid_prio_helper()
161 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_mid_prio_helper()
169 expect_k_sem_take_nomsg(&high_prio_sem, K_FOREVER, 0); in sem_take_multiple_high_prio_helper()
170 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_high_prio_helper()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_apis/src/
Dtest_threads_set_priority.c24 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test()
29 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test()
34 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test()
82 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST()
90 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST()
98 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/semaphore/sys_sem/src/
Dmain.c54 k_sem_take(&usage_sem, K_FOREVER); in thread_low_prio_sem_take()
62 k_sem_take(&usage_sem, K_FOREVER); in thread_high_prio_sem_take()
89 k_sem_take(&usage_sem, K_FOREVER); in ZTEST_USER()
109 k_sem_take(&sync_sem, K_FOREVER); in ZTEST_USER()
113 k_sem_take(&sync_sem, K_FOREVER); in ZTEST_USER()
116 k_thread_join(&multi_tid_give[0], K_FOREVER); in ZTEST_USER()
117 k_thread_join(&multi_tid_take[0], K_FOREVER); in ZTEST_USER()
118 k_thread_join(&multi_tid_take[1], K_FOREVER); in ZTEST_USER()
125 k_thread_join(&multi_tid_give[1], K_FOREVER); in ZTEST_USER()
142 k_sem_take(&sync_sem, K_FOREVER); in multi_thread_sem_give()
[all …]
/Zephyr-Core-3.5.0/drivers/input/
Dinput_sdl_touch.c20 input_report_key(data->dev, INPUT_BTN_TOUCH, 0, true, K_FOREVER); in sdl_input_callback()
25 input_report_abs(data->dev, INPUT_ABS_X, data->x, false, K_FOREVER); in sdl_input_callback()
26 input_report_abs(data->dev, INPUT_ABS_Y, data->y, false, K_FOREVER); in sdl_input_callback()
27 input_report_key(data->dev, INPUT_BTN_TOUCH, 1, true, K_FOREVER); in sdl_input_callback()
/Zephyr-Core-3.5.0/tests/kernel/mutex/sys_mutex/src/
Dthread_competition.c37 sys_mutex_lock(pmutex, K_FOREVER); in low_prio_wait_for_mutex()
52 sys_mutex_lock(pmutex, K_FOREVER); in high_prio_t1_wait_for_mutex()
67 sys_mutex_lock(pmutex, K_FOREVER); in high_prio_t2_wait_for_mutex()
125 k_thread_join(&thread_low_data, K_FOREVER); in ZTEST()
126 k_thread_join(&thread_high_data1, K_FOREVER); in ZTEST()
127 k_thread_join(&thread_high_data2, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/sched/schedule_api/src/
Duser_api.c28 k_sleep(K_FOREVER); in sleepy_thread()
41 k_sem_take(&user_sem, K_FOREVER); in ZTEST_USER()
74 k_sem_take(&user_sem, K_FOREVER); in ZTEST_USER()
85 k_sem_take(&user_sem, K_FOREVER); in ZTEST_USER()
124 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
161 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
198 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
235 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
273 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
313 k_thread_join(tid, K_FOREVER); in ZTEST_USER()
[all …]
/Zephyr-Core-3.5.0/subsys/net/conn_mgr/
Dconn_mgr_monitor.c106 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_mon_handle_update()
162 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_mon_initial_state()
198 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_mon_thread_fn()
212 k_sem_take(&conn_mgr_mon_updated, K_FOREVER); in conn_mgr_mon_thread_fn()
221 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_mon_resend_status()
236 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_ignore_iface()
252 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_watch_iface()
270 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_is_iface_ignored()
298 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_ignore_l2()
314 k_mutex_lock(&conn_mgr_mon_lock, K_FOREVER); in conn_mgr_watch_l2()
/Zephyr-Core-3.5.0/tests/kernel/sched/metairq/src/
Dmain.c45 pri, PARTICIPANT_THREAD_OPTIONS, K_FOREVER);
47 #define JOIN_PARTICIPANT_THREAD(id) k_thread_join(&(thread_##id##_thread_data), K_FOREVER);
64 k_sem_take(&metairq_sem, K_FOREVER); in metairq_thread()
90 k_sem_take(&coop_sem1, K_FOREVER); in coop_thread1()
117 k_sem_take(&coop_sem2, K_FOREVER); in coop_thread2()
195 k_sem_take(&coop_sem2, K_FOREVER); in ZTEST()
196 k_sem_take(&coop_sem1, K_FOREVER); in ZTEST()
197 k_sem_take(&metairq_sem, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/src/
Dmain.c65 k_sem_take(&SEM_REGRESSDONE, K_FOREVER); in helper_thread()
76 k_sem_take(&SEM_REGRESSDONE, K_FOREVER); in helper_thread()
92 k_sem_take(&SEM_REGRESSDONE, K_FOREVER); in helper_thread()
231 k_sem_take(&SEM_HELPERDONE, K_FOREVER); in ZTEST()
255 k_sem_take(&SEM_HELPERDONE, K_FOREVER); in ZTEST()
259 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_FOREVER); in ZTEST()
264 k_sem_take(&SEM_HELPERDONE, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/events/sys_event/src/
Dmain.c47 events = k_event_wait_all(&sync_event, 0x33, true, K_FOREVER); in entry_extra1()
56 events = k_event_wait(&sync_event, 0x3300, true, K_FOREVER); in entry_extra2()
82 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
91 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
100 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
109 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
118 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
127 k_sem_take(&sync_sem, K_FOREVER); in receive_existing_events()
136 k_sem_take(&sync_sem, K_FOREVER); in reset_on_receive()
143 k_sem_take(&sync_sem, K_FOREVER); in reset_on_receive()
[all …]
/Zephyr-Core-3.5.0/tests/drivers/kscan/kscan_input/src/
Dmain.c44 input_report_abs(input_dev, INPUT_ABS_X, 101, false, K_FOREVER); in ZTEST()
47 input_report_abs(input_dev, INPUT_ABS_Y, 102, false, K_FOREVER); in ZTEST()
50 input_report_key(input_dev, INPUT_BTN_TOUCH, 1, true, K_FOREVER); in ZTEST()
56 input_report_abs(input_dev, INPUT_ABS_X, 103, true, K_FOREVER); in ZTEST()
62 input_report_key(input_dev, INPUT_BTN_TOUCH, 0, true, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/subsys/modem/
Dmodem_pipe.c33 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_open()
60 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_open_async()
77 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_attach()
92 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_transmit()
108 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_receive()
123 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_release()
133 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_close()
160 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_close_async()
177 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_notify_opened()
190 k_mutex_lock(&pipe->lock, K_FOREVER); in modem_pipe_notify_closed()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/stack/stack/src/
Dtest_stack_contexts.c76 k_sem_take(&end_sema1, K_FOREVER); in tstack_thread_thread()
78 k_sem_take(&end_sema1, K_FOREVER); in tstack_thread_thread()
174 k_sem_take(&end_sema1, K_FOREVER); in ZTEST()
176 k_sem_take(&end_sema1, K_FOREVER); in ZTEST()
194 k_stack_pop(pstack, &output, K_FOREVER); in low_prio_wait_for_stack()
204 k_stack_pop(pstack, &output, K_FOREVER); in high_prio_t1_wait_for_stack()
214 k_stack_pop(pstack, &output, K_FOREVER); in high_prio_t2_wait_for_stack()
276 k_thread_join(&thread_data1, K_FOREVER); in ZTEST()
277 k_thread_join(&high_pro_thread_t1, K_FOREVER); in ZTEST()
278 k_thread_join(&high_pro_thread_t2, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/att/read_fill_buf/testlib/
Dconnect.c27 k_mutex_lock(&g_ctx_lock, K_FOREVER); in connected_cb()
50 k_sem_take(&g_ctx_free, K_FOREVER); in bt_testlib_connect()
51 k_mutex_lock(&g_ctx_lock, K_FOREVER); in bt_testlib_connect()
57 k_condvar_wait(&ctx.done, &g_ctx_lock, K_FOREVER); in bt_testlib_connect()

12345678910>>...36