Lines Matching refs:drive_params
400 static struct floppy_drive_params drive_params[N_DRIVE]; variable
631 if (drive_params[current_drive].flags & DEBUGT) in debugt()
680 delay = drive_params[drive].timeout; in __reschedule_timeout()
683 if (drive_params[drive].flags & FD_DEBUG) in __reschedule_timeout()
737 if (time_before(jiffies, drive_state[drive].select_date + drive_params[drive].select_delay)) in disk_change()
746 debug_dcl(drive_params[drive].flags, in disk_change()
748 debug_dcl(drive_params[drive].flags, "jiffies=%lu\n", jiffies); in disk_change()
749 debug_dcl(drive_params[drive].flags, "disk change line=%x\n", in disk_change()
751 debug_dcl(drive_params[drive].flags, "flags=%lx\n", in disk_change()
754 if (drive_params[drive].flags & FD_BROKEN_DCL) in disk_change()
757 if ((fdc_inb(fdc, FD_DIR) ^ drive_params[drive].flags) & 0x80) { in disk_change()
767 if ((drive_params[drive].flags & FTD_MSG) && in disk_change()
809 debug_dcl(drive_params[drive].flags, in set_dor()
827 if (drive_params[drive].select_delay) in twaddle()
945 if (drive_params[drive].rps) { in floppy_off()
947 drive_params[drive].spindown_offset; in floppy_off()
948 delta = ((delta * drive_params[drive].rps) % HZ) / drive_params[drive].rps; in floppy_off()
950 jiffies + drive_params[drive].spindown - delta; in floppy_off()
966 if (drive_params[current_drive].select_delay) in scandrives()
972 if (drive_state[drive].fd_ref == 0 || drive_params[drive].select_delay != 0) in scandrives()
1025 debug_dcl(drive_params[current_drive].flags, in fd_watchdog()
1325 srt = 16 - DIV_ROUND_UP(drive_params[drive].srt * scale_dtr / 1000, in fdc_specify()
1333 hlt = DIV_ROUND_UP(drive_params[drive].hlt * scale_dtr / 2, in fdc_specify()
1340 hut = DIV_ROUND_UP(drive_params[drive].hut * scale_dtr / 16, in fdc_specify()
1454 if (drive_params[current_drive].flags & FTD_MSG) in interpret_errors()
1457 } else if (floppy_errors >= drive_params[current_drive].max_errors.reporting) { in interpret_errors()
1495 ready_date = drive_state[current_drive].spinup_date + drive_params[current_drive].spinup; in setup_rw_floppy()
1500 if (time_after(ready_date, jiffies + drive_params[current_drive].select_delay)) { in setup_rw_floppy()
1501 ready_date -= drive_params[current_drive].select_delay; in setup_rw_floppy()
1554 debug_dcl(drive_params[current_drive].flags, in seek_interrupt()
1556 debug_dcl(drive_params[current_drive].flags, "jiffies=%lu\n", in seek_interrupt()
1580 debug_dcl(drive_params[drive].flags, in check_wp()
1582 debug_dcl(drive_params[drive].flags, "wp=%x\n", in check_wp()
1599 debug_dcl(drive_params[current_drive].flags, in seek_floppy()
1625 if (drive_params[current_drive].flags & FD_SILENT_DCL_CLEAR) { in seek_floppy()
1677 debug_dcl(drive_params[current_drive].flags, in recal_interrupt()
1922 …return fd_wait_for_completion(drive_state[current_drive].select_date + drive_params[current_drive]… in start_motor()
1937 debug_dcl(drive_params[current_drive].flags, in floppy_ready()
1940 disk_change(current_drive) && !drive_params[current_drive].select_delay) in floppy_ready()
1969 debug_dcl(drive_params[current_drive].flags, in floppy_start()
2076 !drive_params[drive].autodetect[probed_format]) { in next_valid_format()
2080 if (floppy_type[drive_params[drive].autodetect[probed_format]].sect) { in next_valid_format()
2099 if (err_count > drive_params[current_drive].max_errors.abort) in bad_flp_intr()
2101 if (err_count > drive_params[current_drive].max_errors.reset) in bad_flp_intr()
2103 else if (err_count > drive_params[current_drive].max_errors.recal) in bad_flp_intr()
2234 _floppy->track > drive_params[current_drive].tracks || in do_format()
2391 if (drive_params[current_drive].flags & FTD_MSG) in rw_interrupt()
2820 …_floppy = floppy_type + drive_params[current_drive].autodetect[drive_state[current_drive].probed_f… in redo_fd_request()
2899 debug_dcl(drive_params[current_drive].flags, in poll_drive()
2972 if (drive_params[drive].native_format) in drive_name()
2973 floppy = floppy_type + drive_params[drive].native_format; in drive_name()
3169 debug_dcl(drive_params[current_drive].flags, in raw_cmd_ioctl()
3235 g->track <= 0 || g->track > drive_params[drive].tracks >> STRETCH(g) || in set_geometry()
3481 drive_params[drive].flags |= FTD_MSG; in fd_locked_ioctl()
3484 drive_params[drive].flags &= ~FTD_MSG; in fd_locked_ioctl()
3508 drive_params[drive].max_errors.reporting = (unsigned short)(param & 0x0f); in fd_locked_ioctl()
3511 outparam = &drive_params[drive].max_errors; in fd_locked_ioctl()
3514 drive_params[drive].max_errors = inparam.max_errors; in fd_locked_ioctl()
3524 drive_params[drive] = inparam.dp; in fd_locked_ioctl()
3527 outparam = &drive_params[drive]; in fd_locked_ioctl()
3716 drive_params[drive].cmos = v.cmos; in compat_setdrvprm()
3717 drive_params[drive].max_dtr = v.max_dtr; in compat_setdrvprm()
3718 drive_params[drive].hlt = v.hlt; in compat_setdrvprm()
3719 drive_params[drive].hut = v.hut; in compat_setdrvprm()
3720 drive_params[drive].srt = v.srt; in compat_setdrvprm()
3721 drive_params[drive].spinup = v.spinup; in compat_setdrvprm()
3722 drive_params[drive].spindown = v.spindown; in compat_setdrvprm()
3723 drive_params[drive].spindown_offset = v.spindown_offset; in compat_setdrvprm()
3724 drive_params[drive].select_delay = v.select_delay; in compat_setdrvprm()
3725 drive_params[drive].rps = v.rps; in compat_setdrvprm()
3726 drive_params[drive].tracks = v.tracks; in compat_setdrvprm()
3727 drive_params[drive].timeout = v.timeout; in compat_setdrvprm()
3728 drive_params[drive].interleave_sect = v.interleave_sect; in compat_setdrvprm()
3729 drive_params[drive].max_errors = v.max_errors; in compat_setdrvprm()
3730 drive_params[drive].flags = v.flags; in compat_setdrvprm()
3731 drive_params[drive].read_track = v.read_track; in compat_setdrvprm()
3732 memcpy(drive_params[drive].autodetect, v.autodetect, in compat_setdrvprm()
3734 drive_params[drive].checkfreq = v.checkfreq; in compat_setdrvprm()
3735 drive_params[drive].native_format = v.native_format; in compat_setdrvprm()
3747 v.cmos = drive_params[drive].cmos; in compat_getdrvprm()
3748 v.max_dtr = drive_params[drive].max_dtr; in compat_getdrvprm()
3749 v.hlt = drive_params[drive].hlt; in compat_getdrvprm()
3750 v.hut = drive_params[drive].hut; in compat_getdrvprm()
3751 v.srt = drive_params[drive].srt; in compat_getdrvprm()
3752 v.spinup = drive_params[drive].spinup; in compat_getdrvprm()
3753 v.spindown = drive_params[drive].spindown; in compat_getdrvprm()
3754 v.spindown_offset = drive_params[drive].spindown_offset; in compat_getdrvprm()
3755 v.select_delay = drive_params[drive].select_delay; in compat_getdrvprm()
3756 v.rps = drive_params[drive].rps; in compat_getdrvprm()
3757 v.tracks = drive_params[drive].tracks; in compat_getdrvprm()
3758 v.timeout = drive_params[drive].timeout; in compat_getdrvprm()
3759 v.interleave_sect = drive_params[drive].interleave_sect; in compat_getdrvprm()
3760 v.max_errors = drive_params[drive].max_errors; in compat_getdrvprm()
3761 v.flags = drive_params[drive].flags; in compat_getdrvprm()
3762 v.read_track = drive_params[drive].read_track; in compat_getdrvprm()
3763 memcpy(v.autodetect, drive_params[drive].autodetect, in compat_getdrvprm()
3765 v.checkfreq = drive_params[drive].checkfreq; in compat_getdrvprm()
3766 v.native_format = drive_params[drive].native_format; in compat_getdrvprm()
3919 if (!drive_params[drive].cmos) in config_types()
3920 drive_params[drive].cmos = FLOPPY0_TYPE; in config_types()
3922 if (!drive_params[drive].cmos) in config_types()
3923 drive_params[drive].cmos = FLOPPY1_TYPE; in config_types()
3928 unsigned int type = drive_params[drive].cmos; in config_types()
3958 drive_params[drive] = *params; in config_types()
4000 if (!drive_state[drive].fd_ref && (drive_params[drive].flags & FD_BROKEN_DCL)) { in floppy_open()
4014 if ((drive_params[drive].cmos == 6) || (drive_params[drive].cmos == 5)) in floppy_open()
4095 if (time_after(jiffies, drive_state[drive].last_checked + drive_params[drive].checkfreq)) { in floppy_check_events()
4364 drive_params[current_drive].cmos = ints[2]; in set_cmos()
4453 return sprintf(buf, "%X\n", drive_params[drive].cmos); in floppy_cmos_show()