ReactOS 0.4.16-dev-338-g34e76ad
|
Go to the source code of this file.
Macros | |
#define | SRBHELPER_ASSERT NT_ASSERT |
#define | SRB_ALIGN_SIZEOF(x) (((ULONG_PTR)(sizeof(x) + sizeof(PVOID) - 1)) & ~(sizeof(PVOID) - 1)) |
#define | SrbMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length) |
#define | SrbCopyMemory(Destination, Source, Length) memcpy(Destination, Source, Length) |
#define | SrbZeroMemory(Destination, Length) memset(Destination, 0, Length) |
#define | SrbEqualMemory(Source1, Source2, Length) (memcmp(Source1, Source2, Length) == 0) |
#define | SrbSetRequestTag SrbSetQueueTag |
#define | SrbGetRequestTag SrbGetQueueTag |
#define | SrbGetQueueAction SrbGetRequestAttribute |
#define | SrbSetQueueAction SrbSetRequestAttribute |
Definition at line 16 of file srbhelper.h.
#define SrbCopyMemory | ( | Destination, | |
Source, | |||
Length | |||
) | memcpy(Destination, Source, Length) |
Definition at line 30 of file srbhelper.h.
Definition at line 42 of file srbhelper.h.
#define SrbGetQueueAction SrbGetRequestAttribute |
Definition at line 1127 of file srbhelper.h.
#define SrbGetRequestTag SrbGetQueueTag |
Definition at line 888 of file srbhelper.h.
Definition at line 12 of file srbhelper.h.
#define SrbMoveMemory | ( | Destination, | |
Source, | |||
Length | |||
) | memmove(Destination, Source, Length) |
Definition at line 24 of file srbhelper.h.
#define SrbSetQueueAction SrbSetRequestAttribute |
Definition at line 1147 of file srbhelper.h.
#define SrbSetRequestTag SrbSetQueueTag |
Definition at line 869 of file srbhelper.h.
#define SrbZeroMemory | ( | Destination, | |
Length | |||
) | memset(Destination, 0, Length) |
Definition at line 36 of file srbhelper.h.
Definition at line 946 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClassGetLBProvisioningLogPage(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspWriteCacheProperty(), ClassReadCapacity16(), ClassSendSrbSynchronous(), ClassSendStartUnit(), DeviceProcessDsmTrimRequest(), GetLBAStatus(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
Definition at line 982 of file srbhelper.h.
Referenced by ClassIoComplete(), DeviceProcessDsmTrimRequest(), FREE_PORT_ALLOCATED_SENSE_BUFFER_EX(), RetryRequest(), and RetryTransferPacket().
FORCEINLINE BOOLEAN SrbCopySrb | ( | _In_ PVOID | DestinationSrb, |
_In_ ULONG | DestinationSrbLength, | ||
_In_ PVOID | SourceSrb | ||
) |
Definition at line 159 of file srbhelper.h.
FORCEINLINE PSTOR_ADDRESS SrbGetAddress | ( | _In_ PSTORAGE_REQUEST_BLOCK | Srb | ) |
Definition at line 139 of file srbhelper.h.
Referenced by SrbGetLun(), SrbGetPathId(), SrbGetPathTargetLun(), and SrbGetTargetId().
FORCEINLINE PCDB SrbGetCdb | ( | _In_ PVOID | Srb | ) |
Definition at line 583 of file srbhelper.h.
FORCEINLINE UCHAR SrbGetCdbLength | ( | _In_ PVOID | Srb | ) |
Definition at line 1074 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo(), ClasspReceivePopulateTokenInformation(), and ClasspReceiveWriteUsingTokenInformation().
FORCEINLINE PVOID SrbGetDataBuffer | ( | _In_ PVOID | Srb | ) |
Definition at line 728 of file srbhelper.h.
Referenced by RetryRequest(), and SubmitTransferPacket().
FORCEINLINE ULONG SrbGetDataTransferLength | ( | _In_ PVOID | Srb | ) |
Definition at line 765 of file srbhelper.h.
Referenced by ClassGetLBProvisioningLogPage(), ClassInterpretSenseInfo(), ClasspBuildRequestEx(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClassReadCapacity16(), GetLBAStatus(), RetryRequest(), SubmitTransferPacket(), and TransferPktComplete().
FORCEINLINE ULONG SrbGetDefaultSrbLengthFromFunction | ( | _In_ ULONG | SrbFunction | ) |
Definition at line 246 of file srbhelper.h.
FORCEINLINE UCHAR SrbGetLun | ( | _In_ PVOID | Srb | ) |
Definition at line 1217 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo().
FORCEINLINE PVOID SrbGetMiniportContext | ( | _In_ PVOID | Srb | ) |
Definition at line 1313 of file srbhelper.h.
FORCEINLINE PVOID SrbGetNextSrb | ( | _In_ PVOID | Srb | ) |
Definition at line 892 of file srbhelper.h.
FORCEINLINE PVOID SrbGetOriginalRequest | ( | _In_ PVOID | Srb | ) |
Definition at line 693 of file srbhelper.h.
FORCEINLINE UCHAR SrbGetPathId | ( | _In_ PVOID | Srb | ) |
Definition at line 1151 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo().
FORCEINLINE VOID SrbGetPathTargetLun | ( | _In_ PVOID | Srb, |
_In_opt_ PUCHAR | PathId, | ||
_In_opt_ PUCHAR | TargetId, | ||
_In_opt_ PUCHAR | Lun | ||
) |
Definition at line 1250 of file srbhelper.h.
FORCEINLINE PVOID SrbGetPortContext | ( | _In_ PVOID | Srb | ) |
Definition at line 1379 of file srbhelper.h.
FORCEINLINE PSRBEX_DATA SrbGetPrimarySrbExData | ( | _In_ PSTORAGE_REQUEST_BLOCK | Srb | ) |
Definition at line 94 of file srbhelper.h.
FORCEINLINE ULONG SrbGetQueueTag | ( | _In_ PVOID | Srb | ) |
Definition at line 873 of file srbhelper.h.
FORCEINLINE ULONG SrbGetRequestAttribute | ( | _In_ PVOID | Srb | ) |
Definition at line 1111 of file srbhelper.h.
Referenced by _Success_().
FORCEINLINE PCDB SrbGetScsiData | ( | _In_ PSTORAGE_REQUEST_BLOCK | SrbEx, |
_In_opt_ PUCHAR | CdbLength8, | ||
_In_opt_ PULONG | CdbLength32, | ||
_In_opt_ PUCHAR | ScsiStatus, | ||
_In_opt_ PVOID * | SenseInfoBuffer, | ||
_In_opt_ PUCHAR | SenseInfoBufferLength | ||
) |
Definition at line 272 of file srbhelper.h.
Referenced by SrbGetCdb(), SrbGetCdbLength(), SrbGetScsiStatus(), SrbGetSenseInfoBuffer(), and SrbGetSenseInfoBufferLength().
FORCEINLINE UCHAR SrbGetScsiStatus | ( | _In_ PVOID | Srb | ) |
Definition at line 1037 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo().
FORCEINLINE PVOID SrbGetSenseInfoBuffer | ( | _In_ PVOID | Srb | ) |
Definition at line 619 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo(), ClasspIsThinProvisioningError(), ClasspMediaChangeDetectionCompletion(), ClasspPowerDownCompletion(), ClasspTransferPacketGetSenseInfoBuffer(), DbgGetAdditionalSenseCodeQualifierStr(), DbgGetAdditionalSenseCodeStr(), DbgGetSenseCodeStr(), FREE_PORT_ALLOCATED_SENSE_BUFFER_EX(), PORT_ALLOCATED_SENSE_EX(), TransferPacketRetryTimerDpc(), and TransferPktComplete().
FORCEINLINE UCHAR SrbGetSenseInfoBufferLength | ( | _In_ PVOID | Srb | ) |
Definition at line 638 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo(), ClasspIsThinProvisioningError(), ClasspMediaChangeDetectionCompletion(), ClasspPowerDownCompletion(), ClasspTransferPacketGetSenseInfoBufferLength(), ClassSendSrbSynchronous(), DbgGetAdditionalSenseCodeQualifierStr(), DbgGetAdditionalSenseCodeStr(), DbgGetSenseCodeStr(), InterpretTransferPacketError(), TransferPacketRetryTimerDpc(), and TransferPktComplete().
FORCEINLINE PSRBEX_DATA SrbGetSrbExDataByIndex | ( | _In_ PSTORAGE_REQUEST_BLOCK | Srb, |
_In_ ULONG | SrbExDataIndex | ||
) |
Definition at line 47 of file srbhelper.h.
FORCEINLINE PSRBEX_DATA SrbGetSrbExDataByType | ( | _In_ PSTORAGE_REQUEST_BLOCK | Srb, |
_In_ SRBEXDATATYPE | Type | ||
) |
Definition at line 66 of file srbhelper.h.
Referenced by SrbGetPrimarySrbExData().
FORCEINLINE ULONG SrbGetSrbFlags | ( | _In_ PVOID | Srb | ) |
Definition at line 927 of file srbhelper.h.
Referenced by _Success_(), ClassFreeOrReuseSrb(), ClassInterpretSenseInfo(), ClasspPowerDownCompletion(), ClasspPowerHandler(), ClasspPowerUpCompletion(), FREE_PORT_ALLOCATED_SENSE_BUFFER_EX(), PORT_ALLOCATED_SENSE_EX(), RetryPowerRequest(), RetryRequest(), and TransferPktComplete().
FORCEINLINE ULONG SrbGetSrbFunction | ( | _In_ PVOID | Srb | ) |
Definition at line 602 of file srbhelper.h.
FORCEINLINE ULONG SrbGetSrbLength | ( | _In_ PVOID | Srb | ) |
Definition at line 215 of file srbhelper.h.
FORCEINLINE UCHAR SrbGetSrbStatus | ( | _In_ PVOID | Srb | ) |
Definition at line 1330 of file srbhelper.h.
FORCEINLINE ULONG SrbGetSystemStatus | ( | _In_ PVOID | Srb | ) |
Definition at line 1000 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo().
FORCEINLINE UCHAR SrbGetTargetId | ( | _In_ PVOID | Srb | ) |
Definition at line 1184 of file srbhelper.h.
Referenced by ClassInterpretSenseInfo().
FORCEINLINE ULONG SrbGetTimeOutValue | ( | _In_ PVOID | Srb | ) |
Definition at line 802 of file srbhelper.h.
Definition at line 1093 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), ClassDeviceControl(), ClassDeviceHwFirmwareActivateProcess(), ClassDeviceHwFirmwareDownloadProcess(), ClassGetLBProvisioningLogPage(), ClassInterpretSenseInfo(), ClasspBuildRequestEx(), ClasspCleanupProtectedLocks(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspEjectionControl(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClasspInterpretGesnData(), ClasspPersistentReserve(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspPrepareMcnIrp(), ClasspWriteCacheProperty(), ClassReadCapacity16(), ClassSendStartUnit(), DeviceProcessDsmTrimRequest(), GetLBAStatus(), InitializeTransferPackets(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
FORCEINLINE VOID SrbSetDataBuffer | ( | _In_ PVOID | Srb, |
_In_opt_ __drv_aliasesMem PVOID | DataBuffer | ||
) |
Definition at line 747 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClasspBuildRequestEx(), ClassSendSrbSynchronous(), RetryTransferPacket(), SetupDriveCapacityTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
Definition at line 784 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClasspBuildRequestEx(), ClassSendSrbSynchronous(), RetryPowerRequest(), RetryRequest(), RetryTransferPacket(), SetupDriveCapacityTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
Definition at line 909 of file srbhelper.h.
Referenced by _Success_(), and ClassSendSrbSynchronous().
Definition at line 710 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClasspBuildRequestEx(), ClasspPowerDownCompletion(), ClasspPowerHandler(), ClasspPowerUpCompletion(), ClasspReleaseQueue(), ClassSendSrbSynchronous(), ClassSendStartUnit(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
Definition at line 1397 of file srbhelper.h.
Definition at line 839 of file srbhelper.h.
Referenced by ClasspBuildRequestEx(), and SetupReadWriteTransferPacket().
Definition at line 853 of file srbhelper.h.
Referenced by RetryRequest().
Definition at line 1131 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), ClassDeviceControl(), ClassDeviceHwFirmwareDownloadProcess(), ClassGetLBProvisioningLogPage(), ClasspBuildRequestEx(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClasspPersistentReserve(), ClasspWriteCacheProperty(), ClassReadCapacity16(), ClassSendSrbSynchronous(), DeviceProcessDsmTrimRequest(), GetLBAStatus(), InitializeTransferPackets(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), and SetupModeSenseTransferPacket().
FORCEINLINE VOID SrbSetScsiData | ( | _In_ PSTORAGE_REQUEST_BLOCK | SrbEx, |
_In_opt_ PUCHAR | CdbLength8, | ||
_In_opt_ PULONG | CdbLength32, | ||
_In_opt_ PUCHAR | ScsiStatus, | ||
_In_opt_ PVOID * | SenseInfoBuffer, | ||
_In_opt_ PUCHAR | SenseInfoBufferLength | ||
) |
Definition at line 451 of file srbhelper.h.
Referenced by SrbSetCdbLength(), SrbSetScsiStatus(), SrbSetSenseInfoBuffer(), and SrbSetSenseInfoBufferLength().
Definition at line 1056 of file srbhelper.h.
Referenced by _Success_(), ClasspPrepareMcnIrp(), ClasspReceivePopulateTokenInformationTransferPacketDone(), ClasspReceiveWriteUsingTokenInformationTransferPacketDone(), ClassSendSrbSynchronous(), RetryPowerRequest(), RetryRequest(), and SubmitTransferPacket().
Definition at line 657 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClasspBuildRequestEx(), ClasspInterpretGesnData(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspPrepareMcnIrp(), ClasspReceivePopulateTokenInformationTransferPacketDone(), ClasspReceiveWriteUsingTokenInformationTransferPacketDone(), ClassSendSrbSynchronous(), FREE_PORT_ALLOCATED_SENSE_BUFFER_EX(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), SetupReadWriteTransferPacket(), TransferPacketRetryTimerDpc(), and TransferPktComplete().
Definition at line 675 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), _Success_(), ClasspBuildRequestEx(), ClasspInterpretGesnData(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspPrepareMcnIrp(), ClasspReceivePopulateTokenInformationTransferPacketDone(), ClasspReceiveWriteUsingTokenInformationTransferPacketDone(), ClassSendSrbSynchronous(), FREE_PORT_ALLOCATED_SENSE_BUFFER_EX(), InitializeTransferPackets(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), SubmitTransferPacket(), TransferPacketRetryTimerDpc(), and TransferPktComplete().
Definition at line 964 of file srbhelper.h.
Referenced by _Success_(), ClassDeviceControl(), ClassDeviceHwFirmwareDownloadProcess(), ClasspBuildRequestEx(), ClasspPersistentReserve(), ClasspPowerHandler(), ClasspPowerUpCompletion(), ClassSendSrbSynchronous(), DeviceProcessDsmTrimRequest(), RetryRequest(), RetryTransferPacket(), and SetupReadWriteTransferPacket().
Definition at line 232 of file srbhelper.h.
Definition at line 1347 of file srbhelper.h.
Definition at line 1019 of file srbhelper.h.
Definition at line 821 of file srbhelper.h.
Referenced by _IRQL_requires_max_(), ClassDeviceControl(), ClassDeviceHwFirmwareActivateProcess(), ClassDeviceHwFirmwareDownloadProcess(), ClassGetLBProvisioningLogPage(), ClasspBuildRequestEx(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspEjectionControl(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClasspPersistentReserve(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspWriteCacheProperty(), ClassReadCapacity16(), ClassSendStartUnit(), DeviceProcessDsmTrimRequest(), GetLBAStatus(), SetupDriveCapacityTransferPacket(), SetupEjectionTransferPacket(), SetupModeSelectTransferPacket(), SetupModeSenseTransferPacket(), and SetupReadWriteTransferPacket().
FORCEINLINE VOID SrbZeroSrb | ( | _In_ PVOID | Srb | ) |
Definition at line 189 of file srbhelper.h.