/Zephyr-latest/tests/benchmarks/thread_metric/src/ |
D | tm_cooperative_scheduling_test.c | 54 void tm_cooperative_thread_0_entry(void *p1, void *p2, void *p3); 55 void tm_cooperative_thread_1_entry(void *p1, void *p2, void *p3); 56 void tm_cooperative_thread_2_entry(void *p1, void *p2, void *p3); 57 void tm_cooperative_thread_3_entry(void *p1, void *p2, void *p3); 58 void tm_cooperative_thread_4_entry(void *p1, void *p2, void *p3); 102 void tm_cooperative_thread_0_entry(void *p1, void *p2, void *p3) in tm_cooperative_thread_0_entry() argument 104 (void)p1; in tm_cooperative_thread_0_entry() 119 void tm_cooperative_thread_1_entry(void *p1, void *p2, void *p3) in tm_cooperative_thread_1_entry() argument 121 (void)p1; in tm_cooperative_thread_1_entry() 136 void tm_cooperative_thread_2_entry(void *p1, void *p2, void *p3) in tm_cooperative_thread_2_entry() argument [all …]
|
D | tm_preemptive_scheduling_test.c | 54 void tm_preemptive_thread_0_entry(void *p1, void *p2, void *p3); 55 void tm_preemptive_thread_1_entry(void *p1, void *p2, void *p3); 56 void tm_preemptive_thread_2_entry(void *p1, void *p2, void *p3); 57 void tm_preemptive_thread_3_entry(void *p1, void *p2, void *p3); 58 void tm_preemptive_thread_4_entry(void *p1, void *p2, void *p3); 106 void tm_preemptive_thread_0_entry(void *p1, void *p2, void *p3) in tm_preemptive_thread_0_entry() argument 108 (void)p1; in tm_preemptive_thread_0_entry() 127 void tm_preemptive_thread_1_entry(void *p1, void *p2, void *p3) in tm_preemptive_thread_1_entry() argument 129 (void)p1; in tm_preemptive_thread_1_entry() 152 void tm_preemptive_thread_2_entry(void *p1, void *p2, void *p3) in tm_preemptive_thread_2_entry() argument [all …]
|
D | tm_interrupt_preemption_processing_test.c | 53 void tm_interrupt_preemption_thread_0_entry(void *p1, void *p2, void *p3); 54 void tm_interrupt_preemption_thread_1_entry(void *p1, void *p2, void *p3); 100 void tm_interrupt_preemption_thread_0_entry(void *p1, void *p2, void *p3) in tm_interrupt_preemption_thread_0_entry() argument 103 (void)p1; in tm_interrupt_preemption_thread_0_entry() 121 void tm_interrupt_preemption_thread_1_entry(void *p1, void *p2, void *p3) in tm_interrupt_preemption_thread_1_entry() argument 124 (void)p1; in tm_interrupt_preemption_thread_1_entry()
|
D | tm_message_processing_test.c | 52 void tm_message_processing_thread_0_entry(void *p1, void *p2, void *p3); 91 void tm_message_processing_thread_0_entry(void *p1, void *p2, void *p3) in tm_message_processing_thread_0_entry() argument 93 (void)p1; in tm_message_processing_thread_0_entry()
|
/Zephyr-latest/tests/lib/heap/src/ |
D | main.c | 296 void *p1, *p2, *p3; in ZTEST() local 307 p1 = sys_heap_alloc(&heap, 64); in ZTEST() 308 realloc_fill_block(p1, 64); in ZTEST() 309 p2 = sys_heap_realloc(&heap, p1, 128); in ZTEST() 312 zassert_true(p1 == p2, in ZTEST() 314 p1, p2); in ZTEST() 315 zassert_true(realloc_check_block(p2, p1, 64), "data changed"); in ZTEST() 320 p1 = sys_heap_alloc(&heap, 64); in ZTEST() 321 realloc_fill_block(p1, 64); in ZTEST() 324 p3 = sys_heap_realloc(&heap, p1, 128); in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/mutex/mutex_api/src/ |
D | test_mutex_apis.c | 38 static void tThread_entry_lock_forever(void *p1, void *p2, void *p3) in tThread_entry_lock_forever() argument 40 zassert_false(k_mutex_lock((struct k_mutex *)p1, K_FOREVER) == 0, in tThread_entry_lock_forever() 45 static void tThread_entry_lock_no_wait(void *p1, void *p2, void *p3) in tThread_entry_lock_no_wait() argument 47 zassert_true(k_mutex_lock((struct k_mutex *)p1, K_NO_WAIT) != 0); in tThread_entry_lock_no_wait() 51 static void tThread_entry_lock_timeout_fail(void *p1, void *p2, void *p3) in tThread_entry_lock_timeout_fail() argument 53 zassert_true(k_mutex_lock((struct k_mutex *)p1, in tThread_entry_lock_timeout_fail() 58 static void tThread_entry_lock_timeout_pass(void *p1, void *p2, void *p3) in tThread_entry_lock_timeout_pass() argument 60 zassert_true(k_mutex_lock((struct k_mutex *)p1, in tThread_entry_lock_timeout_pass() 63 k_mutex_unlock((struct k_mutex *)p1); in tThread_entry_lock_timeout_pass() 114 static void tThread_T1_priority_inheritance(void *p1, void *p2, void *p3) in tThread_T1_priority_inheritance() argument [all …]
|
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | user_api.c | 22 static void sleepy_thread(void *p1, void *p2, void *p3) in sleepy_thread() argument 24 ARG_UNUSED(p1); in sleepy_thread() 45 static void preempt_test_thread(void *p1, void *p2, void *p3) in preempt_test_thread() argument 47 ARG_UNUSED(p1); in preempt_test_thread() 97 static void thread_suspend_init_null(void *p1, void *p2, void *p3) in thread_suspend_init_null() argument 99 ARG_UNUSED(p1); in thread_suspend_init_null() 138 static void thread_resume_init_null(void *p1, void *p2, void *p3) in thread_resume_init_null() argument 140 ARG_UNUSED(p1); in thread_resume_init_null() 179 static void thread_priority_get_init_null(void *p1, void *p2, void *p3) in thread_priority_get_init_null() argument 181 ARG_UNUSED(p1); in thread_priority_get_init_null() [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | deref_null.cocci | 22 position p1; 25 (E != NULL && ...) ? <+...E->f@p1...+> : ... 44 position p1; 47 if@p1 ((E == NULL && ...) || ...) S1 else S2 58 position p!={pr1.p1,pr2.p2}; 59 position ifm.p1; 62 if@p1 ((E == NULL && ...) || ...) 93 p1 << ifm.p1; 103 p1 << ifm.p1; 119 position p!={pr1.p1,pr2.p2}; [all …]
|
D | mini_lock.cocci | 19 position p1,p; 24 irq_lock@p1 26 k_mutex_lock@p1 28 k_sem_take@p1 30 k_spin_lock@p1 40 position p1 != prelocked.p1; 58 unlock@p1(E1,...) 65 position up != prelocked.p1; 85 p << prelocked.p1; 95 p << prelocked.p1;
|
D | returnvar.cocci | 43 position p1, p2; 45 T ret@p1 = C; 51 p1 << r1.p1; 56 coccilib.report.print_report(p1[0], "Unneeded variable: \"" + ret + 61 p1 << r1.p1; 66 cocci.print_main("unneeded \"" + ret + "\" variable", p1)
|
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/ |
D | main.c | 23 static void thread_timer_start_null(void *p1, void *p2, void *p3) in thread_timer_start_null() argument 25 ARG_UNUSED(p1); in thread_timer_start_null() 62 static void thread_timer_stop_null(void *p1, void *p2, void *p3) in thread_timer_stop_null() argument 64 ARG_UNUSED(p1); in thread_timer_stop_null() 100 static void thread_timer_status_get_null(void *p1, void *p2, void *p3) in thread_timer_status_get_null() argument 102 ARG_UNUSED(p1); in thread_timer_status_get_null() 138 static void thread_timer_status_sync_null(void *p1, void *p2, void *p3) in thread_timer_status_sync_null() argument 140 ARG_UNUSED(p1); in thread_timer_status_sync_null() 176 static void thread_timer_remaining_ticks_null(void *p1, void *p2, void *p3) in thread_timer_remaining_ticks_null() argument 178 ARG_UNUSED(p1); in thread_timer_remaining_ticks_null() [all …]
|
/Zephyr-latest/tests/integration/kernel/src/ |
D | main.c | 36 static void thread_entry_fn_fifo(void *p1, void *p2, void *p3) in thread_entry_fn_fifo() argument 43 rx_data = k_fifo_get((struct k_fifo *)p1, K_NO_WAIT); in thread_entry_fn_fifo() 50 k_fifo_put((struct k_fifo *)p1, &fifo_data[i]); in thread_entry_fn_fifo() 105 static void thread_entry_fn_lifo(void *p1, void *p2, void *p3) in thread_entry_fn_lifo() argument 112 rx_data = k_lifo_get((struct k_lifo *)p1, K_NO_WAIT); in thread_entry_fn_lifo() 119 k_lifo_put((struct k_lifo *)p1, &lifo_data[i]); in thread_entry_fn_lifo() 174 static void thread_entry_fn_stack(void *p1, void *p2, void *p3) in thread_entry_fn_stack() argument 186 k_stack_pop((struct k_stack *)p1, (stack_data_t *)&rx_data, K_NO_WAIT); in thread_entry_fn_stack() 195 k_stack_push((struct k_stack *)p1, (stack_data_t)&stack_data[i]); in thread_entry_fn_stack() 254 static void thread_entry_fn_mutex(void *p1, void *p2, void *p3) in thread_entry_fn_mutex() argument [all …]
|
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_contexts.c | 87 static void thread_entry(void *p1, void *p2, void *p3) in thread_entry() argument 89 get_msgq((struct k_msgq *)p1); in thread_entry() 108 static void thread_entry_overflow(void *p1, void *p2, void *p3) in thread_entry_overflow() argument 114 ret = k_msgq_get(p1, &rx_buf[0], K_FOREVER); in thread_entry_overflow() 118 ret = k_msgq_get(p1, &rx_buf[1], K_FOREVER); in thread_entry_overflow() 160 static void thread_entry_get_data(void *p1, void *p2, void *p3) in thread_entry_get_data() argument 165 while (k_msgq_get(p1, &rx_buf[i], K_NO_WAIT) != 0) { in thread_entry_get_data() 172 static void pend_thread_entry(void *p1, void *p2, void *p3) in pend_thread_entry() argument 176 ret = k_msgq_put(p1, &data[1], TIMEOUT); in pend_thread_entry() 201 static void get_empty_entry(void *p1, void *p2, void *p3) in get_empty_entry() argument [all …]
|
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/ |
D | kobject.c | 28 static void kobject_access_grant_user_part(void *p1, void *p2, void *p3) in kobject_access_grant_user_part() argument 137 static void syscall_invalid_kobject_user_part(void *p1, void *p2, void *p3) in syscall_invalid_kobject_user_part() argument 171 static void thread_without_kobject_permission_user_part(void *p1, void *p2, in thread_without_kobject_permission_user_part() argument 202 static void kobject_revoke_access_user_part(void *p1, void *p2, void *p3) in kobject_revoke_access_user_part() argument 205 if ((uintptr_t)p1 == 1U) { in kobject_revoke_access_user_part() 249 static void kobject_grant_access_child_entry(void *p1, void *p2, void *p3) in kobject_grant_access_child_entry() argument 255 static void kobject_grant_access_extra_entry(void *p1, void *p2, void *p3) in kobject_grant_access_extra_entry() argument 293 static void grant_access_kobj_invalid_child(void *p1, void *p2, void *p3) in grant_access_kobj_invalid_child() argument 330 static void release_from_user_child(void *p1, void *p2, void *p3) in release_from_user_child() argument 382 static void access_all_grant_child_give(void *p1, void *p2, void *p3) in access_all_grant_child_give() argument [all …]
|
/Zephyr-latest/tests/kernel/mutex/sys_mutex/src/ |
D | thread_competition.c | 33 static void low_prio_wait_for_mutex(void *p1, void *p2, void *p3) in low_prio_wait_for_mutex() argument 35 struct sys_mutex *pmutex = p1; in low_prio_wait_for_mutex() 48 static void high_prio_t1_wait_for_mutex(void *p1, void *p2, void *p3) in high_prio_t1_wait_for_mutex() argument 50 struct sys_mutex *pmutex = p1; in high_prio_t1_wait_for_mutex() 63 static void high_prio_t2_wait_for_mutex(void *p1, void *p2, void *p3) in high_prio_t2_wait_for_mutex() argument 65 struct sys_mutex *pmutex = p1; in high_prio_t2_wait_for_mutex()
|
D | main.c | 103 void thread_05(void *p1, void *p2, void *p3) in thread_05() argument 105 ARG_UNUSED(p1); in thread_05() 129 void thread_06(void *p1, void *p2, void *p3) in thread_06() argument 131 ARG_UNUSED(p1); in thread_06() 164 void thread_07(void *p1, void *p2, void *p3) in thread_07() argument 166 ARG_UNUSED(p1); in thread_07() 197 void thread_08(void *p1, void *p2, void *p3) in thread_08() argument 199 ARG_UNUSED(p1); in thread_08() 224 void thread_09(void *p1, void *p2, void *p3) in thread_09() argument 226 ARG_UNUSED(p1); in thread_09() [all …]
|
/Zephyr-latest/tests/benchmarks/footprints/src/ |
D | system_thread.c | 22 void test_thread_entry(void *p, void *p1, void *p2) in test_thread_entry() argument 29 void thread_swap(void *p1, void *p2, void *p3) in thread_swap() argument 34 void thread_suspend(void *p1, void *p2, void *p3) in thread_suspend() argument 39 void thread_yield0(void *p1, void *p2, void *p3) in thread_yield0() argument 51 void thread_yield1(void *p1, void *p2, void *p3) in thread_yield1() argument
|
D | userspace.c | 53 void test_drop_to_user_mode_1(void *p1, void *p2, void *p3) in test_drop_to_user_mode_1() argument 60 void drop_to_user_mode_thread(void *p1, void *p2, void *p3) in drop_to_user_mode_thread() argument 85 void syscall_overhead_user_thread(void *p1, void *p2, void *p3) in syscall_overhead_user_thread() argument 100 void validation_overhead_user_thread(void *p1, void *p2, void *p3) in validation_overhead_user_thread() argument
|
/Zephyr-latest/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 58 void condvar_wait_task(void *p1, void *p2, void *p3) in condvar_wait_task() argument 61 k_ticks_t time_val = *(int *)p1; in condvar_wait_task() 91 void condvar_wake_task(void *p1, void *p2, void *p3) in condvar_wake_task() argument 100 void condvar_wake_multiple(void *p1, void *p2, void *p3) in condvar_wake_multiple() argument 103 int woken_num = *(int *)p1; in condvar_wake_multiple() 110 void condvar_wait_wake_task(void *p1, void *p2, void *p3) in condvar_wait_wake_task() argument 113 int time_val = *(int *)p1; in condvar_wait_wake_task() 320 void condvar_multiple_wait_wake_task(void *p1, void *p2, void *p3) in condvar_multiple_wait_wake_task() argument 323 int time_val = *(int *)p1; in condvar_multiple_wait_wake_task() 338 void condvar_multiple_wake_task(void *p1, void *p2, void *p3) in condvar_multiple_wake_task() argument [all …]
|
/Zephyr-latest/tests/lib/newlib/thread_safety/src/ |
D | locks.c | 82 static void retargetable_lock_mutex_thread_acq(void *p1, void *p2, void *p3) in retargetable_lock_mutex_thread_acq() argument 84 _LOCK_T lock = p1; in retargetable_lock_mutex_thread_acq() 95 static void retargetable_lock_mutex_thread_rel(void *p1, void *p2, void *p3) in retargetable_lock_mutex_thread_rel() argument 97 _LOCK_T lock = p1; in retargetable_lock_mutex_thread_rel() 149 static void sinit_lock_thread_acq(void *p1, void *p2, void *p3) in sinit_lock_thread_acq() argument 166 static void sinit_lock_thread_rel(void *p1, void *p2, void *p3) in sinit_lock_thread_rel() argument 219 static void sfp_lock_thread_acq(void *p1, void *p2, void *p3) in sfp_lock_thread_acq() argument 236 static void sfp_lock_thread_rel(void *p1, void *p2, void *p3) in sfp_lock_thread_rel() argument 289 static void malloc_lock_thread_lock(void *p1, void *p2, void *p3) in malloc_lock_thread_lock() argument 306 static void malloc_lock_thread_unlock(void *p1, void *p2, void *p3) in malloc_lock_thread_unlock() argument [all …]
|
/Zephyr-latest/tests/kernel/lifo/lifo_usage/src/ |
D | main.c | 23 void test_thread_pend_and_timeout(void *p1, void *p2, void *p3); 92 static void thread_entry_nowait(void *p1, void *p2, void *p3) in thread_entry_nowait() argument 96 ret = k_lifo_get((struct k_lifo *)p1, K_FOREVER); in thread_entry_nowait() 101 ret = k_lifo_get((struct k_lifo *)p1, K_FOREVER); in thread_entry_nowait() 148 static void thread_entry_wait(void *p1, void *p2, void *p3) in thread_entry_wait() argument 150 k_lifo_put((struct k_lifo *)p1, (void *)&lifo_data[0]); in thread_entry_wait() 152 k_lifo_put((struct k_lifo *)p1, (void *)&lifo_data[1]); in thread_entry_wait() 176 static void test_thread_timeout_reply_values(void *p1, void *p2, void *p3) in test_thread_timeout_reply_values() argument 178 struct reply_packet *reply_packet = (struct reply_packet *)p1; in test_thread_timeout_reply_values() 189 static void test_thread_timeout_reply_values_wfe(void *p1, void *p2, void *p3) in test_thread_timeout_reply_values_wfe() argument [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | test_threads_spawn.c | 17 static void thread_entry_params(void *p1, void *p2, void *p3) in thread_entry_params() argument 20 zassert_equal(p1, tp1); in thread_entry_params() 25 static void thread_entry_priority(void *p1, void *p2, void *p3) in thread_entry_priority() argument 31 static void thread_entry_delay(void *p1, void *p2, void *p3) in thread_entry_delay() argument 161 static void user_start_thread(void *p1, void *p2, void *p3) in user_start_thread() argument 163 *(int *)p1 = 100; in user_start_thread()
|
D | test_essential_thread.c | 24 static void thread_entry(void *p1, void *p2, void *p3) in thread_entry() argument 26 ARG_UNUSED(p1); in thread_entry() 74 static void abort_thread_entry(void *p1, void *p2, void *p3) in abort_thread_entry() argument 76 ARG_UNUSED(p1); in abort_thread_entry()
|
/Zephyr-latest/samples/userspace/shared_mem/src/ |
D | main.h | 23 void enc(void *p1, void *p2, void *p3); 24 void pt(void *p1, void *p2, void *p3); 25 void ct(void *p1, void *p2, void *p3);
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | main.c | 100 static void thread_entry_fn_single(void *p1, void *p2, void *p3) in thread_entry_fn_single() argument 107 k_stack_pop((struct k_stack *)p1, &tmp[i - 1], K_NO_WAIT); in thread_entry_fn_single() 114 k_stack_push((struct k_stack *)p1, data2[i]); in thread_entry_fn_single() 121 static void thread_entry_fn_dual(void *p1, void *p2, void *p3) in thread_entry_fn_dual() argument 131 k_stack_push(p1, data1[i]); in thread_entry_fn_dual() 138 static void thread_entry_fn_isr(void *p1, void *p2, void *p3) in thread_entry_fn_isr() argument 146 irq_offload(tIsr_entry_push, (const void *)p1); in thread_entry_fn_isr() 255 void thread_entry_wait(void *p1, void *p2, void *p3) in thread_entry_wait() argument 259 k_stack_push(p1, *(txdata + 2)); in thread_entry_wait() 260 k_stack_push(p1, *(txdata + 3)); in thread_entry_wait()
|