Lines Matching defs:sectors
188 * Read sectors from an attached SCSI device.
220 DBG_SCSI("%s: reading %u sectors, device %d, target %d\n", __func__,
231 DBG_SCSI("%s: transferred %u sectors\n", __func__, bios_dsk->drqp.nsect);
237 * Write sectors to an attached SCSI device.
268 DBG_SCSI("%s: writing %u sectors, device %d, target %d\n", __func__,
279 DBG_SCSI("%s: transferred %u sectors\n", __func__, bios_dsk->drqp.nsect);
319 DBG_SCSI("%s: reading %u %u-byte sectors\n", __func__,
332 /* On the SCSI level, we have to transfer whole sectors. */
430 uint32_t sectors, sector_size, cylinders;
445 sectors = ((uint32_t)buffer[0] << 24)
449 ++sectors; /* Returned value is the last LBA, zero-based. */
495 if (sectors >= (uint32_t)4 * 1024 * 1024)
500 else if (sectors >= (uint32_t)2 * 1024 * 1024)
510 cylinders = (uint32_t)(sectors / (heads * sectors_per_track));
533 BX_INFO("SCSI %d-ID#%d: LCHS=%u/%u/%u %lu sectors\n", devcount_scsi,
534 i, (uint16_t)cylinders, heads, sectors_per_track, sectors);
544 bios_dsk->devices[hd_index].sectors = sectors;