Lines Matching refs:map

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()
522 read_device_map (FILE *fp, char **map, const char *map_file) in read_device_map() argument
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()
647 init_device_map (char ***map, const char *map_file, int floppy_disks) in init_device_map() argument
653 assert (map); in init_device_map()
654 assert (*map == 0); in init_device_map()
655 *map = malloc (NUM_DISKS * sizeof (char *)); in init_device_map()
656 assert (*map); in init_device_map()
662 (*map)[i] = 0; in init_device_map()
672 ret = read_device_map (fp, *map, map_file); in init_device_map()
701 (*map)[i] = strdup (name); in init_device_map()
702 assert ((*map)[i]); in init_device_map()
724 (*map)[num_hd + 0x80] = strdup (name); in init_device_map()
725 assert ((*map)[num_hd + 0x80]); in init_device_map()
751 (*map)[num_hd + 0x80] = strdup (name); in init_device_map()
752 assert ((*map)[num_hd + 0x80]); in init_device_map()
771 (*map)[num_hd + 0x80] = strdup (name); in init_device_map()
772 assert ((*map)[num_hd + 0x80]); in init_device_map()
791 (*map)[num_hd + 0x80] = strdup (name); in init_device_map()
792 assert ((*map)[num_hd + 0x80]); in init_device_map()
820 (*map)[num_hd + 0x80] = strdup (name); in init_device_map()
821 assert ((*map)[num_hd + 0x80]); in init_device_map()
843 restore_device_map (char **map) in restore_device_map() argument
848 if (map[i]) in restore_device_map()
849 free (map[i]); in restore_device_map()
851 free (map); in restore_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()