Lines Matching refs:drive
140 get_drive_geometry (struct geometry *geom, char **map, int drive) in get_drive_geometry() argument
146 fd = open (map[drive], O_RDONLY); in get_drive_geometry()
257 if (drive & 0x80) in get_drive_geometry()
428 get_dac960_disk_name (char *name, int controller, int drive) in get_dac960_disk_name() argument
430 sprintf (name, "/dev/rd/c%dd%d", controller, drive); in get_dac960_disk_name()
550 int drive; in read_device_map() local
586 drive = strtoul (ptr, &ptr, 10); in read_device_map()
587 if (drive < 0) in read_device_map()
592 else if (drive > 127) in read_device_map()
596 is_floppy ? 'f' : 'h', drive); in read_device_map()
601 drive += 0x80; in read_device_map()
627 if (map[drive]) in read_device_map()
633 map[drive] = strdup (ptr); in read_device_map()
634 assert (map[drive]); in read_device_map()
809 int controller, drive; in init_device_map() local
813 for (drive = 0; drive < 15; drive++) in init_device_map()
817 get_dac960_disk_name (name, controller, drive); in init_device_map()
859 is_disk_device (char **map, int drive) in is_disk_device() argument
863 assert (map[drive] != 0); in is_disk_device()
864 assert (stat (map[drive], &st) == 0); in is_disk_device()
870 write_to_partition (char **map, int drive, int partition, in write_to_partition() argument
884 assert (map[drive] != 0); in write_to_partition()
886 strcpy (dev, map[drive]); in write_to_partition()