Lines Matching defs:drive
157 rawread(int drive, unsigned int sector, int byte_offset, int byte_len,
176 if (buf_drive != drive)
178 if (get_diskinfo (drive, &buf_geom))
183 buf_drive = drive;
221 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom,
236 || biosdisk (BIOSDISK_READ, drive, &buf_geom,
262 if (biosdisk (BIOSDISK_READ, drive, &buf_geom,
333 * -- It takes an extra parameter, the drive number.
345 rawwrite(int drive, unsigned int sector, char *buf)
349 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, 0, 1, SCRATCHSEG))
363 if (biosdisk (BIOSDISK_WRITE, drive, &buf_geom,
410 /* network drive */
452 drive SAVED_DRIVE. If an error occurs, return zero, otherwise return
503 /* If the drive is not a hard disk drive, you shouldn't call this
521 /* The drive must be a hard disk. */
576 /* Get the information on next partition on the drive DRIVE.
588 next_partition (unsigned long drive, unsigned long dest,
616 if (! rawread (drive, *start + BSD_LABEL_SECTOR,
644 if ((drive & 0x80) && BSD_LABEL_DTYPE (buf) == DTYPE_SCSI)
674 if (! rawread (drive, *start + SOL_LABEL_LOC, 0, SECTOR_SIZE, buf))
722 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
794 || ! (drive & 0x80))
847 /* network drive */
1022 int drive = (dev >> 24) & 0xFF;
1026 if (drive == GRUB_INVALID_DRIVE)
1029 current_drive = drive;
1181 * This performs a "mount" on the current device, both drive and partition