Lines Matching refs:cylinders
430 uint32_t sectors, sector_size, cylinders;
486 cylinders = inb_cmos(cmos_base + 0) + (inb_cmos(cmos_base + 1) << 8);
510 cylinders = (uint32_t)(sectors / (heads * sectors_per_track));
528 if (cylinders > 1024)
529 bios_dsk->devices[hd_index].lchs.cylinders = 1024;
531 bios_dsk->devices[hd_index].lchs.cylinders = (uint16_t)cylinders;
534 i, (uint16_t)cylinders, heads, sectors_per_track, sectors);
539 if (cylinders > 1024)
540 bios_dsk->devices[hd_index].pchs.cylinders = 1024;
542 bios_dsk->devices[hd_index].pchs.cylinders = (uint16_t)cylinders;