Lines Matching refs:drive

168 check_cd_boot(BIOSDrive *drive)
172 if (drive->DriveID() != 0)
203 are_extensions_available(uint8 drive)
208 regs.edx = drive;
219 get_ext_drive_parameters(uint8 drive, drive_parameters *targetParameters)
228 regs.edx = drive;
243 get_drive_parameters(uint8 drive, drive_parameters *parameters)
247 regs.edx = drive;
288 /** parse EDD 3.0 drive path information */
346 /** EDD 2.0 drive table information */
376 // Try some data in the first part of the drive
392 compute_check_sum(BIOSDrive *drive, off_t offset)
395 ssize_t bytesRead = drive->ReadAt(NULL, offset, buffer, sizeof(buffer));
428 BIOSDrive *drive = (BIOSDrive *)device;
431 BIOSDrive *drive = dynamic_cast<BIOSDrive *>(device);
432 if (drive == NULL)
438 if (drive->Identifier().device_type != UNKNOWN_DEVICE)
441 if (minSize == 0 || drive->Size() < minSize)
442 minSize = drive->Size();
450 if (compareDrive == drive
454 if (!memcmp(&drive->Identifier(), &compareDrive->Identifier(),
477 BIOSDrive *drive = (BIOSDrive *)device;
479 disk_identifier& disk = drive->Identifier();
481 disk.device.unknown.check_sums[i].sum = compute_check_sum(drive, offset);
483 TRACE(("disk %x, offset %Ld, sum %lu\n", drive->DriveID(), offset,
515 BIOSDrive *drive = new(nothrow) BIOSDrive(driveID);
516 if (drive->InitCheck() != B_OK) {
517 dprintf("could not add drive %u\n", driveID);
518 delete drive;
522 devicesList->Add(drive);
524 if (drive->FillIdentifier() != B_OK)
547 TRACE(("drive ID %u\n", driveID));
554 dprintf("getting drive parameters for: %u failed!\n", fDriveID);
606 //TRACE(("BIOS reads %lu bytes from %Ld (offset = %lu), drive %u\n",
687 dprintf("reading %ld bytes from drive %u failed at %Ld\n",
826 TRACE(("boot drive ID: %x\n", gBootDriveID));
828 BIOSDrive *drive = new(nothrow) BIOSDrive(gBootDriveID);
829 if (drive->InitCheck() != B_OK) {
830 dprintf("no boot drive!\n");
831 delete drive;
835 devicesList->Add(drive);
837 if (drive->FillIdentifier() != B_OK) {
843 TRACE(("boot drive size: %Ld bytes\n", drive->Size()));
854 BIOSDrive *drive = static_cast<BIOSDrive *>(bootDevice);
855 off_t offset = (off_t)gBootPartitionOffset * drive->BlockSize();
886 BIOSDrive *drive = (BIOSDrive *)device;
888 check_cd_boot(drive);
890 gBootVolume.SetInt64("boot drive number", drive->DriveID());
892 &drive->Identifier(), sizeof(disk_identifier));