Lines Matching refs:xd_info
67 XD_INFO xd_info[XD_MAXDRIVES]; variable
142 real_devices: (void *)xd_info,
242 xd_info[i].cylinders,xd_info[i].heads, in xd_geninit()
243 xd_info[i].sectors); in xd_geninit()
264 xd_info[i].heads * xd_info[i].cylinders * in xd_geninit()
265 xd_info[i].sectors); in xd_geninit()
333 g.heads = xd_info[dev].heads; in xd_ioctl()
334 g.sectors = xd_info[dev].sectors; in xd_ioctl()
335 g.cylinders = xd_info[dev].cylinders; in xd_ioctl()
414 xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors); in xd_reread_partitions()
436 control = xd_info[drive].control; in xd_readwrite()
440 track = block / xd_info[drive].sectors; in xd_readwrite()
441 head = track % xd_info[drive].heads; in xd_readwrite()
442 cylinder = track / xd_info[drive].heads; in xd_readwrite()
443 sector = block % xd_info[drive].sectors; in xd_readwrite()
697 xd_info[drive].heads = xd_geo[3 * drive + 1]; in xd_manual_geo_set()
698 xd_info[drive].cylinders= xd_geo[3 * drive]; in xd_manual_geo_set()
699 xd_info[drive].sectors = xd_geo[3 * drive + 2]; in xd_manual_geo_set()
752 xd_info[drive].heads = (u8)(geometry_table[n][1]); /* heads */ in xd_dtc5150cx_init_drive()
753 xd_info[drive].cylinders = geometry_table[n][0]; /* cylinders */ in xd_dtc5150cx_init_drive()
754 xd_info[drive].sectors = 17; /* sectors */ in xd_dtc5150cx_init_drive()
756 xd_info[drive].rwrite = geometry_table[n][2]; /* reduced write */ in xd_dtc5150cx_init_drive()
757 xd_info[drive].precomp = geometry_table[n][3] /* write precomp */ in xd_dtc5150cx_init_drive()
758 xd_info[drive].ecc = 0x0B; /* ecc length */ in xd_dtc5150cx_init_drive()
765 xd_info[drive].control = 5; /* control byte */ in xd_dtc5150cx_init_drive()
766 …xd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,geometry_table[n][… in xd_dtc5150cx_init_drive()
776 xd_info[drive].heads = buf[0x0A]; /* heads */ in xd_dtc_init_drive()
777 xd_info[drive].cylinders = ((u16 *) (buf))[0x04]; /* cylinders */ in xd_dtc_init_drive()
778 xd_info[drive].sectors = 17; /* sectors */ in xd_dtc_init_drive()
782 xd_info[drive].rwrite = ((u16 *) (buf + 1))[0x05]; /* reduced write */ in xd_dtc_init_drive()
783 xd_info[drive].precomp = ((u16 *) (buf + 1))[0x06]; /* write precomp */ in xd_dtc_init_drive()
784 xd_info[drive].ecc = buf[0x0F]; /* ecc length */ in xd_dtc_init_drive()
786 xd_info[drive].control = 0; /* control byte */ in xd_dtc_init_drive()
788 …xd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u16 *) (buf + 1)… in xd_dtc_init_drive()
847 xd_info[drive].heads = buf[0x1AF]; /* heads */ in xd_wd_init_drive()
848 xd_info[drive].cylinders = ((u16 *) (buf + 1))[0xD6]; /* cylinders */ in xd_wd_init_drive()
849 xd_info[drive].sectors = 17; /* sectors */ in xd_wd_init_drive()
853 xd_info[drive].rwrite = ((u16 *) (buf))[0xD8]; /* reduced write */ in xd_wd_init_drive()
854 xd_info[drive].wprecomp = ((u16 *) (buf))[0xDA]; /* write precomp */ in xd_wd_init_drive()
855 xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ in xd_wd_init_drive()
857 xd_info[drive].control = buf[0x1B5]; /* control byte */ in xd_wd_init_drive()
858 use_jumper_geo = !(xd_info[drive].heads) || !(xd_info[drive].cylinders); in xd_wd_init_drive()
861 xd_info[drive].control = rll ? 7 : 5; in xd_wd_init_drive()
865 xd_info[drive].cylinders = geometry_table[n][0]; in xd_wd_init_drive()
866 xd_info[drive].heads = (u8)(geometry_table[n][1]); in xd_wd_init_drive()
867 xd_info[drive].control = rll ? 7 : 5; in xd_wd_init_drive()
869 xd_info[drive].rwrite = geometry_table[n][2]; in xd_wd_init_drive()
870 xd_info[drive].wprecomp = geometry_table[n][3]; in xd_wd_init_drive()
871 xd_info[drive].ecc = 0x0B; in xd_wd_init_drive()
876 xd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders, in xd_wd_init_drive()
879 xd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders, in xd_wd_init_drive()
886 if ((xd_info[drive].cylinders *= 26, in xd_wd_init_drive()
887 xd_info[drive].cylinders /= 17) > 1023) in xd_wd_init_drive()
888 xd_info[drive].cylinders = 1023; /* 1024 ? */ in xd_wd_init_drive()
890 xd_info[drive].rwrite *= 26; in xd_wd_init_drive()
891 xd_info[drive].rwrite /= 17; in xd_wd_init_drive()
892 xd_info[drive].wprecomp *= 26 in xd_wd_init_drive()
893 xd_info[drive].wprecomp /= 17; in xd_wd_init_drive()
924 xd_info[drive].heads = buf[0x04]; /* heads */ in xd_seagate_init_drive()
925 xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ in xd_seagate_init_drive()
926 xd_info[drive].sectors = buf[0x05]; /* sectors */ in xd_seagate_init_drive()
927 xd_info[drive].control = 0; /* control byte */ in xd_seagate_init_drive()
957 xd_info[drive].control = 2; in xd_omti_init_drive()
1020 xd_info[drive].heads = (u8)(geometry_table[n][1]); /* heads */ in xd_xebec_init_drive()
1021 xd_info[drive].cylinders = geometry_table[n][0]; /* cylinders */ in xd_xebec_init_drive()
1022 xd_info[drive].sectors = 17; /* sectors */ in xd_xebec_init_drive()
1024 xd_info[drive].rwrite = geometry_table[n][2]; /* reduced write */ in xd_xebec_init_drive()
1025 xd_info[drive].precomp = geometry_table[n][3] /* write precomp */ in xd_xebec_init_drive()
1026 xd_info[drive].ecc = 0x0B; /* ecc length */ in xd_xebec_init_drive()
1029 xd_info[drive].control = geometry_table[n][4]; /* control byte */ in xd_xebec_init_drive()
1030 …xd_setparam(CMD_XBSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,geometry_table[n][2… in xd_xebec_init_drive()
1055 xd_info[drive].heads = (u8) min[0] + 1; in xd_override_init_drive()
1056 xd_info[drive].cylinders = (u16) min[1] + 1; in xd_override_init_drive()
1057 xd_info[drive].sectors = (u8) min[2] + 1; in xd_override_init_drive()
1059 xd_info[drive].control = 0; in xd_override_init_drive()