Lines Matching refs:NR_HD
100 static int NR_HD = ((sizeof (hd_info))/(sizeof (struct hd_i_struct))); variable
103 static int NR_HD; variable
162 NR_HD = hdind+1; in hd_setup()
339 if (++i < NR_HD) { in reset_hd()
570 if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { in hd_request()
572 if (dev >= (NR_HD<<6)) in hd_request()
634 if (dev >= NR_HD) in hd_ioctl()
678 if (target >= NR_HD) in hd_open()
748 if (!NR_HD) { in hd_geninit()
762 if (hd_info[drive].cyl && NR_HD == drive) in hd_geninit()
763 NR_HD++; in hd_geninit()
797 NR_HD = 2; in hd_geninit()
799 NR_HD = 1; in hd_geninit()
804 if (!NR_HD) { in hd_geninit()
814 for (drive=0 ; drive < NR_HD ; drive++) { in hd_geninit()
821 if (!NR_HD) in hd_geninit()
827 NR_HD = 0; in hd_geninit()
833 hd_gendisk.nr_real = NR_HD; in hd_geninit()
835 for(drive=0; drive < NR_HD; drive++) in hd_geninit()