Lines Matching refs:drive
290 static int controller_ready(unsigned int drive, unsigned int head) in controller_ready() argument
297 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); in controller_ready()
699 int drive; in hd_init() local
735 for (drive = 0 ; drive < NR_HD ; drive++) { in hd_init()
737 struct hd_i_struct *p = &hd_info[drive]; in hd_init()
741 disk->first_minor = drive << 6; in hd_init()
743 sprintf(disk->disk_name, "hd%c", 'a'+drive); in hd_init()
747 p->unit = drive; in hd_init()
748 hd_gendisk[drive] = disk; in hd_init()
769 for (drive = 0; drive < NR_HD; drive++) in hd_init()
770 add_disk(hd_gendisk[drive]); in hd_init()
779 for (drive = 0; drive < NR_HD; drive++) in hd_init()
780 put_disk(hd_gendisk[drive]); in hd_init()
788 while (drive--) in hd_init()
789 put_disk(hd_gendisk[drive]); in hd_init()