Lines Matching refs:prio
22 #define Z_VALID_PRIO(prio, entry_point) \ argument
23 (((prio) == K_IDLE_PRIO && z_is_idle_thread_entry(entry_point)) || \
26 && (prio) >= K_HIGHEST_APPLICATION_THREAD_PRIO \
27 && (prio) <= K_LOWEST_APPLICATION_THREAD_PRIO))
29 #define Z_ASSERT_VALID_PRIO(prio, entry_point) do { \ argument
30 __ASSERT(Z_VALID_PRIO((prio), (entry_point)), \
32 (prio), \
37 #define Z_VALID_PRIO(prio, entry_point) ((prio) == -1) argument
38 #define Z_ASSERT_VALID_PRIO(prio, entry_point) __ASSERT((prio) == -1, "") argument
56 void z_thread_priority_set(struct k_thread *thread, int prio);
57 bool z_set_prio(struct k_thread *thread, int prio);
183 static inline bool z_is_under_prio_ceiling(int prio) in z_is_under_prio_ceiling() argument
185 return prio >= CONFIG_PRIORITY_CEILING; in z_is_under_prio_ceiling()
188 static inline int z_get_new_prio_with_ceiling(int prio) in z_get_new_prio_with_ceiling() argument
190 return z_is_under_prio_ceiling(prio) ? prio : CONFIG_PRIORITY_CEILING; in z_get_new_prio_with_ceiling()
213 static inline bool z_is_prio_higher(int prio, int test_prio) in z_is_prio_higher() argument
215 return z_is_prio1_higher_than_prio2(prio, test_prio); in z_is_prio_higher()
225 static inline bool _is_valid_prio(int prio, void *entry_point) in _is_valid_prio() argument
227 if (prio == K_IDLE_PRIO && z_is_idle_thread_entry(entry_point)) { in _is_valid_prio()
231 if (!z_is_prio_higher_or_equal(prio, in _is_valid_prio()
236 if (!z_is_prio_lower_or_equal(prio, in _is_valid_prio()