Lines Matching defs:pLCHS
5554 static void vdFixupLCHSGeometry(PVDGEOMETRY pLCHS, uint64_t cbSize)
5561 if ( ( pLCHS->cHeads > 255
5562 || pLCHS->cHeads == 0
5563 || pLCHS->cSectors > 63
5564 || pLCHS->cSectors == 0)
5565 && pLCHS->cCylinders != 0)
5567 pLCHS->cCylinders = 0;
5568 pLCHS->cHeads = 0;
5569 pLCHS->cSectors = 0;
5576 if ( pLCHS->cCylinders != 0
5577 && pLCHS->cHeads != 0 /* paranoia */
5578 && pLCHS->cSectors != 0 /* paranoia */)
5580 Assert(!(RT_MIN(cbSize / 512 / pLCHS->cHeads / pLCHS->cSectors, 1024) - (uint32_t)RT_MIN(cbSize / 512 / pLCHS->cHeads / pLCHS->cSectors, 1024)));
5581 pLCHS->cCylinders = (uint32_t)RT_MIN(cbSize / 512 / pLCHS->cHeads / pLCHS->cSectors, 1024);