Lines Matching refs:cSectors

3041     p[6] = RT_H2LE_U16(pAhciPort->PCHSGeometry.cSectors);
3059 p[56] = RT_H2LE_U16(pAhciPort->PCHSGeometry.cSectors);
3060 p[57] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383) * pAhciPort->PCHSGeometry.cHeads * pAhciPort->PCHSGeometry.cSectors);
3061 p[58] = RT_H2LE_U16(RT_MIN(pAhciPort->PCHSGeometry.cCylinders, 16383) * pAhciPort->PCHSGeometry.cHeads * pAhciPort->PCHSGeometry.cSectors >> 16);
3960 uint32_t iATAPILBA, cSectors, cReqSectors, cbCurrTX;
3969 cSectors = ataBE2H_U16(pAhciReq->aATAPICmd + 7);
3974 cSectors = ataBE2H_U32(pAhciReq->aATAPICmd + 6);
3978 cSectors = ataBE2H_U24(pAhciReq->aATAPICmd + 6);
3982 cSectors = ataMSF2LBA(pAhciReq->aATAPICmd + 6) - iATAPILBA;
3994 for (uint32_t i = cSectors; i > 0; i -= cReqSectors)
4347 uint32_t cSectors = pAhciReq->cbTransfer / 2048;
4351 size_t cbAlloc = pAhciReq->cbTransfer + cSectors * (1 + 11 + 3 + 1 + 288); /* Per sector data like ECC. */
4359 for (uint32_t i = iATAPILBA; i < iATAPILBA + cSectors; i++)
4384 static int atapiReadSectors(PAHCIPort pAhciPort, PAHCIREQ pAhciReq, uint32_t iATAPILBA, uint32_t cSectors, uint32_t cbSector)
4386 Log(("%s: %d sectors at LBA %d\n", __FUNCTION__, cSectors, iATAPILBA));
4392 pAhciReq->cbTransfer = cSectors * cbSector;
4398 pAhciReq->cbTransfer = cSectors * 2048;
4489 uint32_t cSectors, iATAPILBA;
4503 cSectors = ataBE2H_U16(pbPacket + 7);
4505 cSectors = ataBE2H_U32(pbPacket + 6);
4507 if (cSectors == 0)
4512 if ((uint64_t)iATAPILBA + cSectors > pAhciPort->cTotalSectors)
4521 LogRel(("AHCI ATAPI: LUN#%d: CD-ROM block number %Ld invalid (READ)\n", pAhciPort->iLUN, (uint64_t)iATAPILBA + cSectors));
4527 atapiReadSectors(pAhciPort, pAhciReq, iATAPILBA, cSectors, 2048);
4533 uint32_t cSectors, iATAPILBA;
4546 cSectors = (pbPacket[6] << 16) | (pbPacket[7] << 8) | pbPacket[8];
4548 if (cSectors == 0)
4553 if ((uint64_t)iATAPILBA + cSectors > pAhciPort->cTotalSectors)
4562 LogRel(("AHCI ATA: LUN#%d: CD-ROM block number %Ld invalid (READ CD)\n", pAhciPort->iLUN, (uint64_t)iATAPILBA + cSectors));
4576 atapiReadSectors(pAhciPort, pAhciReq, iATAPILBA, cSectors, 2048);
4581 atapiReadSectors(pAhciPort, pAhciReq, iATAPILBA, cSectors, 2352);
4788 uint32_t cSectors, iATAPILBA;
4858 cSectors = ataBE2H_U16(pbPacket + 7);
4859 Log2(("ATAPI PT: lba %d sectors %d\n", iATAPILBA, cSectors));
4861 cbTransfer = cSectors * pAhciReq->cbATAPISector;
4866 cSectors = ataBE2H_U32(pbPacket + 6);
4867 Log2(("ATAPI PT: lba %d sectors %d\n", iATAPILBA, cSectors));
4869 cbTransfer = cSectors * pAhciReq->cbATAPISector;
4929 cSectors = ataMSF2LBA(pbPacket + 6) - ataMSF2LBA(pbPacket + 3);
4930 if (cSectors > 32)
4931 cSectors = 32; /* Limit transfer size to 64~74K. Safety first. In any case this can only harm software doing CDDA extraction. */
4932 cbTransfer = cSectors * pAhciReq->cbATAPISector;
5025 cSectors = ataBE2H_U16(pbPacket + 7);
5026 Log2(("ATAPI PT: lba %d sectors %d\n", iATAPILBA, cSectors));
5031 cbTransfer = cSectors * pAhciReq->cbATAPISector;
5036 cSectors = ataBE2H_U32(pbPacket + 6);
5037 Log2(("ATAPI PT: lba %d sectors %d\n", iATAPILBA, cSectors));
5042 cbTransfer = cSectors * pAhciReq->cbATAPISector;
5404 iLBA = ((pCmdFis[AHCI_CMDFIS_CYLH] << 8) | pCmdFis[AHCI_CMDFIS_CYLL]) * pAhciPort->PCHSGeometry.cHeads * pAhciPort->PCHSGeometry.cSectors +
5405 (pCmdFis[AHCI_CMDFIS_HEAD] & 0x0f) * pAhciPort->PCHSGeometry.cSectors +
7108 SSMR3PutU32(pSSM, pThis->ahciPort[i].PCHSGeometry.cSectors);
7347 SSMR3GetU32(pSSM, &pThis->ahciPort[i].PCHSGeometry.cSectors);
7587 pAhciPort->PCHSGeometry.cSectors = 0;
7600 pAhciPort->PCHSGeometry.cSectors = 63; /*??*/
7611 || pAhciPort->PCHSGeometry.cSectors == 0)
7616 pAhciPort->PCHSGeometry.cSectors = 63;
7624 pAhciPort->PCHSGeometry.cHeads, pAhciPort->PCHSGeometry.cSectors,