31#if defined(EVENT_TRACING)
33#include "PdoPower.tmh"
104 Irp->GetParameterPowerState());
128 Mx::MxLowerIrql(
irql);
164 "Received set device power irp 0x%p on WDFDEVICE 0x%p !devobj 0x%p, "
165 "but the irp was not requested by the device (the power policy owner)",
170 ASSERTMSG(
"Received set device power irp but the irp was not "
171 "requested by the device (the power policy owner)\n",
227 This->PowerPolicyIsWakeEnabled()) {
230 Irp->GetParameterPowerStateSystemState()
454 settings->IncrementChildrenArmedForWakeCount();
487 settings->DecrementChildrenArmedForWakeCount();
struct mke2fs_defaults settings[]
WDFDEVICE __inline GetHandle(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
CfxDevice * m_ParentDevice
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
FxPowerDeviceEnableWakeAtBus m_DeviceEnableWakeAtBus
_Must_inspect_result_ NTSTATUS DispatchDeviceSetPower(__in FxIrp *Irp)
VOID PowerNotifyParentChildWakeDisarmed(VOID)
virtual VOID PowerParentPowerDereference(VOID)
virtual VOID PowerReleasePendingDeviceIrp(__in BOOLEAN IrpMustBePresent=TRUE)
FxPowerDeviceDisableWakeAtBus m_DeviceDisableWakeAtBus
virtual WDF_DEVICE_POWER_STATE PowerCheckDeviceTypeNPOverload(VOID)
_Must_inspect_result_ NTSTATUS DispatchSystemSetPower(__in FxIrp *Irp)
VOID PowerNotifyParentChildWakeArmed(VOID)
virtual _Must_inspect_result_ NTSTATUS PowerEnableWakeAtBusOverload(VOID)
virtual VOID PowerDisableWakeAtBusOverload(VOID)
BOOLEAN m_EnableWakeAtBusInvoked
static _Must_inspect_result_ NTSTATUS _DispatchSetPower(__inout FxPkgPnp *This, __in FxIrp *Irp)
virtual _Must_inspect_result_ NTSTATUS PowerCheckParentOverload(__in BOOLEAN *ParentOn)
static _Must_inspect_result_ NTSTATUS _DispatchQueryPower(__inout FxPkgPnp *This, __in FxIrp *Irp)
virtual WDF_DEVICE_POWER_STATE PowerCheckDeviceTypeOverload(VOID)
static _Must_inspect_result_ NTSTATUS _DispatchPowerSequence(__inout FxPkgPnp *This, __in FxIrp *Irp)
VOID SetPendingDevicePowerIrp(__inout FxIrp *Irp)
VOID PowerProcessEvent(__in FxPowerEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
VOID PowerPolicyChildPoweredDown(VOID)
MdIrp ClearPendingDevicePowerIrp(VOID)
_Must_inspect_result_ NTSTATUS PowerPolicyHandleSystemQueryPower(__in SYSTEM_POWER_STATE QueryState)
_Must_inspect_result_ NTSTATUS PowerPolicyCanChildPowerUp(__out PBOOLEAN PowerUp)
VOID SetPendingSystemPowerIrp(__inout FxIrp *Irp)
NTSTATUS CompletePowerRequest(__inout FxIrp *Irp, __in NTSTATUS Status)
FxPowerPolicyMachine m_PowerPolicyMachine
VOID PowerPolicyProcessEvent(__in FxPowerPolicyEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
VOID Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in SYSTEM_POWER_STATE PowerState)
POWER_STATE SetPowerState(__in POWER_STATE_TYPE Type, __in POWER_STATE State)
#define NT_SUCCESS(StatCode)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
MxDeviceObject deviceObject
#define _Must_inspect_result_
#define ASSERTMSG(msg, exp)
#define UNREFERENCED_PARAMETER(P)
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
#define STATUS_NOT_SUPPORTED
#define TRACE_LEVEL_ERROR
FxPowerPolicyOwnerSettings * m_Owner
BOOLEAN m_RequestedPowerUpIrp
BOOLEAN m_RequestedPowerDownIrp
_In_ PWDFDEVICE_INIT _In_ BOOLEAN IsPowerPolicyOwner
enum _WDF_DEVICE_POWER_STATE WDF_DEVICE_POWER_STATE
@ WdfDevStatePowerCheckParentStateNP
@ WdfDevStatePowerCheckParentState
_In_ SYSTEM_POWER_STATE SystemPowerState