/Zephyr-latest/tests/kernel/mem_protect/sys_sem/src/ |
D | main.c | 74 int32_t ret_value; in sem_take_multiple_low_prio_helper() local 76 ret_value = sys_sem_take(&low_prio_sem, K_FOREVER); in sem_take_multiple_low_prio_helper() 77 zassert_true(ret_value == 0, "sys_sem_take failed"); in sem_take_multiple_low_prio_helper() 79 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_take_multiple_low_prio_helper() 80 zassert_true(ret_value == 0, "sys_sem_take failed"); in sem_take_multiple_low_prio_helper() 87 int32_t ret_value; in sem_take_multiple_mid_prio_helper() local 89 ret_value = sys_sem_take(&mid_prio_sem, K_FOREVER); in sem_take_multiple_mid_prio_helper() 90 zassert_true(ret_value == 0, "sys_sem_take failed"); in sem_take_multiple_mid_prio_helper() 92 ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER); in sem_take_multiple_mid_prio_helper() 93 zassert_true(ret_value == 0, "sys_sem_take failed"); in sem_take_multiple_mid_prio_helper() [all …]
|
/Zephyr-latest/tests/kernel/mem_protect/futex/src/ |
D | main.c | 65 int32_t ret_value; in futex_wait_task() local 71 ret_value = k_futex_wait(&simple_futex, in futex_wait_task() 76 zassert_true(ret_value == 0, in futex_wait_task() 78 zassert_false(ret_value == 0, in futex_wait_task() 82 zassert_true(ret_value == -ETIMEDOUT, in futex_wait_task() 87 zassert_true(ret_value == -ETIMEDOUT, in futex_wait_task() 96 int32_t ret_value; in futex_wake_task() local 99 ret_value = k_futex_wake(&simple_futex, in futex_wake_task() 101 zassert_true(ret_value == woken_num, in futex_wake_task() 107 int32_t ret_value; in futex_wait_wake_task() local [all …]
|
/Zephyr-latest/tests/kernel/mem_slab/mslab/src/ |
D | main.c | 211 int ret_value; /* task_mem_map_xxx interface return value */ in ZTEST() local 244 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(20)); in ZTEST() 245 zassert_equal(-EAGAIN, ret_value, in ZTEST() 246 "Failed k_mem_slab_alloc, retValue %d\n", ret_value); in ZTEST() 250 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(50)); in ZTEST() 251 zassert_equal(0, ret_value, in ZTEST() 252 "Failed k_mem_slab_alloc, ret_value %d\n", ret_value); in ZTEST() 259 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_FOREVER); in ZTEST() 260 zassert_equal(0, ret_value, in ZTEST() 261 "Failed k_mem_slab_alloc, ret_value %d\n", ret_value); in ZTEST()
|
/Zephyr-latest/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 60 int32_t ret_value; in condvar_wait_task() local 68 ret_value = k_condvar_wait(&simple_condvar, &test_mutex, K_TICKS(time_val)); in condvar_wait_task() 72 zassert_true(ret_value == 0, in condvar_wait_task() 74 zassert_false(ret_value == 0, in condvar_wait_task() 78 zassert_true(ret_value == -EAGAIN, in condvar_wait_task() 82 zassert_true(ret_value == -EAGAIN, in condvar_wait_task() 83 "k_condvar_wait failed.: %d", ret_value); in condvar_wait_task() 93 int32_t ret_value; in condvar_wake_task() local 95 ret_value = k_condvar_signal(&simple_condvar); in condvar_wake_task() 96 zassert_equal(ret_value, 0, in condvar_wake_task() [all …]
|
/Zephyr-latest/lib/os/ |
D | sem.c | 125 int ret_value = 0; in sys_sem_take() local 127 ret_value = k_sem_take(&sem->kernel_sem, timeout); in sys_sem_take() 128 if ((ret_value == -EAGAIN) || (ret_value == -EBUSY)) { in sys_sem_take() 129 ret_value = -ETIMEDOUT; in sys_sem_take() 132 return ret_value; in sys_sem_take()
|
/Zephyr-latest/tests/kernel/mem_slab/mslab_api/src/ |
D | test_mslab_api.c | 310 int ret_value; in ZTEST() local 321 ret_value = k_mem_slab_alloc(&kmslab, &b, K_MSEC(20)); in ZTEST() 322 zassert_equal(-EAGAIN, ret_value, in ZTEST() 323 "Failed k_mem_slab_alloc, retValue %d\n", ret_value); in ZTEST() 329 ret_value = k_mem_slab_alloc(&kmslab, &b, K_FOREVER); in ZTEST() 330 zassert_equal(0, ret_value, in ZTEST() 331 "Failed k_mem_slab_alloc, ret_value %d\n", ret_value); in ZTEST()
|
/Zephyr-latest/tests/kernel/semaphore/semaphore/src/ |
D | main.c | 335 int32_t ret_value; in ZTEST_USER() local 348 ret_value = k_sem_take(&simple_sem, K_FOREVER); in ZTEST_USER() 349 zassert_true(ret_value == -EAGAIN, "k_sem_take not aborted: %d", in ZTEST_USER() 350 ret_value); in ZTEST_USER()
|
/Zephyr-latest/lib/acpi/ |
D | acpi.c | 195 void **ret_value) in dev_resource_enum_callback() argument
|