Lines Matching refs:th
19 static void set_prio(struct k_thread *th, struct k_p4wq_work *item) in set_prio() argument
21 __ASSERT_NO_MSG(!IS_ENABLED(CONFIG_SMP) || !z_is_thread_queued(th)); in set_prio()
22 th->base.prio = item->priority; in set_prio()
23 th->base.prio_deadline = item->deadline; in set_prio()
42 static void thread_set_requeued(struct k_thread *th) in thread_set_requeued() argument
44 th->base.user_options |= K_CALLBACK_STATE; in thread_set_requeued()
47 static void thread_clear_requeued(struct k_thread *th) in thread_clear_requeued() argument
49 th->base.user_options &= ~K_CALLBACK_STATE; in thread_clear_requeued()
52 static bool thread_was_requeued(struct k_thread *th) in thread_was_requeued() argument
54 return !!(th->base.user_options & K_CALLBACK_STATE); in thread_was_requeued()
275 struct k_thread *th = z_unpend_first_thread(&queue->waitq); in k_p4wq_submit() local
277 if (th == NULL) { in k_p4wq_submit()
282 set_prio(th, item); in k_p4wq_submit()
283 z_ready_thread(th); in k_p4wq_submit()