Lines Matching defs:ScsiReq
153 PDMSCSIREQUEST ScsiReq;
154 /** The scatter-gather segment used by ScsiReq for describing pbBuf. */
785 pReq->ScsiReq.pbCDB = NULL;
786 pReq->ScsiReq.paScatterGatherHead = NULL;
787 pReq->ScsiReq.pbSenseBuffer = NULL;
788 pReq->ScsiReq.pvUser = NULL;
816 pReq->ScsiReq.uLogicalUnit = pReq->Cbw.bCBWLun;
817 pReq->ScsiReq.uDataDirection = (pReq->Cbw.bmCBWFlags & USBCBW_DIR_MASK) == USBCBW_DIR_OUT
820 pReq->ScsiReq.cbCDB = pReq->Cbw.bCBWCBLength;
822 pReq->ScsiReq.pbCDB = &pReq->Cbw.CBWCB[0];
826 pReq->ScsiReq.cbScatterGather = pReq->Cbw.dCBWDataTransferLength;
827 pReq->ScsiReq.cScatterGatherEntries = 1;
828 pReq->ScsiReq.paScatterGatherHead = &pReq->ScsiReqSeg;
829 pReq->ScsiReq.cbSenseBuffer = sizeof(pReq->ScsiReqSense);
830 pReq->ScsiReq.pbSenseBuffer = &pReq->ScsiReqSense[0];
831 pReq->ScsiReq.pvUser = NULL;
1009 PUSBMSDREQ pReq = RT_FROM_MEMBER(pSCSIRequest, USBMSDREQ, ScsiReq);
1221 SSMR3PutU32(pSSM, pReq->ScsiReq.uLogicalUnit);
1222 SSMR3PutU32(pSSM, pReq->ScsiReq.uDataDirection);
1223 SSMR3PutU32(pSSM, pReq->ScsiReq.cbCDB);
1224 SSMR3PutU32(pSSM, pReq->ScsiReq.cbScatterGather);
1294 SSMR3GetU32(pSSM, &pReq->ScsiReq.uLogicalUnit);
1295 SSMR3GetU32(pSSM, (uint32_t *)&pReq->ScsiReq.uDataDirection);
1296 SSMR3GetU32(pSSM, &pReq->ScsiReq.cbCDB);
1297 SSMR3GetU32(pSSM, &pReq->ScsiReq.cbScatterGather);
1302 pReq->ScsiReq.cbCDB = pReq->Cbw.bCBWCBLength;
1303 pReq->ScsiReq.pbCDB = &pReq->Cbw.CBWCB[0];
1305 pReq->ScsiReqSeg.cbSeg = pReq->ScsiReq.cbScatterGather;
1306 pReq->ScsiReq.cScatterGatherEntries = 1;
1307 pReq->ScsiReq.paScatterGatherHead = &pReq->ScsiReqSeg;
1308 pReq->ScsiReq.cbSenseBuffer = sizeof(pReq->ScsiReqSense);
1309 pReq->ScsiReq.pbSenseBuffer = &pReq->ScsiReqSense[0];
1310 pReq->ScsiReq.pvUser = NULL;
1415 usbMsdLun0ScsiRequestCompleted(&pThis->Lun0.IScsiPort, &pReq->ScsiReq, SCSI_STATUS_CHECK_CONDITION, false, VINF_SUCCESS);
1467 usbMsdLun0ScsiRequestCompleted(&pThis->Lun0.IScsiPort, &pReq->ScsiReq, SCSI_STATUS_OK, false, VINF_SUCCESS);
1487 switch (pReq->ScsiReq.pbCDB[0])
1494 return pThis->Lun0.pIScsiConnector->pfnSCSIRequestSend(pThis->Lun0.pIScsiConnector, &pReq->ScsiReq);
1756 ? pReq->Cbw.dCBWDataTransferLength - pReq->ScsiReq.cbScatterGather
1761 : pReq->ScsiReq.cbScatterGather;
1786 pReq->ScsiReq.cbScatterGather = pReq->offBuf;
1796 usbMsdLun0ScsiRequestCompleted(&pThis->Lun0.IScsiPort, &pReq->ScsiReq, SCSI_STATUS_OK, false, VINF_SUCCESS);