ReactOS 0.4.15-dev-8614-gbc76250
|
#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _POWER_STATE_TRAVERSE_CONTEXT |
Macros | |
#define | NDEBUG |
Typedefs | |
typedef struct _POWER_STATE_TRAVERSE_CONTEXT | POWER_STATE_TRAVERSE_CONTEXT |
typedef struct _POWER_STATE_TRAVERSE_CONTEXT * | PPOWER_STATE_TRAVERSE_CONTEXT |
Variables | |
PDEVICE_NODE | PopSystemPowerDeviceNode = NULL |
BOOLEAN | PopAcpiPresent = FALSE |
POP_POWER_ACTION | PopAction |
WORK_QUEUE_ITEM | PopShutdownWorkItem |
SYSTEM_POWER_CAPABILITIES | PopCapabilities |
static WORKER_THREAD_ROUTINE | PopPassivePowerCall |
static IO_COMPLETION_ROUTINE | PopRequestPowerIrpCompletion |
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 52 of file power.c.
Definition at line 925 of file power.c.
Referenced by GetDevicePowerState().
NTSTATUS NTAPI NtInitiatePowerAction | ( | IN POWER_ACTION | SystemAction, |
IN SYSTEM_POWER_STATE | MinSystemState, | ||
IN ULONG | Flags, | ||
IN BOOLEAN | Asynchronous | ||
) |
Definition at line 778 of file power.c.
Referenced by SetSystemPowerState(), ShutDown_Hibernate(), and ShutDown_StandBy().
Definition at line 934 of file power.c.
Referenced by IsSystemResumeAutomatic().
NTSTATUS NTAPI NtPowerInformation | ( | IN POWER_INFORMATION_LEVEL | PowerInformationLevel, |
IN PVOID InputBuffer | OPTIONAL, | ||
IN ULONG | InputBufferLength, | ||
OUT PVOID OutputBuffer | OPTIONAL, | ||
IN ULONG | OutputBufferLength | ||
) |
Definition at line 792 of file power.c.
Referenced by CallNtPowerInformation(), get_processor_currentclockspeed(), get_processor_maxclockspeed(), GetPwrCapabilities(), GetSystemPowerStatus(), InitFunctionPtrs(), IsPwrHibernateAllowed(), IsPwrShutdownAllowed(), IsPwrSuspendAllowed(), and ValidatePowerPolicies().
NTSTATUS NTAPI NtRequestWakeupLatency | ( | IN LATENCY_TIME | Latency | ) |
Definition at line 942 of file power.c.
Referenced by RequestWakeupLatency().
NTSTATUS NTAPI NtSetSystemPowerState | ( | IN POWER_ACTION | SystemAction, |
IN SYSTEM_POWER_STATE | MinSystemState, | ||
IN ULONG | Flags | ||
) |
Definition at line 1007 of file power.c.
Referenced by NtShutdownSystem(), ShutDown_Hibernate(), and ShutDown_StandBy().
NTSTATUS NTAPI NtSetThreadExecutionState | ( | IN EXECUTION_STATE | esFlags, |
OUT EXECUTION_STATE * | PreviousFlags | ||
) |
Definition at line 950 of file power.c.
Referenced by SetThreadExecutionState().
Definition at line 510 of file power.c.
Referenced by KiInitializeKernel(), and KiSystemStartupBootStack().
Definition at line 397 of file power.c.
Referenced by Phase1InitializationDiscard().
VOID NTAPI PopCleanupPowerState | ( | IN PPOWER_STATE | PowerState | ) |
Definition at line 164 of file power.c.
Referenced by PspExitProcess(), and PspExitThread().
VOID FASTCALL PopIdle0 | ( | IN PPROCESSOR_POWER_STATE | PowerState | ) |
Definition at line 501 of file power.c.
Referenced by PoInitializePrcb().
|
static |
Definition at line 38 of file power.c.
VOID NTAPI PopPerfIdle | ( | PPROCESSOR_POWER_STATE | PowerState | ) |
Definition at line 483 of file power.c.
Referenced by PopPerfIdleDpc().
VOID NTAPI PopPerfIdleDpc | ( | IN PKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 490 of file power.c.
Referenced by PoInitializePrcb().
NTSTATUS PopQuerySystemPowerStateTraverse | ( | PDEVICE_NODE | DeviceNode, |
PVOID | Context | ||
) |
Definition at line 254 of file power.c.
Referenced by PopSetSystemPowerState().
|
static |
Definition at line 132 of file power.c.
NTSTATUS PopSendQuerySystemPowerState | ( | PDEVICE_OBJECT | DeviceObject, |
SYSTEM_POWER_STATE | SystemState, | ||
POWER_ACTION | PowerAction | ||
) |
Definition at line 170 of file power.c.
Referenced by PopQuerySystemPowerStateTraverse().
NTSTATUS PopSendSetSystemPowerState | ( | PDEVICE_OBJECT | DeviceObject, |
SYSTEM_POWER_STATE | SystemState, | ||
POWER_ACTION | PowerAction | ||
) |
Definition at line 212 of file power.c.
Referenced by PopSetSystemPowerState(), and PopSetSystemPowerStateTraverse().
NTSTATUS NTAPI PopSetSystemPowerState | ( | SYSTEM_POWER_STATE | PowerState, |
POWER_ACTION | PowerAction | ||
) |
Definition at line 332 of file power.c.
Referenced by PopShutdownSystem().
NTSTATUS PopSetSystemPowerStateTraverse | ( | PDEVICE_NODE | DeviceNode, |
PVOID | Context | ||
) |
Definition at line 288 of file power.c.
Referenced by PopSetSystemPowerState().
PULONG NTAPI PoRegisterDeviceForIdleDetection | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN ULONG | ConservationIdleTime, | ||
IN ULONG | PerformanceIdleTime, | ||
IN DEVICE_POWER_STATE | State | ||
) |
NTSTATUS NTAPI PoRegisterDeviceNotify | ( | OUT PVOID | Unknown0, |
IN ULONG | Unknown1, | ||
IN ULONG | Unknown2, | ||
IN ULONG | Unknown3, | ||
IN PVOID | Unknown4, | ||
IN PVOID | Unknown5 | ||
) |
NTSTATUS NTAPI PoRequestPowerIrp | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ UCHAR | MinorFunction, | ||
_In_ POWER_STATE | PowerState, | ||
_In_opt_ PREQUEST_POWER_COMPLETE | CompletionFunction, | ||
_In_opt_ __drv_aliasesMem PVOID | Context, | ||
_Outptr_opt_ PIRP * | pIrp | ||
) |
Definition at line 659 of file power.c.
Referenced by CmBattPnpDispatch(), CmBattWaitWakeLoop(), IdleNotificationCallback(), IdleNotificationRequestComplete(), IssueWaitWake(), PcRequestNewPowerState(), PortClsPower(), SendDeviceIrp(), TestPoRequestPowerIrp(), USBH_FdoIdleNotificationCallback(), USBH_FdoPower(), USBH_FdoSubmitWaitWakeIrp(), USBH_FdoWWIrpIoCompletion(), USBH_HubSetD0(), and WaitWakeCallback().
VOID NTAPI PoSetHiberRange | ( | IN PVOID | HiberContext, |
IN ULONG | Flags, | ||
IN OUT PVOID | StartPage, | ||
IN ULONG | Length, | ||
IN ULONG | PageTag | ||
) |
POWER_STATE NTAPI PoSetPowerState | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN POWER_STATE_TYPE | Type, | ||
IN POWER_STATE | State | ||
) |
Definition at line 729 of file power.c.
Referenced by Bus_PDO_PnP(), Bus_PDO_Power(), Bus_StartFdo(), ClasspDeviceLockFailurePowerIrpCompletion(), ClasspPowerDownCompletion(), ClasspPowerHandler(), ClasspPowerUpCompletion(), FinishDevPoDnIrp(), FreeBT_AddDevice(), KbdHid_AddDevice(), MouHid_AddDevice(), PciPdoIrpStartDevice(), PcmciaPower(), PortClsPnp(), PortClsPower(), SetDeviceFunctional(), and MxDeviceObject::SetPowerState().
VOID NTAPI PoSetSystemState | ( | IN EXECUTION_STATE | Flags | ) |
VOID NTAPI PoShutdownBugCheck | ( | IN BOOLEAN | LogError, |
IN ULONG | BugCheckCode, | ||
IN ULONG_PTR | BugCheckParameter1, | ||
IN ULONG_PTR | BugCheckParameter2, | ||
IN ULONG_PTR | BugCheckParameter3, | ||
IN ULONG_PTR | BugCheckParameter4 | ||
) |
Definition at line 559 of file power.c.
Definition at line 758 of file power.c.
Referenced by _Dispatch_type_(), Bus_FDO_Power(), Bus_PDO_Power(), CancelWaitWake(), ClassDispatchPower(), ClassDispatchUnimplemented(), ClassMinimalPowerHandler(), ClasspDeviceLockFailurePowerIrpCompletion(), ClassPower(), ClasspPowerDownCompletion(), ClasspPowerHandler(), ClasspPowerUpCompletion(), ClasspStartNextPowerIrpCompletion(), CmBattPowerDispatch(), CompBattPowerDispatch(), DevPoCompletionRoutine(), FdcPower(), FDO_Dispatch(), FdoPower(), FdoPowerControl(), FinishDevPoDnIrp(), FinishDevPoUpIrp(), FreeBT_DispatchPower(), GreenPower(), HalpDispatchPower(), HandleDeviceQueryPower(), HandleDeviceSetPower(), HandleSystemQueryPower(), HDA_Power(), HidClass_Power(), HidPower(), i8042Power(), InPortPower(), IntVideoPortDispatchPower(), KbdHid_Power(), KsDefaultDispatchPower(), MouHid_Power(), NdisIPower(), PartMgrPower(), PciDispatchIrp(), PciIdeXFdoDispatchPower(), PciIdeXPdoDispatchPower(), PciPassIrpFromFdoToPdo(), PDO_HandlePower(), PdoPower(), PdoPowerControl(), PnpRootPowerControl(), PortClsPower(), ProcessorPower(), PwrCompletionFunction(), RamdiskPower(), RequestedPowerIrpHandler(), ScsiPortDispatchPower(), SendDeviceIrp(), SerialPower(), SetDeviceFunctional(), SwDispatchPower(), SysPoCompletionRoutine(), USBH_CompletePowerIrp(), USBH_FdoDeferPoRequestCompletion(), USBH_FdoPower(), USBH_FdoWWIrpIoCompletion(), USBH_HubCancelWakeIrp(), USBH_PdoPower(), USBH_PowerIrpCompletion(), USBPORT_FdoPower(), USBPORT_PdoPower(), USBSTOR_DispatchPower(), and WaitWakeCompletionRoutine().
Definition at line 26 of file power.c.
Referenced by PoInitSystem(), and PopSetSystemPowerState().
POP_POWER_ACTION PopAction |
Definition at line 27 of file power.c.
Referenced by NtSetSystemPowerState(), and PopGracefulShutdown().
SYSTEM_POWER_CAPABILITIES PopCapabilities |
Definition at line 29 of file power.c.
Referenced by NtPowerInformation(), PoInitSystem(), and PopAddRemoveSysCapsCallback().
|
static |
Definition at line 33 of file power.c.
Referenced by _IRQL_requires_max_().
|
static |
Definition at line 127 of file power.c.
Referenced by PoRequestPowerIrp().
WORK_QUEUE_ITEM PopShutdownWorkItem |
Definition at line 28 of file power.c.
Referenced by NtSetSystemPowerState().
PDEVICE_NODE PopSystemPowerDeviceNode = NULL |
Definition at line 25 of file power.c.
Referenced by IopGetSystemPowerDeviceObject(), and PiCallDriverAddDevice().