/Zephyr-latest/tests/kernel/threads/thread_init/src/ |
D | main.c | 14 K_SEM_DEFINE(end_sema, 0, 1); 44 &preem_start_sema, &static_coop_start_sema, &coop_start_sema, &end_sema); 46 &preem_start_sema, &static_coop_start_sema, &coop_start_sema, &end_sema); 82 k_sem_give(&end_sema); in thread_entry() 106 k_sem_reset(&end_sema); in ZTEST_USER() 111 k_sem_take(&end_sema, K_FOREVER); in ZTEST_USER() 130 k_sem_reset(&end_sema); in ZTEST_USER() 135 k_sem_take(&end_sema, K_FOREVER); in ZTEST_USER() 163 k_sem_reset(&end_sema); in ZTEST_USER() 168 k_sem_take(&end_sema, K_FOREVER); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | test_sched_is_preempt_thread.c | 13 static struct k_sem end_sema; variable 34 k_sem_give(&end_sema); in tpreempt_ctx() 50 k_sem_give(&end_sema); in tcoop_ctx() 70 k_sem_init(&end_sema, 0, 1); in ZTEST() 76 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 83 k_sem_take(&end_sema, K_FOREVER); in ZTEST()
|
/Zephyr-latest/tests/kernel/fifo/fifo_api/src/ |
D | test_fifo_loop.c | 17 static struct k_sem end_sema; variable 52 k_sem_give(&end_sema); in tThread_entry() 55 k_sem_give(&end_sema); in tThread_entry() 61 k_sem_init(&end_sema, 0, 1); in tfifo_read_write() 70 k_sem_take(&end_sema, K_FOREVER); in tfifo_read_write() 71 k_sem_take(&end_sema, K_FOREVER); in tfifo_read_write()
|
D | test_fifo_contexts.c | 21 static struct k_sem end_sema; variable 84 k_sem_give(&end_sema); in tThread_entry() 89 k_sem_init(&end_sema, 0, 1); in tfifo_thread_thread() 95 k_sem_take(&end_sema, K_FOREVER); in tfifo_thread_thread() 101 k_sem_init(&end_sema, 0, 1); in tfifo_thread_isr() 109 k_sem_init(&end_sema, 0, 1); in tfifo_isr_thread()
|
/Zephyr-latest/tests/kernel/lifo/lifo_api/src/ |
D | test_lifo_loop.c | 17 static struct k_sem end_sema; variable 52 k_sem_give(&end_sema); in tThread_entry() 55 k_sem_give(&end_sema); in tThread_entry() 61 k_sem_init(&end_sema, 0, 1); in tlifo_read_write() 70 k_sem_take(&end_sema, K_FOREVER); in tlifo_read_write() 71 k_sem_take(&end_sema, K_FOREVER); in tlifo_read_write()
|
D | test_lifo_contexts.c | 19 static struct k_sem end_sema; variable 55 k_sem_give(&end_sema); in tThread_entry() 60 k_sem_init(&end_sema, 0, 1); in tlifo_thread_thread() 66 k_sem_take(&end_sema, K_FOREVER); in tlifo_thread_thread() 72 k_sem_init(&end_sema, 0, 1); in tlifo_thread_isr() 80 k_sem_init(&end_sema, 0, 1); in tlifo_isr_thread()
|
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_contexts.c | 23 struct k_sem end_sema; variable 90 k_sem_give(&end_sema); in thread_entry() 101 k_sem_take(&end_sema, K_FOREVER); in msgq_thread() 122 k_sem_give(&end_sema); in thread_entry_overflow() 143 k_sem_take(&end_sema, K_FOREVER); in msgq_thread_overflow() 169 k_sem_give(&end_sema); in thread_entry_get_data() 193 k_sem_take(&end_sema, K_FOREVER); in msgq_thread_data_passing() 217 k_sem_give(&end_sema); in get_empty_entry() 238 k_sem_give(&end_sema); in put_full_entry() 259 ret = k_sem_init(&end_sema, 0, 1); in ZTEST() [all …]
|
D | main.c | 28 extern struct k_sem end_sema; 34 k_thread_access_grant(k_current_get(), &kmsgq, &msgq, &end_sema, in msgq_api_setup()
|
/Zephyr-latest/tests/kernel/queue/src/ |
D | test_queue_loop.c | 19 static struct k_sem end_sema; variable 79 k_sem_give(&end_sema); in tThread_entry() 81 k_sem_give(&end_sema); in tThread_entry() 87 k_sem_init(&end_sema, 0, 1); in tqueue_read_write() 95 k_sem_take(&end_sema, K_FOREVER); in tqueue_read_write() 96 k_sem_take(&end_sema, K_FOREVER); in tqueue_read_write()
|
D | test_queue_contexts.c | 32 static struct k_sem end_sema; variable 107 k_sem_give(&end_sema); in tThread_entry() 112 k_sem_init(&end_sema, 0, 1); in tqueue_thread_thread() 118 k_sem_take(&end_sema, K_FOREVER); in tqueue_thread_thread() 124 k_sem_init(&end_sema, 0, 1); in tqueue_thread_isr() 132 k_sem_init(&end_sema, 0, 1); in tqueue_isr_thread() 214 k_sem_give(&end_sema); in tThread_get() 219 k_sem_init(&end_sema, 0, 1); in tqueue_get_2threads() 234 k_sem_take(&end_sema, K_FOREVER); in tqueue_get_2threads() 235 k_sem_take(&end_sema, K_FOREVER); in tqueue_get_2threads()
|
/Zephyr-latest/tests/kernel/fifo/fifo_usage/src/ |
D | main.c | 56 static struct k_sem end_sema; variable 100 k_sem_give(&end_sema); in thread_entry_fn_single() 127 k_sem_give(&end_sema); in thread_entry_fn_isr() 150 k_sem_init(&end_sema, 0, 1); in ZTEST() 162 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 218 k_sem_init(&end_sema, 0, 1); in ZTEST() 229 k_sem_take(&end_sema, K_FOREVER); in ZTEST()
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | main.c | 65 static struct k_sem end_sema; variable 73 extern struct k_sem end_sema; 118 k_sem_give(&end_sema); in thread_entry_fn_single() 149 k_sem_give(&end_sema); in thread_entry_fn_isr() 167 k_sem_init(&end_sema, 0, 1); in ZTEST_USER() 180 k_sem_take(&end_sema, K_FOREVER); in ZTEST_USER() 230 k_sem_init(&end_sema, 0, 1); in ZTEST() 242 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 315 &end_sema, &threadstack, &kstack, &stack, &thread_data1, in stack_setup()
|
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | main.c | 18 extern struct k_sem end_sema; 26 &kpipe, &end_sema, &tdata, &tstack, in pipe_api_setup()
|
D | test_pipe_contexts.c | 34 K_SEM_DEFINE(end_sema, 0, 1); 83 k_sem_give(&end_sema); in tThread_entry() 86 k_sem_give(&end_sema); in tThread_entry() 98 k_sem_take(&end_sema, K_FOREVER); in tpipe_thread_thread() 100 k_sem_take(&end_sema, K_FOREVER); in tpipe_thread_thread() 115 k_sem_take(&end_sema, K_FOREVER); in tpipe_kthread_to_kthread() 117 k_sem_take(&end_sema, K_FOREVER); in tpipe_kthread_to_kthread() 240 k_sem_give(&end_sema); in thread_handler() 447 k_sem_take(&end_sema, K_FOREVER); in ZTEST()
|
/Zephyr-latest/tests/boards/native_sim/cpu_wait/src/ |
D | main.c | 71 K_SEM_DEFINE(end_sema, 0, 1); 96 k_sem_give(&end_sema); in thread_entry() 132 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 150 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 170 k_sem_take(&end_sema, K_FOREVER); in ZTEST() 190 k_sem_take(&end_sema, K_FOREVER); in ZTEST()
|
/Zephyr-latest/tests/kernel/mbox/mbox_api/src/ |
D | test_mbox_api.c | 37 static struct k_sem end_sema, sync_sema; variable 398 k_sem_give(&end_sema); in tmbox_entry() 404 k_sem_reset(&end_sema); in tmbox() 414 k_sem_take(&end_sema, K_FOREVER); in tmbox() 580 k_sem_init(&end_sema, 0, 1); in setup_mbox_api()
|