/reactos/sdk/include/ddk/ |
H A D | srbhelper.h | 194 USHORT length = srb->Length; in SrbZeroSrb() 209 srb->Function = function; in SrbZeroSrb() 210 srb->Length = length; in SrbZeroSrb() 222 return srb->SrbLength; in SrbGetSrbLength() 240 srb->SrbLength = Length; in SrbSetSrbLength() 609 return srb->SrbFunction; in SrbGetSrbFunction() 880 return srb->RequestTag; in SrbGetQueueTag() 954 srb->SrbFlags = Flags; in SrbAssignSrbFlags() 972 srb->SrbFlags |= Flags; in SrbSetSrbFlags() 990 srb->SrbFlags &= ~Flags; in SrbClearSrbFlags() [all …]
|
H A D | classpnp.h | 142 #define ClasspFreeSrb(ext, srb) ExFreePool((srb)); argument 150 #define ClasspFreeSrb(ext, srb) \ argument 153 (srb))
|
/reactos/drivers/storage/class/cdrom/ |
H A D | scratch.c | 875 srb->SrbStatus = 0; in _IRQL_requires_max_() 876 srb->ScsiStatus = 0; in _IRQL_requires_max_() 877 srb->NextSrb = NULL; in _IRQL_requires_max_() 878 srb->OriginalRequest = irp; in _IRQL_requires_max_() 937 srb->InternalStatus = 0; 938 srb->SrbStatus = 0; 1278 srb->SrbStatus = 0; in ScratchBuffer_SetupReadWriteSrb() 1279 srb->ScsiStatus = 0; in ScratchBuffer_SetupReadWriteSrb() 1280 srb->NextSrb = NULL; in ScratchBuffer_SetupReadWriteSrb() 1284 srb->DataBuffer = DataBuffer; in ScratchBuffer_SetupReadWriteSrb() [all …]
|
H A D | init.c | 148 SCSI_REQUEST_BLOCK srb = {0}; in _IRQL_requires_max_() local 171 srb.Function = Release in _IRQL_requires_max_() 1819 srb.CdbLength = 6; in _IRQL_requires_max_() 1822 cdb = (PCDB)srb.Cdb; in _IRQL_requires_max_() 1890 SCSI_REQUEST_BLOCK srb = {0}; in _IRQL_requires_max_() local 1934 srb.CdbLength = 6; in _IRQL_requires_max_() 2003 srb.CdbLength = 6; in _IRQL_requires_max_() 2038 srb.CdbLength = 6; in _IRQL_requires_max_() 2432 SCSI_REQUEST_BLOCK srb = {0}; in _IRQL_requires_max_() local 2448 srb.CdbLength = 10; in _IRQL_requires_max_() [all …]
|
H A D | autorun.c | 429 srb.CdbLength = 6; in _IRQL_requires_max_() 900 PSCSI_REQUEST_BLOCK srb; in _IRQL_requires_max_() local 968 srb->SenseInfoBuffer = buffer; in _IRQL_requires_max_() 969 srb->SrbStatus = 0; in _IRQL_requires_max_() 970 srb->ScsiStatus = 0; in _IRQL_requires_max_() 971 srb->OriginalRequest = irp; in _IRQL_requires_max_() 980 srb->CdbLength = 6; in _IRQL_requires_max_() 984 srb->DataBuffer = NULL; in _IRQL_requires_max_() 988 cdb = (PCDB) &srb->Cdb[0]; in _IRQL_requires_max_() 997 srb->CdbLength = 10; in _IRQL_requires_max_() [all …]
|
H A D | common.c | 941 srb = &context->Srb; in DeviceSendStartUnit() 955 srb->CdbLength = 6; in DeviceSendStartUnit() 956 cdb = (PCDB)srb->Cdb; in DeviceSendStartUnit() 2063 SCSI_REQUEST_BLOCK srb; in _IRQL_requires_max_() local 2069 RtlZeroMemory(&srb, sizeof(srb)); in _IRQL_requires_max_() 2072 cdb = (PCDB)(&srb.Cdb); in _IRQL_requires_max_() 2075 srb.CdbLength = 10; in _IRQL_requires_max_() 2678 srb.CdbLength = 12; in DeviceRestoreDefaultSpeed() 3154 SCSI_REQUEST_BLOCK srb; in _IRQL_requires_max_() local 3278 srb.CdbLength = 6; in _IRQL_requires_max_() [all …]
|
H A D | pnppower.c | 323 PSCSI_REQUEST_BLOCK srb = DeviceExtension->ScratchContext.ScratchSrb; in RequestIssueShutdownFlush() local 342 srb->QueueTag = SP_UNTAGGED; in RequestIssueShutdownFlush() 343 srb->QueueAction = SRB_SIMPLE_TAG_REQUEST; in RequestIssueShutdownFlush() 344 srb->TimeOutValue = TimeOutValueGetCapValue(DeviceExtension->TimeOutValue, 4); in RequestIssueShutdownFlush() 345 srb->CdbLength = 0; in RequestIssueShutdownFlush() 349 srb->Function = SRB_FUNCTION_SHUTDOWN; in RequestIssueShutdownFlush() 353 srb->Function = SRB_FUNCTION_FLUSH; in RequestIssueShutdownFlush()
|
H A D | zpodd.c | 700 SCSI_REQUEST_BLOCK srb = {0}; in _IRQL_requires_max_() local 701 PCDB cdb = (PCDB) srb.Cdb; in _IRQL_requires_max_() 720 RtlZeroMemory(&srb, sizeof(SCSI_REQUEST_BLOCK)); in _IRQL_requires_max_() 722 srb.CdbLength = 6; in _IRQL_requires_max_() 725 srb.TimeOutValue = CDROM_TEST_UNIT_READY_TIMEOUT; in _IRQL_requires_max_() 728 &srb, in _IRQL_requires_max_()
|
H A D | ioctl.c | 441 srb.CdbLength = 6; in RequestHandleGetMediaTypeEx() 3079 if (srb == NULL) in RequestHandleQueryPropertyWriteCache() 3104 srb->CdbLength = 10; in RequestHandleQueryPropertyWriteCache() 3277 FREE_POOL(srb); in RequestHandleQueryPropertyWriteCache() 6546 srb.CdbLength = 6; in _IRQL_requires_max_() 6631 if (srb == NULL) in _IRQL_requires_max_() 6639 cdb = (PCDB)srb->Cdb; in _IRQL_requires_max_() 6672 FREE_POOL(srb); in _IRQL_requires_max_() 6904 if (srb == NULL) in _IRQL_requires_max_() 6950 srb->CdbLength = 10; in _IRQL_requires_max_() [all …]
|
H A D | mmc.c | 580 SCSI_REQUEST_BLOCK srb; in _IRQL_requires_max_() local 581 PCDB cdb = (PCDB)srb.Cdb; in _IRQL_requires_max_() 595 RtlZeroMemory(&srb, sizeof(SCSI_REQUEST_BLOCK)); in _IRQL_requires_max_() 622 srb.TimeOutValue = CDROM_GET_CONFIGURATION_TIMEOUT; in _IRQL_requires_max_() 623 srb.CdbLength = 10; in _IRQL_requires_max_() 633 &srb, in _IRQL_requires_max_() 646 ULONG returned = srb.DataTransferLength; in _IRQL_requires_max_() 655 _Analysis_assume_(srb.DataTransferLength <= BufferSize); in _IRQL_requires_max_()
|
/reactos/drivers/storage/class/sfloppy/ |
H A D | floppy.c | 1167 if (srb == NULL) { in ScsiFlopDeviceControl() 1189 cdb = (PCDB)srb->Cdb; in ScsiFlopDeviceControl() 1583 ExFreePool(srb); in ScsiFlopDeviceControl() 1619 ExFreePool(srb); in ScsiFlopDeviceControl() 2332 srb, in FormatMedia() 2371 srb->CdbLength = 6; in FormatMedia() 2387 ExFreePool(srb); in FormatMedia() 3013 if (srb == NULL) in USBFlopGetMediaTypes() 3262 ExFreePool(srb); in USBFlopGetMediaTypes() 3379 if (srb == NULL) in USBFlopFormatTracks() [all …]
|
/reactos/drivers/storage/class/disk/ |
H A D | diskwmi.c | 1705 srb, in DiskInfoExceptionComplete() 1779 srb->SrbStatus = srb->ScsiStatus = 0; in DiskInfoExceptionComplete() 1893 FREE_POOL(srb); in DiskInfoExceptionComplete() 1927 PSCSI_REQUEST_BLOCK srb; in DiskInfoExceptionCheck() local 1957 if (srb == NULL) in DiskInfoExceptionCheck() 1976 FREE_POOL(srb); in DiskInfoExceptionCheck() 1997 FREE_POOL(srb); in DiskInfoExceptionCheck() 2010 FREE_POOL(srb); in DiskInfoExceptionCheck() 2059 FREE_POOL(srb); in DiskInfoExceptionCheck() 2147 FREE_POOL(srb); in DiskInfoExceptionCheck() [all …]
|
H A D | disk.c | 1965 srbPtr = &srb; in DiskModeSelect() 4069 if (srb == NULL) { in DiskIoctlGetMediaTypesEx() 4261 FREE_POOL(srb); in DiskIoctlGetMediaTypesEx() 4581 if (srb == NULL) { in DiskIoctlVerify() 4603 FREE_POOL(srb) in DiskIoctlVerify() 4643 FREE_POOL(srb) in DiskIoctlVerify() 4733 if (srb == NULL) { in DiskIoctlReassignBlocks() 4850 FREE_POOL(srb); in DiskIoctlReassignBlocks() 4940 if (srb == NULL) { in DiskIoctlReassignBlocksEx() 5058 FREE_POOL(srb); in DiskIoctlReassignBlocksEx() [all …]
|
/reactos/drivers/storage/class/classpnp/ |
H A D | create.c | 359 SCSI_REQUEST_BLOCK srb = {0}; in ClasspCleanupProtectedLocks() local 390 srb.CdbLength = 6; in ClasspCleanupProtectedLocks() 392 srbPtr = &srb; in ClasspCleanupProtectedLocks() 398 srb.CdbLength = 6; in ClasspCleanupProtectedLocks() 399 cdb = (PCDB) &(srb.Cdb); in ClasspCleanupProtectedLocks() 400 srbPtr = &srb; in ClasspCleanupProtectedLocks() 487 PSCSI_REQUEST_BLOCK srb = NULL; in ClasspEjectionControl() local 633 if (srb == NULL) { in ClasspEjectionControl() 658 SrbSetCdbLength(srb, 6); in ClasspEjectionControl() 659 cdb = SrbGetCdb(srb); in ClasspEjectionControl() [all …]
|
H A D | obsolete.c | 120 PSCSI_REQUEST_BLOCK srb = Context; local 133 if (SRB_STATUS(srb->SrbStatus) != SRB_STATUS_SUCCESS) { 143 if (srb->SrbStatus & SRB_STATUS_QUEUE_FROZEN) { 150 srb, 186 if (PORT_ALLOCATED_SENSE(fdoExtension, srb)) { 209 if (PORT_ALLOCATED_SENSE(fdoExtension, srb)) { 213 ClassFreeOrReuseSrb(fdoExtension, srb); 512 PSCSI_REQUEST_BLOCK srb; local 521 srb = ClasspAllocateSrb(fdoExtension); 523 if (srb == NULL) { [all …]
|
H A D | class.c | 3153 SrbAssignSrbFlags(srb, in ClassSendStartUnit() 3163 cdb = SrbGetCdb(srb); in ClassSendStartUnit() 3819 srb, 7665 srb = NULL; 13140 FREE_POOL(srb); 13275 if (!srb) { 13450 FREE_POOL(srb); 14475 RtlZeroMemory(srb, sizeof(*srb)); 16042 RtlZeroMemory(srb, sizeof(*srb)); 16457 if (srb == NULL) { [all …]
|
H A D | autorun.c | 608 srbPtr = &srb; in ClasspInterpretGesnData() 611 srb.CdbLength = 6; in ClasspInterpretGesnData() 616 srbPtr = &srb; in ClasspInterpretGesnData() 1316 PSCSI_REQUEST_BLOCK srb; in ClasspPrepareMcnIrp() local 1499 srb->SenseInfoBuffer = buffer; in ClasspPrepareMcnIrp() 1501 srb->SrbStatus = 0; in ClasspPrepareMcnIrp() 1502 srb->ScsiStatus = 0; in ClasspPrepareMcnIrp() 1503 srb->OriginalRequest = irp; in ClasspPrepareMcnIrp() 1505 srb->SrbFlags = srbFlags; in ClasspPrepareMcnIrp() 1511 cdb = (PCDB) &srb->Cdb[0]; in ClasspPrepareMcnIrp() [all …]
|
H A D | power.c | 2106 PSTORAGE_REQUEST_BLOCK_HEADER srb; in RetryPowerRequest() local 2121 srb = (PSTORAGE_REQUEST_BLOCK_HEADER)&(Context->Srb); in RetryPowerRequest() 2122 srbFunction = srb->Function; in RetryPowerRequest() 2124 srbFunction = ((PSTORAGE_REQUEST_BLOCK)srb)->SrbFunction; in RetryPowerRequest() 2127 srb = (PSTORAGE_REQUEST_BLOCK_HEADER)&(Context->Srb); in RetryPowerRequest() 2128 srbFunction = srb->Function; in RetryPowerRequest() 2132 srbFlags = SrbGetSrbFlags(srb); in RetryPowerRequest() 2159 SrbSetDataTransferLength(srb, 0); in RetryPowerRequest() 2165 srb->SrbStatus = 0; in RetryPowerRequest() 2167 SrbSetScsiStatus(srb, 0); in RetryPowerRequest() [all …]
|
/reactos/drivers/storage/ide/atapi/ |
H A D | atapi.c | 3515 if (srb) { in AtapiInterrupt() 3826 srb)); in AtapiInterrupt() 4207 if (srb != NULL) { in AtapiInterrupt() 6454 PSCSI_REQUEST_BLOCK srb; in BuildMechanismStatusSrb() local 6474 srb->TimeOutValue = 4; in BuildMechanismStatusSrb() 6483 cdb = (PCDB)srb->Cdb; in BuildMechanismStatusSrb() 6487 return srb; in BuildMechanismStatusSrb() 6500 PSCSI_REQUEST_BLOCK srb; in BuildRequestSenseSrb() local 6520 srb->TimeOutValue = 4; in BuildRequestSenseSrb() 6529 cdb = (PCDB)srb->Cdb; in BuildRequestSenseSrb() [all …]
|
/reactos/drivers/storage/ide/uniata/ |
H A D | id_ata.cpp | 3937 if(srb) { in AtapiCallBack__() 4383 if(srb) { in AtapiEnableInterrupts__() 4990 PATA_REQ AtaReq = srb ? (PATA_REQ)(srb->SrbExtension) : NULL; 5049 if (srb) { 5240 srb && (srb->SrbFlags & SRB_FLAGS_DATA_IN) 6117 if(srb && 6412 … AtaReq->DataBuffer, (srb ? srb->DataBuffer : (void*)(-1)), srb->DataTransferLength )); 6415 … if(!AtapiDmaPioSync(HwDeviceExtension, srb, (PUCHAR)(srb->DataBuffer), srb->DataTransferLength)) { 6668 if(srb) { 11244 return srb; [all …]
|
H A D | id_sata.cpp | 2654 PSCSI_REQUEST_BLOCK srb; in BuildAhciInternalSrb() local 2669 srb = chan->AhciInternalSrb; in BuildAhciInternalSrb() 2673 srb->PathId = (UCHAR)lChannel; in BuildAhciInternalSrb() 2674 srb->TargetId = (UCHAR)DeviceNumber; in BuildAhciInternalSrb() 2682 srb->TimeOutValue = 4; in BuildAhciInternalSrb() 2684 srb->CdbLength = 6; in BuildAhciInternalSrb() 2685 srb->DataBuffer = Buffer; in BuildAhciInternalSrb() 2686 srb->DataTransferLength = Length; in BuildAhciInternalSrb() 2687 srb->SrbExtension = AtaReq; in BuildAhciInternalSrb() 2689 AtaReq->Srb = srb; in BuildAhciInternalSrb() [all …]
|
H A D | bsmaster.h | 1716 #define AtapiVirtToPhysAddr(hwde, srb, phaddr, plen, phaddru) \ argument 1717 AtapiVirtToPhysAddr_(hwde, srb, phaddr, plen, phaddru); 1719 #define AtapiVirtToPhysAddr(hwde, srb, phaddr, plen, phaddru) \ argument 1721 ScsiPortGetPhysicalAddress(hwde, srb, phaddr, plen)))
|
/reactos/drivers/storage/port/buslogic/ |
H A D | BusLogic958.c | 2152 PSCSI_REQUEST_BLOCK srb; in BusLogic_ProcessCompletedCCBs() local 2163 srb = CCB->SrbAddress; in BusLogic_ProcessCompletedCCBs() 2186 (UCHAR)srb->PathId, in BusLogic_ProcessCompletedCCBs() 2187 srb->TargetId, in BusLogic_ProcessCompletedCCBs() 2211 srb = CCB->AbortSrb; in BusLogic_ProcessCompletedCCBs() 2221 srb->SrbStatus = SRB_STATUS_SUCCESS; in BusLogic_ProcessCompletedCCBs() 2231 srb->SrbStatus = SRB_STATUS_ABORTED; in BusLogic_ProcessCompletedCCBs() 2236 srb); in BusLogic_ProcessCompletedCCBs() 2239 srb = CCB->AbortSrb; in BusLogic_ProcessCompletedCCBs() 2242 srb->SrbStatus = SRB_STATUS_SUCCESS; in BusLogic_ProcessCompletedCCBs() [all …]
|
/reactos/drivers/usb/usbstor/ |
H A D | usbstor.h | 18 #define SrbGetCdb(srb) ((PCDB)(srb->Cdb)) argument
|
/reactos/drivers/storage/port/storahci/ |
H A D | Notes.txt | 48 Need to implement more srb functions
|