/Zephyr-latest/tests/subsys/input/double_tap/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() 50 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 52 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST() 62 input_report_key(fake_dev, INPUT_KEY_1, 1, true, K_FOREVER); in ZTEST() 64 input_report_key(fake_dev, INPUT_KEY_1, 0, true, K_FOREVER); in ZTEST() [all …]
|
/Zephyr-latest/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-latest/tests/bluetooth/common/testlib/src/ |
D | conn_wait.c | 28 k_mutex_lock(&conn_wait_mutex, K_FOREVER); in on_change() 35 k_mutex_lock(&conn_wait_mutex, K_FOREVER); in on_conn_recycled() 61 k_mutex_lock(&conn_wait_mutex, K_FOREVER); in bt_testlib_wait_connected() 63 k_condvar_wait(&something_changed, &conn_wait_mutex, K_FOREVER); in bt_testlib_wait_connected() 72 k_mutex_lock(&conn_wait_mutex, K_FOREVER); in bt_testlib_wait_disconnected() 74 k_condvar_wait(&something_changed, &conn_wait_mutex, K_FOREVER); in bt_testlib_wait_disconnected() 93 k_mutex_lock(&conn_wait_mutex, K_FOREVER); in bt_testlib_conn_wait_free() 105 k_condvar_wait(&conn_recycled, &conn_wait_mutex, K_FOREVER); in bt_testlib_conn_wait_free()
|
/Zephyr-latest/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-latest/tests/subsys/input/api/src/ |
D | main.c | 24 k_sem_take(&cb_start, K_FOREVER); in input_cb_filtered() 56 k_sem_take(&cb_start, K_FOREVER); in ZTEST() 57 k_sem_take(&cb_done, K_FOREVER); in ZTEST() 62 ret = input_report_key(&fake_dev, i, 1, false, K_FOREVER); in ZTEST() 69 ret = input_report_key(NULL, 0, 1, false, K_FOREVER); in ZTEST() 81 k_sem_take(&cb_done, K_FOREVER); in ZTEST() 110 ret = input_report_key(&fake_dev, 0, 1, false, K_FOREVER); in ZTEST() 113 ret = input_report_key(NULL, 0, 1, false, K_FOREVER); in ZTEST() 132 ret = input_report_key(&fake_dev, INPUT_KEY_A, 1, false, K_FOREVER); in ZTEST() 140 ret = input_report_key(&fake_dev, INPUT_KEY_B, 1234, true, K_FOREVER); in ZTEST() [all …]
|
/Zephyr-latest/tests/benchmarks/app_kernel/src/ |
D | receiver.c | 39 k_sem_take(&STARTRCV, K_FOREVER); in recvtask() 42 k_sem_take(&STARTRCV, K_FOREVER); in recvtask() 46 k_sem_take(&STARTRCV, K_FOREVER); in recvtask() 50 k_sem_take(&STARTRCV, K_FOREVER); in recvtask()
|
D | msgq_b.c | 24 k_msgq_put(&DEMOQX1, data_bench, K_FOREVER); in message_queue_test() 33 k_msgq_get(&DEMOQX1, data_bench, K_FOREVER); in message_queue_test() 43 k_msgq_put(&DEMOQX4, data_bench, K_FOREVER); in message_queue_test() 53 k_msgq_get(&DEMOQX4, data_bench, K_FOREVER); in message_queue_test() 63 k_msgq_put(&DEMOQX192, data_bench, K_FOREVER); in message_queue_test() 73 k_msgq_get(&DEMOQX192, data_bench, K_FOREVER); in message_queue_test() 85 k_msgq_put(&DEMOQX1, data_bench, K_FOREVER); in message_queue_test() 96 k_msgq_put(&DEMOQX4, data_bench, K_FOREVER); in message_queue_test() 107 k_msgq_put(&DEMOQX192, data_bench, K_FOREVER); in message_queue_test()
|
D | master.c | 161 priority, 0, K_FOREVER); in main() 166 5, 0, K_FOREVER); in main() 171 k_thread_join(&test_thread, K_FOREVER); in main() 181 priority, 0, K_FOREVER); in main() 186 5, K_USER, K_FOREVER); in main() 196 k_thread_join(&test_thread, K_FOREVER); in main() 205 priority, K_USER, K_FOREVER); in main() 210 5, 0, K_FOREVER); in main() 220 k_thread_join(&test_thread, K_FOREVER); in main() 229 priority, K_USER, K_FOREVER); in main() [all …]
|
D | msgq_r.c | 24 k_msgq_get(&DEMOQX1, buffer, K_FOREVER); in dequtask() 28 k_msgq_get(&DEMOQX4, buffer, K_FOREVER); in dequtask() 32 k_msgq_get(&DEMOQX192, buffer, K_FOREVER); in dequtask()
|
/Zephyr-latest/tests/subsys/input/longpress/src/ |
D | main.c | 52 input_report_key(fake_dev, INPUT_KEY_3, 1, true, K_FOREVER); in ZTEST() 53 input_report_key(fake_dev, INPUT_KEY_3, 0, true, K_FOREVER); in ZTEST() 56 input_report_abs(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 57 input_report_abs(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST() 62 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 64 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST() 75 input_report_key(fake_dev, INPUT_KEY_1, 1, true, K_FOREVER); in ZTEST() 77 input_report_key(fake_dev, INPUT_KEY_1, 0, true, K_FOREVER); in ZTEST() 88 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST() 90 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | test_threads_set_priority.c | 47 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test() 52 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test() 57 k_sem_take(&sem_thread2, K_FOREVER); in thread2_set_prio_test() 105 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() 113 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() 121 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() 126 k_thread_join(thread2_id, K_FOREVER); in ZTEST() 178 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() 187 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() 196 k_sem_take(&sem_thread1, K_FOREVER); in ZTEST() [all …]
|
/Zephyr-latest/tests/benchmarks/sys_kernel/ |
D | README.txt | 21 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-latest/tests/kernel/semaphore/semaphore/src/ |
D | main.c | 105 zassert_false(k_sem_take((struct k_sem *)p1, K_FOREVER)); in sem_reset_take_task() 121 expect_k_sem_take_nomsg(psem, K_FOREVER, 0); in tsema_thread_thread() 124 k_thread_join(tid, K_FOREVER); in tsema_thread_thread() 132 expect_k_sem_take_nomsg(psem, K_FOREVER, 0); in tsema_thread_isr() 160 expect_k_sem_take_nomsg(&low_prio_sem, K_FOREVER, 0); in sem_take_multiple_low_prio_helper() 161 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_low_prio_helper() 168 expect_k_sem_take_nomsg(&mid_prio_sem, K_FOREVER, 0); in sem_take_multiple_mid_prio_helper() 169 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_mid_prio_helper() 177 expect_k_sem_take_nomsg(&high_prio_sem, K_FOREVER, 0); in sem_take_multiple_high_prio_helper() 178 expect_k_sem_take_nomsg(&multiple_thread_sem, K_FOREVER, 0); in sem_take_multiple_high_prio_helper() [all …]
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | events.c | 49 k_sem_take(&pause_sem, K_FOREVER); in event_ops_entry() 63 k_sem_take(&pause_sem, K_FOREVER); in event_ops_entry() 69 k_event_wait(&event_set, BENCH_EVENT_SET, false, K_FOREVER); in event_ops_entry() 77 k_sem_take(&pause_sem, K_FOREVER); in event_ops_entry() 83 k_event_wait_all(&event_set, BENCH_EVENT_SET, false, K_FOREVER); in event_ops_entry() 115 k_thread_join(&alt_thread, K_FOREVER); in start_thread_entry() 132 k_event_wait(&event_set, BENCH_EVENT_SET, true, K_FOREVER); in alt_thread_entry() 148 k_event_wait_all(&event_set, BENCH_EVENT_SET, true, K_FOREVER); in alt_thread_entry() 162 k_sem_take(&pause_sem, K_FOREVER); in alt_thread_entry() 165 k_sem_take(&pause_sem, K_FOREVER); in alt_thread_entry() [all …]
|
D | condvar.c | 29 k_mutex_lock(&mutex, K_FOREVER); in start_thread_entry() 37 k_condvar_wait(&condvar, &mutex, K_FOREVER); in start_thread_entry() 49 k_thread_join(&alt_thread, K_FOREVER); in start_thread_entry() 52 k_sem_take(&pause_sem, K_FOREVER); in start_thread_entry() 88 priority - 2, start_options, K_FOREVER); in condvar_blocking_ops() 95 priority - 1, alt_options, K_FOREVER); in condvar_blocking_ops() 128 k_thread_join(&start_thread, K_FOREVER); in condvar_blocking_ops()
|
D | sema_test_signal_release.c | 73 k_sem_take(&sem, K_FOREVER); in start_thread_entry() 84 k_sem_take(&sem, K_FOREVER); in start_thread_entry() 94 k_thread_join(&alt_thread, K_FOREVER); in start_thread_entry() 100 k_sem_take(&sem, K_FOREVER); in start_thread_entry() 121 priority - 2, start_options, K_FOREVER); in sema_context_switch() 127 priority - 1, alt_options, K_FOREVER); in sema_context_switch() 169 k_thread_join(&start_thread, K_FOREVER); in sema_context_switch() 220 k_sem_take(&sem, K_FOREVER); in immediate_give_take() 254 priority - 1, options, K_FOREVER); in sema_test_signal() 278 k_thread_join(&start_thread, K_FOREVER); in sema_test_signal()
|
/Zephyr-latest/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-latest/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-latest/drivers/input/ |
D | input_sdl_touch.c | 20 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-latest/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-latest/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-latest/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-latest/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()
|