Lines Matching refs:drive

158 rawread(int drive, unsigned long long sector, int byte_offset, int byte_len,
177 if (buf_drive != drive)
179 if (get_diskinfo (drive, &buf_geom))
184 buf_drive = drive;
222 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom,
237 || biosdisk (BIOSDISK_READ, drive, &buf_geom,
263 if (biosdisk (BIOSDISK_READ, drive, &buf_geom,
334 * -- It takes an extra parameter, the drive number.
346 rawwrite(int drive, unsigned long long sector, char *buf)
350 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, 0, 1, SCRATCHSEG))
364 if (biosdisk (BIOSDISK_WRITE, drive, &buf_geom,
411 /* network drive */
453 drive SAVED_DRIVE. If an error occurs, return zero, otherwise return
504 /* If the drive is not a hard disk drive, you shouldn't call this
522 /* The drive must be a hard disk. */
584 /* Get the information on next partition on the drive DRIVE.
596 next_partition (unsigned long drive, unsigned long dest,
627 if (! rawread (drive, *start + BSD_LABEL_SECTOR,
655 if ((drive & 0x80) && BSD_LABEL_DTYPE (buf) == DTYPE_SCSI)
685 if (! rawread (drive, *start + SOL_LABEL_LOC, 0, SECTOR_SIZE, buf))
733 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
749 if (! rawread (drive, 1, 0, SECTOR_SIZE, buf))
769 if (! rawread (drive, *offset, 0, SECTOR_SIZE, buf))
844 if (! rawread (drive, (*gpt_offset) + GPT_ENTRY_SECTOR (*gpt_size, *entry), GPT_ENTRY_INDEX (*gpt_size, *entry), *gpt_size, buf))
879 || ! (drive & 0x80))
936 /* network drive */
1111 int drive = (dev >> 24) & 0xFF;
1115 if (drive == GRUB_INVALID_DRIVE)
1118 current_drive = drive;
1270 * This performs a "mount" on the current device, both drive and partition