Lines Matching refs:drive
136 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument
142 fd = open (map[drive], O_RDONLY); in get_drive_geometry()
237 if (drive & 0x80) in get_drive_geometry()
400 get_dac960_disk_name (char *name, int controller, int drive) in get_dac960_disk_name() argument
402 sprintf (name, "/dev/rd/c%dd%d", controller, drive); in get_dac960_disk_name()
522 int drive; in read_device_map() local
558 drive = strtoul (ptr, &ptr, 10); in read_device_map()
559 if (drive < 0) in read_device_map()
564 else if (drive > 127) in read_device_map()
568 is_floppy ? 'f' : 'h', drive); in read_device_map()
573 drive += 0x80; in read_device_map()
599 if (map[drive]) in read_device_map()
605 map[drive] = strdup (ptr); in read_device_map()
606 assert (map[drive]); in read_device_map()
781 int controller, drive; in init_device_map() local
785 for (drive = 0; drive < 15; drive++) in init_device_map()
789 get_dac960_disk_name (name, controller, drive); in init_device_map()
831 is_disk_device (char **map, int drive) in is_disk_device() argument
835 assert (map[drive] != 0); in is_disk_device()
836 assert (stat (map[drive], &st) == 0); in is_disk_device()
842 write_to_partition (char **map, int drive, int partition, in write_to_partition() argument
856 assert (map[drive] != 0); in write_to_partition()
858 strcpy (dev, map[drive]); in write_to_partition()