Lines Matching refs:fdoExtension
194 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension; in ClasspPowerUpCompletion() local
212 fdoExtension = PowerContext->DeviceObject->DeviceExtension; in ClasspPowerUpCompletion()
218 nextStack = IoGetNextIrpStackLocation(fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerUpCompletion()
224 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerUpCompletion()
225 srbHeader = (PSTORAGE_REQUEST_BLOCK_HEADER)&(fdoExtension->PrivateFdoData->PowerSrb.SrbEx); in ClasspPowerUpCompletion()
324 if (PoQueryWatchdogTime(fdoExtension->LowerPdo, &secondsRemaining)) { in ClasspPowerUpCompletion()
342 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = in ClasspPowerUpCompletion()
352 if (--fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount) in ClasspPowerUpCompletion()
363 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = 0; in ClasspPowerUpCompletion()
369 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = in ClasspPowerUpCompletion()
381 … PowerContext->RetryCount = fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount; in ClasspPowerUpCompletion()
383 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerUpCompletion()
414 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerUpCompletion()
439 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerUpCompletion()
449 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerUpCompletion()
451 …L_INFORMATION, TRACE_FLAG_POWER, "(%p)\tIoCallDriver returned %lx\n", fdoExtension->PrivateFdoData… in ClasspPowerUpCompletion()
491 fdoExtension->DeviceObject, in ClasspPowerUpCompletion()
496 … fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount - PowerContext->RetryCount, in ClasspPowerUpCompletion()
524 if (PoQueryWatchdogTime(fdoExtension->LowerPdo, &secondsRemaining)) { in ClasspPowerUpCompletion()
548 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerUpCompletion()
559 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerUpCompletion()
590 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerUpCompletion()
597 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerUpCompletion()
604 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerUpCompletion()
606 fdoExtension->PrivateFdoData->PowerProcessIrp, status)); in ClasspPowerUpCompletion()
650 fdoExtension->DevicePowerState = currentStack->Parameters.Power.State.DeviceState; in ClasspPowerUpCompletion()
657 if ((fdoExtension->FailurePredictionInfo != NULL) && in ClasspPowerUpCompletion()
658 (fdoExtension->FailurePredictionInfo->Method != FailurePredictionNone)) { in ClasspPowerUpCompletion()
667 ((fdoExtension->MediaChangeDetectionInfo != NULL) && in ClasspPowerUpCompletion()
668 (fdoExtension->FunctionSupportInfo != NULL) && in ClasspPowerUpCompletion()
669 (fdoExtension->FunctionSupportInfo->AsynchronousNotificationSupported == FALSE)) || in ClasspPowerUpCompletion()
679 … if ((FailurePredictionEnabled) && (ClasspFailurePredictionPeriodMissed(fdoExtension))) { in ClasspPowerUpCompletion()
680 fdoExtension->FailurePredictionInfo->CountDown = 1; in ClasspPowerUpCompletion()
687 ClasspEnableTimer(fdoExtension); in ClasspPowerUpCompletion()
708 … if ((fdoExtension->PrivateFdoData) && (Irp == fdoExtension->PrivateFdoData->PowerProcessIrp)) { in ClasspPowerUpCompletion()
776 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = PowerContext->DeviceObject->DeviceExtension; in ClasspPowerDownCompletion() local
783 …PIO_STACK_LOCATION nextStack = IoGetNextIrpStackLocation(fdoExtension->PrivateFdoData->PowerProces… in ClasspPowerDownCompletion()
795 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerDownCompletion()
796 srbHeader = (PSTORAGE_REQUEST_BLOCK_HEADER)&(fdoExtension->PrivateFdoData->PowerSrb.SrbEx); in ClasspPowerDownCompletion()
849 fdoExtension->DevicePowerState = in ClasspPowerDownCompletion()
869 fdoExtension->PowerDownInProgress = FALSE; in ClasspPowerDownCompletion()
889 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = 0; in ClasspPowerDownCompletion()
892 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerDownCompletion()
893 … srbHeader = (PSTORAGE_REQUEST_BLOCK_HEADER)&(fdoExtension->PrivateFdoData->PowerSrb.SrbEx); in ClasspPowerDownCompletion()
919 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerDownCompletion()
920 SrbSetTimeOutValue(srbHeader, fdoExtension->TimeOutValue); in ClasspPowerDownCompletion()
930 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerDownCompletion()
940 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerDownCompletion()
942 …L_INFORMATION, TRACE_FLAG_POWER, "(%p)\tIoCallDriver returned %lx\n", fdoExtension->PrivateFdoData… in ClasspPowerDownCompletion()
960 if (!TEST_FLAG(fdoExtension->PrivateFdoData->HackFlags, in ClasspPowerDownCompletion()
967 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerDownCompletion()
970 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerDownCompletion()
1001 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerDownCompletion()
1004 SrbSetTimeOutValue(srbHeader, fdoExtension->TimeOutValue); in ClasspPowerDownCompletion()
1021 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerDownCompletion()
1031 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerDownCompletion()
1033 …L_INFORMATION, TRACE_FLAG_POWER, "(%p)\tIoCallDriver returned %lx\n", fdoExtension->PrivateFdoData… in ClasspPowerDownCompletion()
1077 fdoExtension->DeviceObject, in ClasspPowerDownCompletion()
1082 … fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount - PowerContext->RetryCount, in ClasspPowerDownCompletion()
1113 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerDownCompletion()
1145 if (PoQueryWatchdogTime(fdoExtension->LowerPdo, &secondsRemaining)) { in ClasspPowerDownCompletion()
1149 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = in ClasspPowerDownCompletion()
1158 if (--fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount) in ClasspPowerDownCompletion()
1167 … if (fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount > MAXIMUM_RETRIES) { in ClasspPowerDownCompletion()
1168 … fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerDownCompletion()
1172 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = 0; in ClasspPowerDownCompletion()
1185 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerDownCompletion()
1193 … PowerContext->RetryCount = fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount; in ClasspPowerDownCompletion()
1195 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerDownCompletion()
1226 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerDownCompletion()
1249 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerDownCompletion()
1259 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerDownCompletion()
1261 …L_INFORMATION, TRACE_FLAG_POWER, "(%p)\tIoCallDriver returned %lx\n", fdoExtension->PrivateFdoData… in ClasspPowerDownCompletion()
1291 fdoExtension->DeviceObject, in ClasspPowerDownCompletion()
1296 … fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount - PowerContext->RetryCount, in ClasspPowerDownCompletion()
1330 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerDownCompletion()
1415 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerDownCompletion()
1447 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerDownCompletion()
1454 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerDownCompletion()
1461 …status = IoCallDriver(commonExtension->LowerDeviceObject, fdoExtension->PrivateFdoData->PowerProce… in ClasspPowerDownCompletion()
1463 fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerDownCompletion()
1501 fdoExtension->DevicePowerState = in ClasspPowerDownCompletion()
1514 fdoExtension->PowerDownInProgress = FALSE; in ClasspPowerDownCompletion()
1517 if (Irp == fdoExtension->PrivateFdoData->PowerProcessIrp) { in ClasspPowerDownCompletion()
1564 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = DeviceObject->DeviceExtension; in ClasspPowerHandler() local
1570 _Analysis_assume_(fdoExtension); in ClasspPowerHandler()
1571 _Analysis_assume_(fdoExtension->PrivateFdoData); in ClasspPowerHandler()
1597 PCLASS_PRIVATE_FDO_DATA fdoData = fdoExtension->PrivateFdoData; in ClasspPowerHandler()
1615 if ((fdoExtension->FunctionSupportInfo) && in ClasspPowerHandler()
1616 (fdoExtension->FunctionSupportInfo->IdlePower.NoVerifyDuringIdlePower)) { in ClasspPowerHandler()
1636 InterlockedIncrement((volatile LONG *)&fdoExtension->MediaChangeCount); in ClasspPowerHandler()
1667 fdoExtension->DevicePowerState) { in ClasspPowerHandler()
1670 Irp, fdoExtension->DevicePowerState)); in ClasspPowerHandler()
1683 (fdoExtension->DevicePowerState != PowerDeviceD0)) { in ClasspPowerHandler()
1685 Irp, fdoExtension->DevicePowerState)); in ClasspPowerHandler()
1686 fdoExtension->DevicePowerState = in ClasspPowerHandler()
1699 Irp, fdoExtension->DevicePowerState)); in ClasspPowerHandler()
1700 fdoExtension->DevicePowerState = in ClasspPowerHandler()
1714 Irp, fdoExtension->DevicePowerState)); in ClasspPowerHandler()
1715 fdoExtension->DevicePowerState = in ClasspPowerHandler()
1725 IoReuseIrp(fdoExtension->PrivateFdoData->PowerProcessIrp, STATUS_SUCCESS); in ClasspPowerHandler()
1726 IoSetNextIrpStackLocation(fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerHandler()
1727 nextIrpStack = IoGetNextIrpStackLocation(fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerHandler()
1729 context = &(fdoExtension->PowerContext); in ClasspPowerHandler()
1736 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in ClasspPowerHandler()
1737 srbHeader = (PSTORAGE_REQUEST_BLOCK_HEADER)&(fdoExtension->PrivateFdoData->PowerSrb.SrbEx); in ClasspPowerHandler()
1767 SrbSetOriginalRequest(srbHeader, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerHandler()
1770 fdoExtension->PrivateFdoData->MaxPowerOperationRetryCount = MAXIMUM_RETRIES; in ClasspPowerHandler()
1797 fdoExtension->PowerDownInProgress = TRUE; in ClasspPowerHandler()
1804 if ((fdoExtension->PrivateFdoData->TickTimerEnabled)) { in ClasspPowerHandler()
1805 ClasspDisableTimer(fdoExtension); in ClasspPowerHandler()
1838 IoSetCompletionRoutine(fdoExtension->PrivateFdoData->PowerProcessIrp, in ClasspPowerHandler()
1845 IoCallDriver(lowerDevice, fdoExtension->PrivateFdoData->PowerProcessIrp); in ClasspPowerHandler()
1855 … context->CompletionRoutine(DeviceObject, fdoExtension->PrivateFdoData->PowerProcessIrp, context); in ClasspPowerHandler()
1991 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension; in __control_entrypoint() local
1994 fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension; in __control_entrypoint()
2000 if (!TEST_FLAG(fdoExtension->ScanForSpecialFlags, in __control_entrypoint()
2005 if (!TEST_FLAG(fdoExtension->ScanForSpecialFlags, in __control_entrypoint()
2010 if (!TEST_FLAG(fdoExtension->ScanForSpecialFlags, in __control_entrypoint()
2053 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension; in ClassStopUnitPowerHandler() local
2064 fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension; in ClassStopUnitPowerHandler()
2066 SET_FLAG(fdoExtension->ScanForSpecialFlags, in ClassStopUnitPowerHandler()
2068 SET_FLAG(fdoExtension->ScanForSpecialFlags, in ClassStopUnitPowerHandler()
2104 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = in RetryPowerRequest() local
2114 if (fdoExtension->AdapterDescriptor->SrbType == SRB_TYPE_STORAGE_REQUEST_BLOCK) { in RetryPowerRequest()
2115 srb = (PSTORAGE_REQUEST_BLOCK_HEADER)&(fdoExtension->PrivateFdoData->PowerSrb.SrbEx); in RetryPowerRequest()
2241 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension; in ClasspDeviceLockFailurePowerIrpCompletion() local
2248 fdoExtension = PowerContext->DeviceObject->DeviceExtension; in ClasspDeviceLockFailurePowerIrpCompletion()
2256 fdoExtension->DevicePowerState = currentStack->Parameters.Power.State.DeviceState; in ClasspDeviceLockFailurePowerIrpCompletion()
2265 if (fdoExtension->DevicePowerState == PowerDeviceD0) { in ClasspDeviceLockFailurePowerIrpCompletion()
2270 if ((fdoExtension->FailurePredictionInfo != NULL) && in ClasspDeviceLockFailurePowerIrpCompletion()
2271 (fdoExtension->FailurePredictionInfo->Method != FailurePredictionNone)) { in ClasspDeviceLockFailurePowerIrpCompletion()
2280 ((fdoExtension->MediaChangeDetectionInfo != NULL) && in ClasspDeviceLockFailurePowerIrpCompletion()
2281 (fdoExtension->FunctionSupportInfo != NULL) && in ClasspDeviceLockFailurePowerIrpCompletion()
2282 (fdoExtension->FunctionSupportInfo->AsynchronousNotificationSupported == FALSE)) || in ClasspDeviceLockFailurePowerIrpCompletion()
2291 if ((FailurePredictionEnabled) && (ClasspFailurePredictionPeriodMissed(fdoExtension))) { in ClasspDeviceLockFailurePowerIrpCompletion()
2292 fdoExtension->FailurePredictionInfo->CountDown = 1; in ClasspDeviceLockFailurePowerIrpCompletion()
2299 ClasspEnableTimer(fdoExtension); in ClasspDeviceLockFailurePowerIrpCompletion()
2357 …PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)DeviceObject->DeviceExte… in ClasspSendEnableIdlePowerIoctl() local
2358 PCOMMON_DEVICE_EXTENSION commonExtension = &(fdoExtension->CommonExtension); in ClasspSendEnableIdlePowerIoctl()
2362 idlePower.WakeCapableHint = fdoExtension->FunctionSupportInfo->IdlePower.DeviceWakeable; in ClasspSendEnableIdlePowerIoctl()
2363 idlePower.D3ColdSupported = fdoExtension->FunctionSupportInfo->IdlePower.D3ColdSupported; in ClasspSendEnableIdlePowerIoctl()
2364 idlePower.D3IdleTimeout = fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeout; in ClasspSendEnableIdlePowerIoctl()
2460 …PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)fdoEntry->Fdo->DeviceExt… in _Function_class_() local
2465 if (!fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeoutOverridden) { in _Function_class_()
2466 … fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeout = DiskIdleTimeoutInMS; in _Function_class_()
2498 …PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)fdoEntry->Fdo->DeviceExt… in _Function_class_() local
2508 if ((fdoExtension->DevicePowerState != PowerDeviceD0) && in _Function_class_()
2509 (fdoExtension->MediaChangeDetectionInfo != NULL) && in _Function_class_()
2510 … (fdoExtension->FunctionSupportInfo->AsynchronousNotificationSupported == FALSE)) { in _Function_class_()
2511 ClassCheckMediaState(fdoExtension); in _Function_class_()
2519 if ((fdoExtension->FailurePredictionInfo != NULL) && in _Function_class_()
2520 … (fdoExtension->FailurePredictionInfo->Method != FailurePredictionNone)) { in _Function_class_()
2521 if (ClasspFailurePredictionPeriodMissed(fdoExtension)) { in _Function_class_()
2522 fdoExtension->FailurePredictionInfo->CountDown = 1; in _Function_class_()
2532 ClasspUpdateTimerNoWakeTolerance(fdoExtension); in _Function_class_()
2576 …PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = (PFUNCTIONAL_DEVICE_EXTENSION)DeviceObject->DeviceExte… in ClasspEnableIdlePower() local
2582 NT_ASSERT(fdoExtension->FunctionSupportInfo->IdlePower.IdlePowerEnabled == FALSE); in ClasspEnableIdlePower()
2584 ClassGetDeviceParameter(fdoExtension, in ClasspEnableIdlePower()
2593 if (d3ColdDisabledByUser || fdoExtension->PrivateFdoData->HotplugInfo.DeviceHotplug) { in ClasspEnableIdlePower()
2594 fdoExtension->FunctionSupportInfo->IdlePower.D3ColdSupported = 0; in ClasspEnableIdlePower()
2597 ClassGetDeviceParameter(fdoExtension, in ClasspEnableIdlePower()
2608 …fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeout = (idleTimeoutOverrideInSeconds * 1000); in ClasspEnableIdlePower()
2609 fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeoutOverridden = TRUE; in ClasspEnableIdlePower()
2611 fdoExtension->FunctionSupportInfo->IdlePower.D3IdleTimeout = DiskIdleTimeoutInMS; in ClasspEnableIdlePower()
2617 fdoExtension->FunctionSupportInfo->IdlePower.DeviceWakeable = FALSE; in ClasspEnableIdlePower()
2634 fdoExtension->FunctionSupportInfo->IdlePower.IdlePowerEnabled = TRUE; in ClasspEnableIdlePower()
2656 fdoExtension->FunctionSupportInfo->IdlePower.IdlePowerEnabled = FALSE; in ClasspEnableIdlePower()