Lines Matching refs:Prcb
155 PKPRCB Prcb = KeGetCurrentPrcb(); in KiIdleLoop() local
168 if ((Prcb->DpcData[0].DpcQueueDepth) || in KiIdleLoop()
169 (Prcb->TimerRequest) || in KiIdleLoop()
170 (Prcb->DeferredReadyListHead.Next)) in KiIdleLoop()
176 KiRetireDpcList(Prcb); in KiIdleLoop()
180 if (Prcb->NextThread) in KiIdleLoop()
186 OldThread = Prcb->CurrentThread; in KiIdleLoop()
187 NewThread = Prcb->NextThread; in KiIdleLoop()
190 Prcb->NextThread = NULL; in KiIdleLoop()
191 Prcb->CurrentThread = NewThread; in KiIdleLoop()
212 Prcb->PowerState.IdleFunction(&Prcb->PowerState); in KiIdleLoop()
228 NewThread = Pcr->Prcb.CurrentThread; in KiSwapContextExit()
244 if (Pcr->Prcb.DpcRoutineActive) in KiSwapContextExit()
282 Pcr->Prcb.KeContextSwitches++; in KiSwapContextEntry()
294 NewThread = Pcr->Prcb.CurrentThread; in KiSwapContextEntry()
308 PKPRCB Prcb = &Pcr->Prcb; in KiDispatchInterrupt() local
315 if ((Prcb->DpcData[0].DpcQueueDepth) || in KiDispatchInterrupt()
316 (Prcb->TimerRequest) || in KiDispatchInterrupt()
317 (Prcb->DeferredReadyListHead.Next)) in KiDispatchInterrupt()
322 KiRetireDpcList(Prcb); in KiDispatchInterrupt()
329 if (Prcb->QuantumEnd) in KiDispatchInterrupt()
332 Prcb->QuantumEnd = FALSE; in KiDispatchInterrupt()
335 else if (Prcb->NextThread) in KiDispatchInterrupt()
338 KiAcquirePrcbLock(Prcb); in KiDispatchInterrupt()
341 OldThread = Prcb->CurrentThread; in KiDispatchInterrupt()
342 NewThread = Prcb->NextThread; in KiDispatchInterrupt()
345 Prcb->NextThread = NULL; in KiDispatchInterrupt()
346 Prcb->CurrentThread = NewThread; in KiDispatchInterrupt()
353 KxQueueReadyThread(OldThread, Prcb); in KiDispatchInterrupt()