Home
last modified time | relevance | path

Searched refs:z_prio (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.6.0/tests/posix/common/src/
Dpthread.c221 int zephyr_to_posix_priority(int z_prio, int *policy);
230 for (int z_prio = -CONFIG_NUM_COOP_PRIORITIES, prio = CONFIG_NUM_COOP_PRIORITIES - 1, in ZTEST() local
232 z_prio <= -1; z_prio++, prio--) { in ZTEST()
233 p_prio = zephyr_to_posix_priority(z_prio, &policy); in ZTEST()
236 zassert_equal(z_prio, posix_to_zephyr_priority(p_prio, SCHED_FIFO)); in ZTEST()
244 for (int z_prio = 0, prio = CONFIG_NUM_PREEMPT_PRIORITIES - 1, p_prio, policy; in ZTEST() local
245 z_prio < CONFIG_NUM_PREEMPT_PRIORITIES; z_prio++, prio--) { in ZTEST()
246 p_prio = zephyr_to_posix_priority(z_prio, &policy); in ZTEST()
249 zassert_equal(z_prio, posix_to_zephyr_priority(p_prio, SCHED_RR)); in ZTEST()
/Zephyr-Core-3.6.0/subsys/portability/cmsis_rtos_v1/
Dcmsis_thread.c20 static inline int32_t zephyr_to_cmsis_priority(uint32_t z_prio) in zephyr_to_cmsis_priority() argument
22 return(osPriorityRealtime - z_prio); in zephyr_to_cmsis_priority()
/Zephyr-Core-3.6.0/lib/posix/options/
Dpthread.c266 int zephyr_to_posix_priority(int z_prio, int *policy) in zephyr_to_posix_priority() argument
270 if (z_prio < 0) { in zephyr_to_posix_priority()
271 __ASSERT_NO_MSG(-z_prio <= CONFIG_NUM_COOP_PRIORITIES); in zephyr_to_posix_priority()
273 __ASSERT_NO_MSG(z_prio < CONFIG_NUM_PREEMPT_PRIORITIES); in zephyr_to_posix_priority()
276 *policy = (z_prio < 0) ? SCHED_FIFO : SCHED_RR; in zephyr_to_posix_priority()
277 priority = ZEPHYR_TO_POSIX_PRIORITY(z_prio); in zephyr_to_posix_priority()
/Zephyr-Core-3.6.0/subsys/portability/cmsis_rtos_v2/
Dthread.c45 static inline uint32_t zephyr_to_cmsis_priority(uint32_t z_prio) in zephyr_to_cmsis_priority() argument
47 return (osPriorityISR - z_prio); in zephyr_to_cmsis_priority()