|
ReactOS 0.4.16-dev-1946-g52006dd
|

Go to the source code of this file.
Macros | |
| #define | FIRMWARE_ACTIVATE_TIMEOUT_VALUE 30 |
| _Function_class_ | ( | IO_WORKITEM_ROUTINE | ) |
Definition at line 5136 of file utils.c.
| _IRQL_requires_max_ | ( | APC_LEVEL | ) |
Definition at line 6894 of file utils.c.
| _IRQL_requires_same_ _IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
| _IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Definition at line 71 of file utils.c.
Definition at line 609 of file utils.c.
Referenced by ClasspModeSelect(), ClasspModeSense(), and ClassReadDriveCapacity().
| NTSTATUS ClassDeviceGetLBProvisioningResources | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 5087 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClassDeviceHwFirmwareActivateProcess | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 8902 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClassDeviceHwFirmwareDownloadProcess | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 8541 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClassDeviceHwFirmwareGetInfoProcess | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp | ||
| ) |
Definition at line 8366 of file utils.c.
Referenced by ClassDeviceControl().
| __inline BOOLEAN ClassDeviceHwFirmwareIsPortDriverSupported | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 8330 of file utils.c.
Referenced by ClassDeviceHwFirmwareActivateProcess(), ClassDeviceHwFirmwareDownloadProcess(), and ClassDeviceHwFirmwareGetInfoProcess().
| NTSTATUS ClassGetLBProvisioningLogPage | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ ULONG | LogPageSize, | ||
| _Inout_ PLOG_PAGE_LOGICAL_BLOCK_PROVISIONING | LogPage | ||
| ) |
Definition at line 4679 of file utils.c.
Referenced by ClassGetLBProvisioningResources().
| NTSTATUS ClassGetLBProvisioningResources | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ ULONG | ResourcesSize, | ||
| _Inout_ PSTORAGE_LB_PROVISIONING_MAP_RESOURCES | Resources | ||
| ) |
Definition at line 4958 of file utils.c.
Referenced by ClassDeviceGetLBProvisioningResources().
| NTSTATUS ClassInterpretLBProvisioningLogPage | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ ULONG | LogPageSize, | ||
| _In_ PLOG_PAGE_LOGICAL_BLOCK_PROVISIONING | LogPage, | ||
| _In_ ULONG | ResourcesSize, | ||
| _Out_ PSTORAGE_LB_PROVISIONING_MAP_RESOURCES | Resources | ||
| ) |
Definition at line 4800 of file utils.c.
Referenced by ClassGetLBProvisioningResources().
| NTSTATUS ClasspAccessAlignmentProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 1700 of file utils.c.
Referenced by ClassDeviceControl().
| _IRQL_requires_same_ PUCHAR ClasspBinaryToAscii | ( | _In_reads_(Length) PUCHAR | HexBuffer, |
| _In_ ULONG | Length, | ||
| _Inout_ PULONG | UpdateLength | ||
| ) |
Definition at line 7717 of file utils.c.
Referenced by ClasspContinueOffloadWrite(), and ClasspReceivePopulateTokenInformationTransferPacketDone().
Definition at line 582 of file utils.c.
Referenced by BuildDeviceInputMdl().
| ULONG ClasspCalculateLogicalSectorSize | ( | _In_ PDEVICE_OBJECT | Fdo, |
| _In_ ULONG | BytesPerBlockInBigEndian | ||
| ) |
Definition at line 1483 of file utils.c.
Referenced by InterpretCapacityData(), and InterpretReadCapacity16Data().
| VOID ClasspConvertToScsiRequestBlock | ( | _Out_ PSCSI_REQUEST_BLOCK | Srb, |
| _In_ PSTORAGE_REQUEST_BLOCK | SrbEx | ||
| ) |
Definition at line 6559 of file utils.c.
Referenced by ClassInterpretSenseInfo(), InterpretSenseInfoWithoutHistory(), and InterpretTransferPacketError().
| NTSTATUS ClasspDeviceGetBlockDeviceCharacteristicsVPDPage | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | fdoExtension, |
| _In_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 2072 of file utils.c.
Referenced by ClasspDeviceMediaTypeProperty(), and ClasspDeviceSeekPenaltyProperty().
| NTSTATUS ClasspDeviceGetBlockLimitsVPDPage | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _Inout_bytecount_(SrbSize) PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ ULONG | SrbSize, | ||
| _Out_ PCLASS_VPD_B0_DATA | BlockLimitsData | ||
| ) |
Definition at line 2521 of file utils.c.
Referenced by ClasspGetLBProvisioningInfo(), and ClasspRefreshFunctionSupportInfo().
| NTSTATUS ClasspDeviceGetLBAStatus | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 3861 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDeviceGetLBAStatusWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PCLASS_VPD_B0_DATA | BlockLimitsData, | ||
| _In_ ULONGLONG | StartingOffset, | ||
| _In_ ULONGLONG | LengthInBytes, | ||
| _Out_ PDEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT | DsmOutput, | ||
| _Inout_ PULONG | DsmOutputLength, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ BOOLEAN | ConsolidateableBlocksOnly, | ||
| _In_ ULONG | OutputVersion, | ||
| _Out_ PBOOLEAN | BlockLimitsDataMayHaveChanged | ||
| ) |
Definition at line 4079 of file utils.c.
Referenced by ClasspDeviceGetLBAStatus().
| NTSTATUS ClasspDeviceGetLBProvisioningVPDPage | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_opt_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 2350 of file utils.c.
Referenced by ClasspGetLBProvisioningInfo().
| NTSTATUS ClasspDeviceLBProvisioningProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 2894 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDeviceMediaTypeProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _Inout_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 1917 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDeviceSeekPenaltyProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 2172 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDeviceTrimProcess | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _In_ PGUID | ActivityId, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 3476 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDeviceTrimProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 2730 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspDuidGetDeviceIdProperty | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PIRP | Irp | ||
| ) |
Definition at line 689 of file utils.c.
Referenced by ClasspDuidQueryProperty().
| NTSTATUS ClasspDuidGetDeviceProperty | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 782 of file utils.c.
Referenced by ClasspDuidQueryProperty().
| NTSTATUS ClasspDuidGetDriveLayout | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 875 of file utils.c.
Referenced by ClasspDuidQueryProperty().
| NTSTATUS ClasspDuidQueryProperty | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 997 of file utils.c.
Referenced by ClassDeviceControl().
Definition at line 615 of file utils.c.
Referenced by ClasspCleanupOffloadReadContext(), ClasspCleanupOffloadWriteContext(), and FreeDeviceInputMdl().
| NTSTATUS ClasspGetHwFirmwareInfo | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 8190 of file utils.c.
Referenced by ClassDeviceHwFirmwareActivateProcess(), ClassDeviceHwFirmwareDownloadProcess(), and ClassDeviceHwFirmwareGetInfoProcess().
| _IRQL_requires_same_ NTSTATUS ClasspGetTokenOperationCommandBufferLength | ( | _In_ PDEVICE_OBJECT | Fdo, |
| _In_ ULONG | ServiceAction, | ||
| _Inout_ PULONG | CommandBufferLength, | ||
| _Out_opt_ PULONG | TokenOperationBufferLength, | ||
| _Out_opt_ PULONG | ReceiveTokenInformationBufferLength | ||
| ) |
Definition at line 7356 of file utils.c.
| _IRQL_requires_same_ NTSTATUS ClasspGetTokenOperationDescriptorLimits | ( | _In_ PDEVICE_OBJECT | Fdo, |
| _In_ ULONG | ServiceAction, | ||
| _In_ ULONG | MaxParameterBufferLength, | ||
| _Out_ PULONG | MaxBlockDescriptorsCount, | ||
| _Out_ PULONGLONG | MaxBlockDescriptorsLength | ||
| ) |
Definition at line 7472 of file utils.c.
| BOOLEAN ClasspIsThinProvisioningError | ( | _In_ PSCSI_REQUEST_BLOCK | Srb | ) |
Definition at line 9127 of file utils.c.
Referenced by RetryTransferPacket().
| NTSTATUS ClasspLogSystemEventWithDeviceNumber | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ NTSTATUS | IoErrorCode | ||
| ) |
Definition at line 5354 of file utils.c.
Referenced by ClassDispatchPnp(), and ClassIoComplete().
| BOOLEAN ClasspMyStringMatches | ( | _In_opt_z_ PCHAR | StringToMatch, |
| _In_z_ PCHAR | TargetString | ||
| ) |
Definition at line 51 of file utils.c.
| VOID ClasspPerfIncrementErrorCount | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 432 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| VOID ClasspPerfIncrementSuccessfulIo | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 486 of file utils.c.
Referenced by ClassIoComplete(), and TransferPktComplete().
| NTSTATUS ClasspPersistentReserve | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 6211 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspPriorityHint | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 6480 of file utils.c.
Referenced by ClassDeviceControl().
| VOID ClasspQueueLogIOEventWithContextWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ ULONG | SenseBufferSize, | ||
| _In_ PVOID | SenseData, | ||
| _In_ UCHAR | SrbStatus, | ||
| _In_ UCHAR | ScsiStatus, | ||
| _In_ ULONG | ErrorCode, | ||
| _In_ ULONG | CdbLength, | ||
| _In_opt_ PCDB | Cdb, | ||
| _In_opt_ PTRANSFER_PACKET | Pkt | ||
| ) |
Definition at line 6010 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| _IRQL_requires_same_ NTSTATUS ClasspStorageEventNotification | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp | ||
| ) |
Definition at line 7826 of file utils.c.
Referenced by ClassDeviceControl().
| NTSTATUS ClasspWriteCacheProperty | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
| _In_ PIRP | Irp, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 1199 of file utils.c.
Referenced by ClassDeviceControl().
| VOID ClasspZeroQERR | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 7938 of file utils.c.
| VOID ClassQueueCapacityChangedEventWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 5637 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| VOID ClassQueueProvisioningTypeChangedEventWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 5726 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| VOID ClassQueueResourceExhaustionEventWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 5528 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| VOID ClassQueueThresholdEventWorker | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 5471 of file utils.c.
Referenced by ClassInterpretSenseInfo().
| NTSTATUS ClassReadCapacity16 | ( | _Inout_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 1568 of file utils.c.
Referenced by ClasspAccessAlignmentProperty().
| VOID ConvertDataSetRangeToUnmapBlockDescr | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _In_ PUNMAP_BLOCK_DESCRIPTOR | BlockDescr, | ||
| _Inout_ PULONG | CurrentBlockDescrIndex, | ||
| _In_ ULONG | MaxBlockDescrIndex, | ||
| _Inout_ PULONGLONG | CurrentLbaCount, | ||
| _In_ ULONGLONG | MaxLbaCount, | ||
| _Inout_ PDEVICE_DATA_SET_RANGE | DataSetRange | ||
| ) |
Definition at line 3047 of file utils.c.
Referenced by DeviceProcessDsmTrimRequest().
| NTSTATUS DeviceProcessDsmTrimRequest | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _In_ PDEVICE_DATA_SET_RANGE | DataSetRanges, | ||
| _In_ ULONG | DataSetRangesCount, | ||
| _In_ ULONG | UnmapGranularity, | ||
| _In_ ULONG | SrbFlags, | ||
| _In_ PIRP | Irp, | ||
| _In_ PGUID | ActivityId, | ||
| _Inout_ PSCSI_REQUEST_BLOCK | Srb | ||
| ) |
Definition at line 3164 of file utils.c.
Referenced by ClasspDeviceTrimProcess().
Definition at line 622 of file utils.c.
Referenced by ClasspModeSelect(), ClasspModeSense(), and ClassReadDriveCapacity().
| NTSTATUS GetLBAStatus | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _In_ PSCSI_REQUEST_BLOCK | Srb, | ||
| _In_ ULONGLONG | StartingLBA, | ||
| _Inout_ PLBA_STATUS_LIST_HEADER | LBAStatusHeader, | ||
| _In_ ULONG | LBAStatusSize, | ||
| _In_ BOOLEAN | ConsolidateableBlocksOnly | ||
| ) |
Definition at line 3772 of file utils.c.
Referenced by ClasspDeviceGetLBAStatusWorker().
|
static |
Definition at line 1888 of file utils.c.
Referenced by ClasspDeviceSeekPenaltyProperty(), and IncursSeekPenalty().
| NTSTATUS InterpretReadCapacity16Data | ( | _Inout_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
| _In_ PREAD_CAPACITY16_DATA | ReadCapacity16Data | ||
| ) |
Definition at line 1517 of file utils.c.
Referenced by ClassReadCapacity16().
Definition at line 6152 of file utils.c.
Referenced by ClasspPersistentReserve().
Definition at line 6171 of file utils.c.
Referenced by ClasspPersistentReserve().