Lines Matching defs:VBoxSCSI
41 #include "VBoxSCSI.h"
320 VBOXSCSI VBoxSCSI;
2305 int rc = vboxscsiRequestFinished(&pThis->VBoxSCSI, pSCSIRequest, rcCompletion);
3760 int rc = vboxscsiReadRegister(&pThis->VBoxSCSI, iRegister, pu32);
3785 rc = vboxscsiSetupRequest(&pThis->VBoxSCSI, &pLsiReq->PDMScsiRequest, &uTargetDevice);
3815 memcpy(pThis->VBoxSCSI.pbBuf, &ScsiInquiryData, 5);
3817 rc = vboxscsiRequestFinished(&pThis->VBoxSCSI, &pLsiReq->PDMScsiRequest, SCSI_STATUS_OK);
3837 int rc = vboxscsiWriteRegister(&pThis->VBoxSCSI, iRegister, (uint8_t)u32);
3862 int rc = vboxscsiWriteString(pDevIns, &pThis->VBoxSCSI, iRegister, pGCPtrSrc, pcTransfer, cb);
3889 return vboxscsiReadString(pDevIns, &pThis->VBoxSCSI, iRegister, pGCPtrDst, pcTransfer, cb);
4309 else if (pThis->VBoxSCSI.fBusy)
4495 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.regIdentify);
4496 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.uTargetDevice);
4497 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.uTxDir);
4498 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.cbCDB);
4499 SSMR3PutMem (pSSM, pThis->VBoxSCSI.abCDB, sizeof(pThis->VBoxSCSI.abCDB));
4500 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.iCDB);
4501 SSMR3PutU32 (pSSM, pThis->VBoxSCSI.cbBuf);
4502 SSMR3PutU32 (pSSM, pThis->VBoxSCSI.iBuf);
4503 SSMR3PutBool (pSSM, pThis->VBoxSCSI.fBusy);
4504 SSMR3PutU8 (pSSM, pThis->VBoxSCSI.enmState);
4505 if (pThis->VBoxSCSI.cbBuf)
4506 SSMR3PutMem(pSSM, pThis->VBoxSCSI.pbBuf, pThis->VBoxSCSI.cbBuf);
4838 SSMR3GetU8 (pSSM, &pThis->VBoxSCSI.regIdentify);
4839 SSMR3GetU8 (pSSM, &pThis->VBoxSCSI.uTargetDevice);
4840 SSMR3GetU8 (pSSM, &pThis->VBoxSCSI.uTxDir);
4841 SSMR3GetU8 (pSSM, &pThis->VBoxSCSI.cbCDB);
4842 SSMR3GetMem (pSSM, pThis->VBoxSCSI.abCDB, sizeof(pThis->VBoxSCSI.abCDB));
4843 SSMR3GetU8 (pSSM, &pThis->VBoxSCSI.iCDB);
4844 SSMR3GetU32 (pSSM, &pThis->VBoxSCSI.cbBuf);
4845 SSMR3GetU32 (pSSM, &pThis->VBoxSCSI.iBuf);
4846 SSMR3GetBool(pSSM, (bool *)&pThis->VBoxSCSI.fBusy);
4847 SSMR3GetU8 (pSSM, (uint8_t *)&pThis->VBoxSCSI.enmState);
4848 if (pThis->VBoxSCSI.cbBuf)
4850 pThis->VBoxSCSI.pbBuf = (uint8_t *)RTMemAllocZ(pThis->VBoxSCSI.cbBuf);
4851 if (!pThis->VBoxSCSI.pbBuf)
4857 SSMR3GetMem(pSSM, pThis->VBoxSCSI.pbBuf, pThis->VBoxSCSI.cbBuf);
5031 vboxscsiSetRequestRedo(&pThis->VBoxSCSI, &pLsiReq->PDMScsiRequest);
5147 vboxscsiInitialize(&pThis->VBoxSCSI);
5544 rc = vboxscsiInitialize(&pThis->VBoxSCSI);