Lines Matching refs:base
60 int32_t b1 = thread_1->base.prio; in z_sched_prio_cmp()
61 int32_t b2 = thread_2->base.prio; in z_sched_prio_cmp()
75 uint32_t d1 = thread_1->base.prio_deadline; in z_sched_prio_cmp()
76 uint32_t d2 = thread_2->base.prio_deadline; in z_sched_prio_cmp()
93 int cpu, m = thread->base.cpu_mask; in thread_runq()
148 thread->base.thread_state |= _THREAD_QUEUED; in queue_thread()
162 thread->base.thread_state &= ~_THREAD_QUEUED; in dequeue_thread()
185 return (thread->base.thread_state & _THREAD_ABORTING) != 0U; in is_aborting()
191 return (thread->base.thread_state & in is_halting()
199 thread->base.thread_state &= ~(_THREAD_ABORTING | _THREAD_SUSPENDING); in clear_halting()
453 thread->base.thread_state |= (terminate ? _THREAD_ABORTING in z_thread_halt()
503 if ((thread->base.thread_state & _THREAD_SUSPENDED) != 0U) { in z_impl_k_thread_suspend()
571 thread->base.pended_on = wait_q; in add_to_waitq_locked()
605 if (thread->base.pended_on != NULL) { in z_unpend_thread_no_timeout()
614 bool killed = (thread->base.thread_state & in z_sched_wake_thread()
629 if (thread->base.pended_on != NULL) { in z_sched_wake_thread()
644 struct k_thread, base.timeout); in z_thread_timeout()
699 int old_prio = thread->base.prio; in z_thread_prio_set()
707 thread->base.prio = prio; in z_thread_prio_set()
721 thread->base.prio = prio; in z_thread_prio_set()
733 thread->base.prio = prio; in z_thread_prio_set()
801 __ASSERT(arch_current_thread()->base.sched_locked != 0U, ""); in k_sched_unlock()
804 ++arch_current_thread()->base.sched_locked; in k_sched_unlock()
809 arch_current_thread(), arch_current_thread()->base.sched_locked); in k_sched_unlock()
899 new_thread->base.cpu = cpu_id; in z_get_next_switch_handle()
923 if ((new_thread->base.cpu_mask != -1) && in z_get_next_switch_handle()
924 (old_thread->base.cpu_mask != BIT(cpu_id))) { in z_get_next_switch_handle()
990 (arch_current_thread()->base.sched_locked == 0U))) { in z_impl_k_thread_priority_set()
1002 K_OOPS(K_SYSCALL_VERIFY_MSG((int8_t)prio >= thread->base.prio, in z_vrfy_k_thread_priority_set()
1004 prio, thread->base.prio)); in z_vrfy_k_thread_priority_set()
1029 thread->base.prio_deadline = newdl; in z_impl_k_thread_deadline_set()
1032 thread->base.prio_deadline = newdl; in z_impl_k_thread_deadline_set()
1275 if ((thread->base.thread_state & new_state) == 0U) { in halt_thread()
1276 thread->base.thread_state |= new_state; in halt_thread()
1282 if (thread->base.pended_on != NULL) { in halt_thread()
1373 if ((thread->base.thread_state & _THREAD_DEAD) != 0U) { in z_thread_abort()
1388 __ASSERT_NO_MSG((thread->base.thread_state & _THREAD_DEAD) != 0); in z_impl_k_thread_abort()
1401 if ((thread->base.thread_state & _THREAD_DEAD) != 0U) { in z_impl_k_thread_join()
1407 (thread->base.pended_on == &arch_current_thread()->join_queue)) { in z_impl_k_thread_join()
1511 *data = arch_current_thread()->base.swap_data; in z_sched_wait()