Home
last modified time | relevance | path

Searched refs:end_sema (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/tests/kernel/threads/thread_init/src/
Dmain.c14 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/
Dtest_sched_is_preempt_thread.c13 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/
Dtest_fifo_loop.c17 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()
Dtest_fifo_contexts.c21 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/
Dtest_lifo_loop.c17 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()
Dtest_lifo_contexts.c19 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/
Dtest_msgq_contexts.c23 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 …]
Dmain.c28 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/
Dtest_queue_loop.c19 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()
Dtest_queue_contexts.c32 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/
Dmain.c56 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/
Dmain.c65 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/
Dmain.c18 extern struct k_sem end_sema;
26 &kpipe, &end_sema, &tdata, &tstack, in pipe_api_setup()
Dtest_pipe_contexts.c34 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/
Dmain.c71 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/
Dtest_mbox_api.c37 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()