/Zephyr-Core-3.6.0/scripts/coccinelle/ |
D | ms_timeout.cocci | 4 // Replace use of K_NO_WAIT and K_FOREVER in API that requires 9 // can't be converted to integers automatically. For K_NO_WAIT replace 43 identifier K_NO_WAIT =~ "^K_NO_WAIT$"; 49 K_NO_WAIT 69 identifier K_NO_WAIT =~ "^K_NO_WAIT$"; 74 - K_NO_WAIT 98 identifier K_NO_WAIT =~ "^K_NO_WAIT$"; 105 K_NO_WAIT 125 identifier K_NO_WAIT =~ "^K_NO_WAIT$"; 131 - K_NO_WAIT [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/zbus/unittests/src/ |
D | main.c | 165 isr_return = zbus_chan_pub(&aux2_chan, &ga, K_NO_WAIT); in isr_handler() 168 isr_return = zbus_chan_read(&aux2_chan, &ga, K_NO_WAIT); in isr_handler() 171 isr_return = zbus_chan_notify(&aux2_chan, K_NO_WAIT); in isr_handler() 174 isr_return = zbus_chan_claim(&aux2_chan, K_NO_WAIT); in isr_handler() 192 zbus_chan_claim(&go_busy_chan, K_NO_WAIT); in busy_callback() 214 zassert_equal(-EBUSY, zbus_chan_pub(&aux2_chan, &a, K_NO_WAIT), "It must not be invalid"); in wq_dh_cb() 216 zassert_equal(-EBUSY, zbus_chan_read(&aux2_chan, &a, K_NO_WAIT), "It must not be invalid"); in wq_dh_cb() 218 zassert_equal(-EBUSY, zbus_chan_notify(&aux2_chan, K_NO_WAIT), "It must not be invalid"); in wq_dh_cb() 250 zassert_equal(-EFAULT, zbus_chan_pub(NULL, &a, K_NO_WAIT), "It must be -EFAULT"); in ZTEST() 254 zassert_equal(-EFAULT, zbus_chan_pub(&aux2_chan, NULL, K_NO_WAIT), "It must be -EFAULT"); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/msgq/msgq_usage/src/ |
D | main.c | 60 k_msgq_put(pclient, services, K_NO_WAIT); in service_manager_entry() 94 NULL, pri, 0, K_NO_WAIT); in start_service_manager() 108 ret = k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service1_entry() 111 k_sem_take(&service_sema, K_NO_WAIT); in service1_entry() 117 k_msgq_put(client, service_data, K_NO_WAIT); in service1_entry() 125 k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service1_entry() 139 ret = k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service2_entry() 142 k_sem_take(&service_sema, K_NO_WAIT); in service2_entry() 148 k_msgq_put(client, service_data, K_NO_WAIT); in service2_entry() 156 k_msgq_put(&manager_q, service_data, K_NO_WAIT); in service2_entry() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/pipe/pipe_api/src/ |
D | test_pipe_contexts.c | 85 tpipe_put((struct k_pipe *)p1, K_NO_WAIT); in tThread_entry() 95 K_INHERIT_PERMS | K_USER, K_NO_WAIT); in tpipe_thread_thread() 97 tpipe_put(ppipe, K_NO_WAIT); in tpipe_thread_thread() 112 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in tpipe_kthread_to_kthread() 114 tpipe_put(ppipe, K_NO_WAIT); in tpipe_kthread_to_kthread() 133 &wt_byte, 1, K_NO_WAIT), NULL); in tpipe_put_no_wait() 229 NULL, K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in ZTEST() 331 zassert_true(k_heap_alloc(&test_pool, 64, K_NO_WAIT) != NULL); in ZTEST() 332 zassert_true(k_heap_alloc(&test_pool, 64, K_NO_WAIT) != NULL); in ZTEST() 359 ret = k_pipe_put(&kpipe, &rx_data[0], 1, &rd_byte, 24, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/mem_heap/k_heap_api/src/ |
D | test_kheap_api.c | 25 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, K_NO_WAIT); in tIsr_kheap_alloc_nowait() 37 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in thread_alloc_heap() 54 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in thread_alloc_heap_null() 90 char *p0 = k_heap_alloc(&tiny_heap, 1, K_NO_WAIT); in ZTEST() 91 char *p1 = k_heap_alloc(&tiny_heap, 1, K_NO_WAIT); in ZTEST() 207 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in ZTEST() 214 K_PRIO_PREEMPT(5), 0, K_NO_WAIT); in ZTEST() 244 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, K_NO_WAIT); in ZTEST() 245 char *q = (char *)k_heap_alloc(&k_heap_test, 512, K_NO_WAIT); in ZTEST() 253 K_PRIO_PREEMPT(5), 0, K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/futex/src/ |
D | main.c | 180 K_NO_WAIT); in ZTEST() 200 K_NO_WAIT); in ZTEST() 220 K_NO_WAIT); in ZTEST() 243 K_NO_WAIT); in ZTEST() 251 K_NO_WAIT); in ZTEST() 275 K_NO_WAIT); in ZTEST() 283 K_NO_WAIT); in ZTEST() 308 K_NO_WAIT); in ZTEST() 316 K_NO_WAIT); in ZTEST() 334 K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/poll/src/ |
D | test_poll_fail.c | 30 k_poll(&events, -1, K_NO_WAIT); in ZTEST_USER() 46 k_poll(NULL, 3, K_NO_WAIT); in ZTEST_USER() 68 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER() 90 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER() 112 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER() 134 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER()
|
D | test_poll.c | 103 zassert_equal(k_poll(events, INT_MAX, K_NO_WAIT), -EINVAL); in ZTEST_USER() 104 zassert_equal(k_poll(events, 4096, K_NO_WAIT), -ENOMEM); in ZTEST_USER() 107 zassert_equal(k_poll(events, 0, K_NO_WAIT), -EAGAIN); in ZTEST_USER() 114 zassert_equal(k_poll(bad_events, ARRAY_SIZE(bad_events), K_NO_WAIT), in ZTEST_USER() 123 zassert_equal(k_poll(bad_events2, ARRAY_SIZE(bad_events), K_NO_WAIT), in ZTEST_USER() 131 zassert_false(k_msgq_put(mq, msgq_msg, K_NO_WAIT)); in ZTEST_USER() 133 zassert_equal(k_poll(events, ARRAY_SIZE(events), K_NO_WAIT), 0, ""); in ZTEST_USER() 136 zassert_equal(k_sem_take(&no_wait_sem, K_NO_WAIT), 0, ""); in ZTEST_USER() 139 msg_ptr = k_fifo_get(&no_wait_fifo, K_NO_WAIT); in ZTEST_USER() 152 zassert_false(k_msgq_get(mq, msgq_recv_buf, K_NO_WAIT)); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/mem_protect/src/ |
D | kobject.c | 232 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 243 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 279 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 288 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 324 0, K_USER, K_NO_WAIT); in ZTEST() 359 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 412 0, K_USER, K_NO_WAIT); in ZTEST() 420 0, K_USER, K_NO_WAIT); in ZTEST() 463 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST() 472 0, K_USER, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/mutex/mutex_api/src/ |
D | test_mutex_apis.c | 38 zassert_true(k_mutex_lock((struct k_mutex *)p1, K_NO_WAIT) != 0); in tThread_entry_lock_no_wait() 64 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in tmutex_test_lock() 80 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in tmutex_test_lock_timeout() 97 zassert_true(k_mutex_lock(pmutex, K_NO_WAIT) == 0, in tmutex_test_lock_unlock() 265 zassert_true(k_mutex_lock(&tmutex, K_NO_WAIT) == 0, in ZTEST_USER() 269 zassert_true(k_mutex_lock(&tmutex, K_NO_WAIT) == 0, in ZTEST_USER() 277 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 322 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 336 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 352 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/timer/timepoints/src/ |
D | main.c | 15 timeout = K_NO_WAIT; in ZTEST() 19 zassert_true(K_TIMEOUT_EQ(remaining, K_NO_WAIT)); in ZTEST() 35 zassert_true(K_TIMEOUT_EQ(remaining, K_NO_WAIT)); in ZTEST() 42 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST() 52 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST() 72 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 148 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 174 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 181 PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 200 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 219 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 234 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 251 K_NO_WAIT); in ZTEST_USER() 259 K_NO_WAIT); in ZTEST_USER() 275 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST() 299 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.6.0/tests/arch/arm/arm_irq_vector_table/src/ |
D | arm_irq_vector_table.c | 109 zassert_true((k_sem_take(&sem[0], K_NO_WAIT) || in ZTEST() 110 k_sem_take(&sem[1], K_NO_WAIT) || in ZTEST() 111 k_sem_take(&sem[2], K_NO_WAIT)), NULL); in ZTEST() 125 zassert_false((k_sem_take(&sem[0], K_NO_WAIT) || in ZTEST() 126 k_sem_take(&sem[1], K_NO_WAIT) || in ZTEST() 127 k_sem_take(&sem[2], K_NO_WAIT)), NULL); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/kernel/sched/schedule_api/src/ |
D | user_api.c | 37 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 72 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 83 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 126 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 167 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 208 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 249 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 291 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 335 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 376 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
|
/Zephyr-Core-3.6.0/tests/net/net_pkt/src/ |
D | main.c | 114 pkt = net_pkt_alloc(K_NO_WAIT); in ZTEST() 125 pkt = net_pkt_alloc_on_iface(eth_if, K_NO_WAIT); in ZTEST() 142 AF_UNSPEC, 0, K_NO_WAIT); in ZTEST() 158 AF_UNSPEC, 0, K_NO_WAIT); in ZTEST() 174 IPPROTO_UDP, K_NO_WAIT); in ZTEST() 190 IPPROTO_UDP, K_NO_WAIT); in ZTEST() 208 AF_INET, 0, K_NO_WAIT); in ZTEST() 223 AF_PACKET, 0, K_NO_WAIT); in ZTEST() 247 AF_UNSPEC, 0, K_NO_WAIT); in ZTEST() 429 AF_INET, IPPROTO_UDP, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/lifo/lifo_usage/src/ |
D | main.c | 81 void *packet = k_lifo_get(&scratch_lifo_packets_lifo, K_NO_WAIT); in get_scratch_packet() 126 LIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in test_multiple_threads_pending() 181 !!k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in test_thread_timeout_reply_values() 227 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in ZTEST() 249 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in ZTEST() 285 packet = k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in ZTEST() 300 packet = k_lifo_get(&lifo_timeout[0], K_NO_WAIT); in ZTEST() 331 LIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in ZTEST() 347 LIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in ZTEST() 350 packet = k_lifo_get(&timeout_order_lifo, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_error_case/src/ |
D | main.c | 30 k_timer_start(NULL, K_MSEC(DURATION), K_NO_WAIT); in thread_timer_start_null() 57 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 95 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 133 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 171 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 209 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 246 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 283 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER() 323 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
|
/Zephyr-Core-3.6.0/tests/benchmarks/sys_kernel/src/ |
D | sema.c | 93 while (k_sem_take(&sem2, K_NO_WAIT) != 0) { in sema_thread3() 127 K_PRIO_COOP(3), 0, K_NO_WAIT); in sema_test() 130 K_PRIO_COOP(3), 0, K_NO_WAIT); in sema_test() 152 K_PRIO_COOP(3), 0, K_NO_WAIT); in sema_test() 155 K_PRIO_COOP(3), 0, K_NO_WAIT); in sema_test() 177 K_PRIO_COOP(3), 0, K_NO_WAIT); in sema_test()
|
D | mwfifo.c | 116 while ((pelement = k_fifo_get(&fifo2, K_NO_WAIT)) == NULL) { in fifo_thread3() 160 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test() 163 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test() 192 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test() 195 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test() 223 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test() 226 K_PRIO_COOP(3), 0, K_NO_WAIT); in fifo_test()
|
/Zephyr-Core-3.6.0/tests/kernel/queue/src/ |
D | test_queue_contexts.c | 72 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 78 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 83 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 88 rx_data = k_queue_get(pqueue, K_NO_WAIT); in tqueue_get() 116 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in tqueue_thread_thread() 222 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in tqueue_get_2threads() 226 K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in tqueue_get_2threads() 307 while (k_heap_alloc(&mem_pool_fail, 1, K_NO_WAIT) != NULL) { in ZTEST() 346 prio + 1, 0, K_NO_WAIT); in ZTEST() 351 prio + 2, 0, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/lib/newlib/thread_safety/src/ |
D | locks.c | 130 K_NO_WAIT); in ZTEST() 141 K_NO_WAIT); in ZTEST() 204 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 214 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 274 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 284 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 344 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 354 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 414 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST() 424 K_PRIO_PREEMPT(0), THREAD_OPT, K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/kernel/threads/thread_apis/src/ |
D | test_threads_cancel_abort.c | 47 NULL, NULL, NULL, 0, K_USER, K_NO_WAIT); in ZTEST_USER() 68 0, K_USER, K_NO_WAIT); in ZTEST_USER() 77 0, K_USER, K_NO_WAIT); in ZTEST_USER() 97 0, K_USER, K_NO_WAIT); in ZTEST() 198 NULL, NULL, NULL, 0, 0, K_NO_WAIT); in ZTEST() 243 NULL, NULL, NULL, 0, 0, K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.6.0/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_fail.c | 14 int ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail() 17 ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail() 20 ret = k_msgq_put(q, (void *)&data[1], K_NO_WAIT); in put_fail() 34 int ret = k_msgq_get(q, &rx_data, K_NO_WAIT); in get_fail()
|
D | test_msgq_contexts.c | 31 ret = k_msgq_put(pmsgq, (void *)&data[i], K_NO_WAIT); in put_msgq() 100 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in msgq_thread() 137 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in msgq_thread_overflow() 165 while (k_msgq_get(p1, &rx_buf[i], K_NO_WAIT) != 0) { in thread_entry_get_data() 182 while (k_msgq_put(pmsgq, &data[0], K_NO_WAIT) != 0) { in msgq_thread_data_passing() 187 NULL, K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in msgq_thread_data_passing() 191 NULL, K_PRIO_PREEMPT(1), 0, K_NO_WAIT); in msgq_thread_data_passing() 210 ret = k_msgq_get(p1, rx_buf, K_NO_WAIT); in get_empty_entry() 231 ret = k_msgq_put(p1, &data[1], K_NO_WAIT); in put_full_entry() 404 NULL, pri, 0, K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/fifo/fifo_timeout/src/ |
D | main.c | 90 void *packet = k_fifo_get(&scratch_fifo_packets_fifo, K_NO_WAIT); in get_scratch_packet() 148 FIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in test_multiple_threads_pending() 223 K_PRIO_PREEMPT(0), K_INHERIT_PERMS, K_NO_WAIT); in test_multiple_threads_get_data() 229 K_PRIO_PREEMPT(0), K_INHERIT_PERMS, K_NO_WAIT); in test_multiple_threads_get_data() 276 !!k_fifo_get(&fifo_timeout[0], K_NO_WAIT); in test_thread_timeout_reply_values() 315 packet = k_fifo_get(&fifo_timeout[0], K_NO_WAIT); in ZTEST() 330 packet = k_fifo_get(&fifo_timeout[0], K_NO_WAIT); in ZTEST() 370 FIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in ZTEST() 386 FIFO_THREAD_PRIO, K_INHERIT_PERMS, K_NO_WAIT); in ZTEST() 389 packet = k_fifo_get(&timeout_order_fifo, K_NO_WAIT); in ZTEST() [all …]
|