Lines Matching refs:drive_params

400 static struct floppy_drive_params drive_params[N_DRIVE];  variable
630 if (drive_params[current_drive].flags & DEBUGT) in debugt()
679 delay = drive_params[drive].timeout; in __reschedule_timeout()
682 if (drive_params[drive].flags & FD_DEBUG) in __reschedule_timeout()
736 if (time_before(jiffies, drive_state[drive].select_date + drive_params[drive].select_delay)) in disk_change()
745 debug_dcl(drive_params[drive].flags, in disk_change()
747 debug_dcl(drive_params[drive].flags, "jiffies=%lu\n", jiffies); in disk_change()
748 debug_dcl(drive_params[drive].flags, "disk change line=%x\n", in disk_change()
750 debug_dcl(drive_params[drive].flags, "flags=%lx\n", in disk_change()
753 if (drive_params[drive].flags & FD_BROKEN_DCL) in disk_change()
756 if ((fdc_inb(fdc, FD_DIR) ^ drive_params[drive].flags) & 0x80) { in disk_change()
766 if ((drive_params[drive].flags & FTD_MSG) && in disk_change()
808 debug_dcl(drive_params[drive].flags, in set_dor()
826 if (drive_params[drive].select_delay) in twaddle()
944 if (drive_params[drive].rps) { in floppy_off()
946 drive_params[drive].spindown_offset; in floppy_off()
947 delta = ((delta * drive_params[drive].rps) % HZ) / drive_params[drive].rps; in floppy_off()
949 jiffies + drive_params[drive].spindown - delta; in floppy_off()
965 if (drive_params[current_drive].select_delay) in scandrives()
971 if (drive_state[drive].fd_ref == 0 || drive_params[drive].select_delay != 0) in scandrives()
1028 debug_dcl(drive_params[current_drive].flags, in fd_watchdog()
1328 srt = 16 - DIV_ROUND_UP(drive_params[drive].srt * scale_dtr / 1000, in fdc_specify()
1336 hlt = DIV_ROUND_UP(drive_params[drive].hlt * scale_dtr / 2, in fdc_specify()
1343 hut = DIV_ROUND_UP(drive_params[drive].hut * scale_dtr / 16, in fdc_specify()
1457 if (drive_params[current_drive].flags & FTD_MSG) in interpret_errors()
1460 } else if (floppy_errors >= drive_params[current_drive].max_errors.reporting) { in interpret_errors()
1498 ready_date = drive_state[current_drive].spinup_date + drive_params[current_drive].spinup; in setup_rw_floppy()
1503 if (time_after(ready_date, jiffies + drive_params[current_drive].select_delay)) { in setup_rw_floppy()
1504 ready_date -= drive_params[current_drive].select_delay; in setup_rw_floppy()
1557 debug_dcl(drive_params[current_drive].flags, in seek_interrupt()
1559 debug_dcl(drive_params[current_drive].flags, "jiffies=%lu\n", in seek_interrupt()
1583 debug_dcl(drive_params[drive].flags, in check_wp()
1585 debug_dcl(drive_params[drive].flags, "wp=%x\n", in check_wp()
1602 debug_dcl(drive_params[current_drive].flags, in seek_floppy()
1628 if (drive_params[current_drive].flags & FD_SILENT_DCL_CLEAR) { in seek_floppy()
1680 debug_dcl(drive_params[current_drive].flags, in recal_interrupt()
1925 …return fd_wait_for_completion(drive_state[current_drive].select_date + drive_params[current_drive]… in start_motor()
1940 debug_dcl(drive_params[current_drive].flags, in floppy_ready()
1943 disk_change(current_drive) && !drive_params[current_drive].select_delay) in floppy_ready()
1972 debug_dcl(drive_params[current_drive].flags, in floppy_start()
2079 !drive_params[drive].autodetect[probed_format]) { in next_valid_format()
2083 if (floppy_type[drive_params[drive].autodetect[probed_format]].sect) { in next_valid_format()
2102 if (err_count > drive_params[current_drive].max_errors.abort) in bad_flp_intr()
2104 if (err_count > drive_params[current_drive].max_errors.reset) in bad_flp_intr()
2106 else if (err_count > drive_params[current_drive].max_errors.recal) in bad_flp_intr()
2237 _floppy->track > drive_params[current_drive].tracks || in do_format()
2394 if (drive_params[current_drive].flags & FTD_MSG) in rw_interrupt()
2822 …_floppy = floppy_type + drive_params[current_drive].autodetect[drive_state[current_drive].probed_f… in redo_fd_request()
2901 debug_dcl(drive_params[current_drive].flags, in poll_drive()
2974 if (drive_params[drive].native_format) in drive_name()
2975 floppy = floppy_type + drive_params[drive].native_format; in drive_name()
3171 debug_dcl(drive_params[current_drive].flags, in raw_cmd_ioctl()
3239 g->track <= 0 || g->track > drive_params[drive].tracks >> STRETCH(g) || in set_geometry()
3487 drive_params[drive].flags |= FTD_MSG; in fd_locked_ioctl()
3490 drive_params[drive].flags &= ~FTD_MSG; in fd_locked_ioctl()
3514 drive_params[drive].max_errors.reporting = (unsigned short)(param & 0x0f); in fd_locked_ioctl()
3517 outparam = &drive_params[drive].max_errors; in fd_locked_ioctl()
3520 drive_params[drive].max_errors = inparam.max_errors; in fd_locked_ioctl()
3530 drive_params[drive] = inparam.dp; in fd_locked_ioctl()
3533 outparam = &drive_params[drive]; in fd_locked_ioctl()
3722 drive_params[drive].cmos = v.cmos; in compat_setdrvprm()
3723 drive_params[drive].max_dtr = v.max_dtr; in compat_setdrvprm()
3724 drive_params[drive].hlt = v.hlt; in compat_setdrvprm()
3725 drive_params[drive].hut = v.hut; in compat_setdrvprm()
3726 drive_params[drive].srt = v.srt; in compat_setdrvprm()
3727 drive_params[drive].spinup = v.spinup; in compat_setdrvprm()
3728 drive_params[drive].spindown = v.spindown; in compat_setdrvprm()
3729 drive_params[drive].spindown_offset = v.spindown_offset; in compat_setdrvprm()
3730 drive_params[drive].select_delay = v.select_delay; in compat_setdrvprm()
3731 drive_params[drive].rps = v.rps; in compat_setdrvprm()
3732 drive_params[drive].tracks = v.tracks; in compat_setdrvprm()
3733 drive_params[drive].timeout = v.timeout; in compat_setdrvprm()
3734 drive_params[drive].interleave_sect = v.interleave_sect; in compat_setdrvprm()
3735 drive_params[drive].max_errors = v.max_errors; in compat_setdrvprm()
3736 drive_params[drive].flags = v.flags; in compat_setdrvprm()
3737 drive_params[drive].read_track = v.read_track; in compat_setdrvprm()
3738 memcpy(drive_params[drive].autodetect, v.autodetect, in compat_setdrvprm()
3740 drive_params[drive].checkfreq = v.checkfreq; in compat_setdrvprm()
3741 drive_params[drive].native_format = v.native_format; in compat_setdrvprm()
3753 v.cmos = drive_params[drive].cmos; in compat_getdrvprm()
3754 v.max_dtr = drive_params[drive].max_dtr; in compat_getdrvprm()
3755 v.hlt = drive_params[drive].hlt; in compat_getdrvprm()
3756 v.hut = drive_params[drive].hut; in compat_getdrvprm()
3757 v.srt = drive_params[drive].srt; in compat_getdrvprm()
3758 v.spinup = drive_params[drive].spinup; in compat_getdrvprm()
3759 v.spindown = drive_params[drive].spindown; in compat_getdrvprm()
3760 v.spindown_offset = drive_params[drive].spindown_offset; in compat_getdrvprm()
3761 v.select_delay = drive_params[drive].select_delay; in compat_getdrvprm()
3762 v.rps = drive_params[drive].rps; in compat_getdrvprm()
3763 v.tracks = drive_params[drive].tracks; in compat_getdrvprm()
3764 v.timeout = drive_params[drive].timeout; in compat_getdrvprm()
3765 v.interleave_sect = drive_params[drive].interleave_sect; in compat_getdrvprm()
3766 v.max_errors = drive_params[drive].max_errors; in compat_getdrvprm()
3767 v.flags = drive_params[drive].flags; in compat_getdrvprm()
3768 v.read_track = drive_params[drive].read_track; in compat_getdrvprm()
3769 memcpy(v.autodetect, drive_params[drive].autodetect, in compat_getdrvprm()
3771 v.checkfreq = drive_params[drive].checkfreq; in compat_getdrvprm()
3772 v.native_format = drive_params[drive].native_format; in compat_getdrvprm()
3925 if (!drive_params[drive].cmos) in config_types()
3926 drive_params[drive].cmos = FLOPPY0_TYPE; in config_types()
3928 if (!drive_params[drive].cmos) in config_types()
3929 drive_params[drive].cmos = FLOPPY1_TYPE; in config_types()
3934 unsigned int type = drive_params[drive].cmos; in config_types()
3964 drive_params[drive] = *params; in config_types()
4006 if (!drive_state[drive].fd_ref && (drive_params[drive].flags & FD_BROKEN_DCL)) { in floppy_open()
4020 if ((drive_params[drive].cmos == 6) || (drive_params[drive].cmos == 5)) in floppy_open()
4100 if (time_after(jiffies, drive_state[drive].last_checked + drive_params[drive].checkfreq)) { in floppy_check_events()
4370 drive_params[current_drive].cmos = ints[2]; in set_cmos()
4459 return sprintf(buf, "%X\n", drive_params[drive].cmos); in floppy_cmos_show()