35 #if defined(EVENT_TRACING) 37 #include "FdoPower.tmh" 77 Irp->StartNextPowerIrp();
78 Irp->CopyCurrentIrpStackLocationToNext();
190 Mx::MxLowerIrql(
irql);
245 Irp->GetParameterPowerState());
259 Irp->CopyCurrentIrpStackLocationToNext();
274 Irp->CopyCurrentIrpStackLocationToNext();
314 "Received set device power irp 0x%p on WDFDEVICE 0x%p !devobj 0x%p, " 315 "but the irp was not requested by the device (the power policy owner)",
357 Irp->MarkIrpPending();
358 Irp->CopyCurrentIrpStackLocationToNext();
425 Irp->GetParameterPowerStateSystemState()
563 ASSERT(!
"This state shouldn't be reachable for an FDO.");
_Must_inspect_result_ NTSTATUS PowerPolicyHandleSystemQueryPower(__in SYSTEM_POWER_STATE QueryState)
POWER_STATE SetPowerState(__in POWER_STATE_TYPE Type, __in POWER_STATE State)
_Must_inspect_result_ NTSTATUS DispatchSystemQueryPower(__in FxIrp *Irp)
static MdCompletionRoutineType _SystemPowerS0Completion
virtual _Must_inspect_result_ NTSTATUS PowerCheckParentOverload(__out BOOLEAN *ParentOn)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
virtual VOID PowerReleasePendingDeviceIrp(__in BOOLEAN IrpMustBePresent=TRUE)
MdRemoveLock GetRemoveLock(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
BOOLEAN PowerPolicyIsWakeEnabled(VOID)
VOID SetStatus(__in NTSTATUS Status)
#define STATUS_MORE_PROCESSING_REQUIRED
#define UNREFERENCED_PARAMETER(P)
WDFDEVICE __inline GetHandle(VOID)
static MdCompletionRoutineType RaiseDevicePowerCompletion
_Must_inspect_result_ NTSTATUS DispatchDeviceQueryPower(__in FxIrp *Irp)
static _Must_inspect_result_ NTSTATUS _DispatchSetPower(__inout FxPkgPnp *This, __in FxIrp *Irp)
FxPowerPolicyMachine m_PowerPolicyMachine
static _Must_inspect_result_ NTSTATUS _PowerPassDown(__inout FxPkgPnp *This, __in FxIrp *Irp)
_Must_inspect_result_ NTSTATUS DispatchDeviceSetPower(__in FxIrp *Irp)
BOOLEAN PendingReturned()
#define FxVerifierBugCheck(FxDriverGlobals, Error,...)
BOOLEAN m_RequestedPowerUpIrp
_In_ PDEVICE_OBJECT DeviceObject
MdIrp ClearPendingDevicePowerIrp(VOID)
VOID PowerProcessEvent(__in FxPowerEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
MdDeviceObject __inline GetAttachedDevice(VOID)
virtual WDF_DEVICE_POWER_STATE PowerCheckDeviceTypeOverload(VOID)
_Must_inspect_result_ NTSTATUS DispatchSystemSetPower(__in FxIrp *Irp)
FxPowerPolicyOwnerSettings * m_Owner
virtual VOID PowerParentPowerDereference(VOID)
#define NT_SUCCESS(StatCode)
DEVICE_POWER_STATE GetParameterPowerStateDeviceState()
VOID PowerPolicyProcessEvent(__in FxPowerPolicyEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
VOID SetPendingDevicePowerIrp(__inout FxIrp *Irp)
BOOLEAN IsPowerPolicyOwner(VOID)
MdIrp GetPendingSystemPowerIrp(VOID)
_In_ PTRANSFER_PACKET _In_ ULONG _In_ PIRP OriginalIrp
#define _Must_inspect_result_
_Must_inspect_result_ NTSTATUS LowerDevicePower(__in FxIrp *Irp)
MxDeviceObject deviceObject
#define TRACE_LEVEL_ERROR
static FxWdmDeviceExtension * _GetFxWdmExtension(__in MdDeviceObject DeviceObject)
static __inline VOID MxReleaseRemoveLock(__in MdRemoveLock RemoveLock, __in PVOID Tag)
__inline MdDeviceObject GetObject(VOID)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
static MdCompletionRoutineType _SystemPowerSxCompletion
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
NTSTATUS CompletePowerRequest(__inout FxIrp *Irp, __in NTSTATUS Status)
VOID SetPendingSystemPowerIrp(__inout FxIrp *Irp)
_Must_inspect_result_ NTSTATUS RaiseDevicePower(__in FxIrp *Irp)
BOOLEAN m_RequestedPowerDownIrp
static _Must_inspect_result_ NTSTATUS _DispatchQueryPower(__inout FxPkgPnp *This, __in FxIrp *Irp)
enum _WDF_DEVICE_POWER_STATE WDF_DEVICE_POWER_STATE
_In_ SYSTEM_POWER_STATE SystemPowerState
virtual WDF_DEVICE_POWER_STATE PowerCheckDeviceTypeNPOverload(VOID)
static SERVICE_STATUS status