Lines Matching refs:pVScsiLunMmc
65 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;
107 mmcLBA2MSF(q, pVScsiLunMmc->cSectors);
112 vscsiH2BEU32(q, pVScsiLunMmc->cSectors);
129 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;
159 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;
163 pVScsiLunMmc->cbSector = 2048; /* Default to 2K sectors. */
166 pVScsiLunMmc->cSectors = cbDisk / pVScsiLunMmc->cbSector;
173 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;
180 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;
193 if (!pVScsiLunMmc->Core.fReady && uCmd != SCSI_INQUIRY)
201 if (pVScsiLunMmc->Core.fMediaPresent)
205 pVScsiLunMmc->Core.fReady = true;
216 Assert(!pVScsiLunMmc->Core.fReady); /* Only should get here if LUN isn't ready. */
250 if (pVScsiLunMmc->cSectors > UINT32_C(0xffffffff))
253 vscsiH2BEU32(aReply, pVScsiLunMmc->cSectors - 1);
254 vscsiH2BEU32(&aReply[4], pVScsiLunMmc->cbSector);
405 vscsiH2BEU64(aReply, pVScsiLunMmc->cSectors - 1);
406 vscsiH2BEU32(&aReply[8], pVScsiLunMmc->cbSector);
419 pVScsiLunMmc->fLocked = pVScsiReq->pbCDB[4] & 1;
420 vscsiLunMediumSetLock(pVScsiLun, pVScsiLunMmc->fLocked);
458 if (RT_UNLIKELY(uLbaStart + cSectorTransfer > pVScsiLunMmc->cSectors))
473 uLbaStart * pVScsiLunMmc->cbSector,
474 cSectorTransfer * pVScsiLunMmc->cbSector);