/Zephyr-Core-3.4.0/scripts/coccinelle/ |
D | ms_timeout.cocci | 4 // 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.4.0/tests/subsys/input/input_longpress/src/ |
D | main.c | 38 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.4.0/tests/subsys/input/api/src/ |
D | main.c | 24 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.4.0/tests/benchmarks/footprints/src/ |
D | semaphore.c | 20 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()
|
D | mutex.c | 22 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()
|
D | workq.c | 51 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.4.0/tests/benchmarks/app_kernel/src/ |
D | receiver.c | 36 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()
|
D | fifo_b.c | 26 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.4.0/tests/arch/riscv/fpu_sharing/src/ |
D | main.c | 116 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.4.0/tests/kernel/mbox/mbox_usage/src/ |
D | main.c | 44 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.4.0/tests/kernel/semaphore/semaphore/src/ |
D | main.c | 97 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.4.0/tests/kernel/threads/thread_apis/src/ |
D | test_threads_set_priority.c | 24 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.4.0/tests/kernel/semaphore/sys_sem/src/ |
D | main.c | 54 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.4.0/tests/benchmarks/sys_kernel/ |
D | README.txt | 43 k_sem_take(K_FOREVER) 64 k_sem_take(K_FOREVER) 67 k_sem_take(K_FOREVER) 76 k_lifo_get(K_FOREVER) 86 k_lifo_get(K_FOREVER) 98 k_lifo_get(K_FOREVER) 100 k_lifo_get(K_FOREVER) 110 k_fifo_get(K_FOREVER) 120 k_fifo_get(K_FOREVER) 132 k_fifo_get(K_FOREVER) [all …]
|
/Zephyr-Core-3.4.0/tests/kernel/mutex/sys_mutex/src/ |
D | thread_competition.c | 37 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.4.0/tests/kernel/sched/schedule_api/src/ |
D | user_api.c | 28 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.4.0/subsys/net/conn_mgr/ |
D | conn_mgr.c | 102 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_act_on_changes() 158 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_initial_state() 194 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_handler() 208 k_sem_take(&conn_mgr_event_signal, K_FOREVER); in conn_mgr_handler() 221 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_resend_status() 236 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_ignore_iface() 252 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_watch_iface() 270 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_is_iface_ignored() 298 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_ignore_l2() 314 k_mutex_lock(&conn_mgr_lock, K_FOREVER); in conn_mgr_watch_l2()
|
D | conn_mgr_connectivity.c | 34 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_connect() 69 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_disconnect() 117 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_get_opt() 146 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_set_opt() 168 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_set_flag() 194 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_get_flag() 212 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_get_timeout() 229 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_if_set_timeout() 245 k_mutex_lock(binding->mutex, K_FOREVER); in conn_mgr_conn_init()
|
/Zephyr-Core-3.4.0/tests/kernel/sched/metairq/src/ |
D | main.c | 45 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.4.0/tests/kernel/events/sys_event/src/ |
D | main.c | 47 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.4.0/tests/kernel/mem_slab/mslab/src/ |
D | main.c | 65 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.4.0/tests/drivers/kscan/kscan_input/src/ |
D | main.c | 44 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.4.0/tests/kernel/stack/stack/src/ |
D | test_stack_contexts.c | 76 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.4.0/tests/kernel/timer/timer_error_case/src/ |
D | main.c | 55 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 89 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 123 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 157 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 191 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 224 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 257 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 293 k_thread_join(tid, K_FOREVER); in ZTEST_USER() 306 k_timeout_t timeout = K_FOREVER; in ZTEST_USER() 328 timeout = K_FOREVER; in ZTEST()
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/att/read_fill_buf/testlib/ |
D | connect.c | 27 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()
|