40 History->TotalHistoryCount = HistoryCount;
53 NT_ASSERT( history->UsedHistoryCount <= history->TotalHistoryCount );
56 if (history->UsedHistoryCount == history->TotalHistoryCount )
63 NT_ASSERT( history->UsedHistoryCount < history->TotalHistoryCount );
67 NT_ASSERT( history->UsedHistoryCount < history->TotalHistoryCount );
70 history->UsedHistoryCount++;
73 item = &( history->History[ history->UsedHistoryCount-1 ] );
89 UCHAR senseInfoBufferLength;
95 NT_ASSERT( history->UsedHistoryCount <= history->TotalHistoryCount );
96 item = &( history->History[ history->UsedHistoryCount-1 ] );
114 senseInfoBufferLength,
115 (
PVOID)&convertedSenseBuffer,
116 sizeof(convertedSenseBuffer));
120 senseInfoBufferLength =
sizeof(convertedSenseBuffer);
131 senseInfoBufferLength,
133 senseSize = senseInfoBufferLength;
137 senseSize =
min(senseSize,
sizeof(
item->NormalizedSenseData));
VOID History(INT dir, LPTSTR commandline)
struct _SRB_HISTORY SRB_HISTORY
struct _SRB_HISTORY_ITEM SRB_HISTORY_ITEM
_In_ PTRANSFER_PACKET Pkt
FORCEINLINE PVOID ClasspTransferPacketGetSenseInfoBuffer(_In_ PTRANSFER_PACKET Pkt)
FORCEINLINE UCHAR ClasspTransferPacketGetSenseInfoBufferLength(_In_ PTRANSFER_PACKET Pkt)
VOID HistoryLogSendPacket(TRANSFER_PACKET *Pkt)
VOID HistoryLogReturnedPacket(TRANSFER_PACKET *Pkt)
VOID HistoryInitializeRetryLogs(_Out_ PSRB_HISTORY History, ULONG HistoryCount)
PFIXED_SENSE_DATA senseInfoBuffer
#define IsDescriptorSenseDataFormat(SenseInfoBuffer)
#define KeQueryTickCount(CurrentCount)
__callback PCLASS_COMPRESS_RETRY_HISTORY_DATA Compress
PCLASS_INTERPRET_SENSE_INFO2 InterpretSenseInfo
PDEVICE_OBJECT DeviceObject
PSTORAGE_REQUEST_BLOCK_HEADER Srb
PSRB_HISTORY RetryHistory
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)