Lines Matching defs:LCHSGeometry

400     PDMMEDIAGEOMETRY LCHSGeometry;
403 rc = pHardDisk->pfnGetLCHSGeometry(pHardDisk, &LCHSGeometry);
405 || LCHSGeometry.cCylinders == 0
406 || LCHSGeometry.cHeads == 0
407 || LCHSGeometry.cHeads > 255
408 || LCHSGeometry.cSectors == 0
409 || LCHSGeometry.cSectors > 63)
414 rc = biosGuessDiskLCHS(pBlock, &LCHSGeometry);
418 rc = pHardDisk->pfnGetPCHSGeometry(pHardDisk, &LCHSGeometry);
421 || LCHSGeometry.cCylinders == 0
422 || LCHSGeometry.cCylinders > 1024
423 || LCHSGeometry.cHeads == 0
424 || LCHSGeometry.cHeads > 16
425 || LCHSGeometry.cSectors == 0
426 || LCHSGeometry.cSectors > 63)
431 LCHSGeometry.cCylinders = RT_MAX(cSectors / 16 / 63, 1);
432 LCHSGeometry.cHeads = 16;
436 LCHSGeometry.cCylinders = RT_MAX(cSectors / 32 / 63, 1);
437 LCHSGeometry.cHeads = 32;
441 LCHSGeometry.cCylinders = cSectors / 64 / 63;
442 LCHSGeometry.cHeads = 64;
446 LCHSGeometry.cCylinders = cSectors / 128 / 63;
447 LCHSGeometry.cHeads = 128;
451 LCHSGeometry.cCylinders = RT_MIN(cSectors / 255 / 63, 1024);
452 LCHSGeometry.cHeads = 255;
454 LCHSGeometry.cSectors = 63;
457 rc = pHardDisk->pfnSetLCHSGeometry(pHardDisk, &LCHSGeometry);
470 *pLCHSGeometry = LCHSGeometry;
486 PDMMEDIAGEOMETRY LCHSGeometry;
489 rc = pHardDisk->pfnGetLCHSGeometry(pHardDisk, &LCHSGeometry);
491 || LCHSGeometry.cCylinders == 0
492 || LCHSGeometry.cHeads == 0
493 || LCHSGeometry.cHeads > 255
494 || LCHSGeometry.cSectors == 0
495 || LCHSGeometry.cSectors > 63)
504 *pLCHSGeometry = LCHSGeometry;
691 PDMMEDIAGEOMETRY LCHSGeometry;
692 int rc2 = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
721 &LCHSGeometry);
723 LogRel(("DevPcBios: ATA LUN#%d LCHS=%u/%u/%u\n", i, LCHSGeometry.cCylinders, LCHSGeometry.cHeads, LCHSGeometry.cSectors));
752 PDMMEDIAGEOMETRY LCHSGeometry;
753 rc = setLogicalDiskGeometry(pBase, apHDs[i], &LCHSGeometry);
778 &LCHSGeometry);
780 LogRel(("DevPcBios: SATA LUN#%d LCHS=%u/%u/%u\n", i, LCHSGeometry.cCylinders, LCHSGeometry.cHeads, LCHSGeometry.cSectors));
806 PDMMEDIAGEOMETRY LCHSGeometry;
807 rc = getLogicalDiskGeometry(apHDs[i], &LCHSGeometry);
832 pcbiosCmosInitHardDisk(pDevIns, 0x00, offInfo, &LCHSGeometry);
833 LogRel(("DevPcBios: SCSI LUN#%d LCHS=%u/%u/%u\n", i, LCHSGeometry.cCylinders, LCHSGeometry.cHeads, LCHSGeometry.cSectors));