Lines Matching refs:reason
938 thread->reason = AST_NONE;
2066 ast_t reason)
2131 self->reason = reason;
2150 self->reason, (uintptr_t)thread_tid(thread), self->sched_pri, thread->sched_pri, 0);
2159 SCHED_STATS_CSW(processor, self->reason, self->sched_pri, thread->sched_pri);
2187 self->reason, (uintptr_t)thread_tid(thread), self->sched_pri, thread->sched_pri, 0);
2218 self->reason, (uintptr_t)thread_tid(thread), self->sched_pri, thread->sched_pri, 0);
2244 self->reason = reason;
2264 self->reason, (uintptr_t)thread_tid(thread), self->sched_pri, thread->sched_pri, 0);
2273 SCHED_STATS_CSW(processor, self->reason, self->sched_pri, thread->sched_pri);
2340 if ((thread->reason & AST_LEDGER) == 0)
2369 thread->reason |= AST_QUANTUM;
2379 thread->reason |= AST_QUANTUM;
2389 if ((thread->reason & (AST_HANDOFF|AST_QUANTUM)) == AST_HANDOFF) {
2391 thread->reason |= AST_QUANTUM;
2401 if (thread->reason & AST_QUANTUM)
2404 if (thread->reason & AST_PREEMPT)
2409 thread->reason = AST_NONE;
2522 ast_t reason)
2533 if (!(reason & AST_PREEMPT))
2539 if (reason & AST_YIELD)
2551 reason, VM_KERNEL_UNSLIDE(continuation), 0, 0, 0);
2558 } while (!thread_invoke(self, new_thread, reason));