Lines Matching refs:UDP
308 #define UDP (&drive_params[drive]) macro
680 delay = UDP->timeout; in __reschedule_timeout()
683 if (UDP->flags & FD_DEBUG) in __reschedule_timeout()
737 if (time_before(jiffies, UDRS->select_date + UDP->select_delay)) in disk_change()
746 debug_dcl(UDP->flags, in disk_change()
748 debug_dcl(UDP->flags, "jiffies=%lu\n", jiffies); in disk_change()
749 debug_dcl(UDP->flags, "disk change line=%x\n", fd_inb(FD_DIR) & 0x80); in disk_change()
750 debug_dcl(UDP->flags, "flags=%lx\n", UDRS->flags); in disk_change()
752 if (UDP->flags & FD_BROKEN_DCL) in disk_change()
754 if ((fd_inb(FD_DIR) ^ UDP->flags) & 0x80) { in disk_change()
763 if ((UDP->flags & FTD_MSG) && in disk_change()
805 debug_dcl(UDP->flags, in set_dor()
921 if (UDP->rps) { in floppy_off()
923 UDP->spindown_offset; in floppy_off()
924 delta = ((delta * UDP->rps) % HZ) / UDP->rps; in floppy_off()
926 jiffies + UDP->spindown - delta; in floppy_off()
948 if (UDRS->fd_ref == 0 || UDP->select_delay != 0) in scandrives()
3001 if (UDP->native_format) in drive_name()
3002 floppy = floppy_type + UDP->native_format; in drive_name()
3238 g->track <= 0 || g->track > UDP->tracks >> STRETCH(g) || in set_geometry()
3464 UDP->flags |= FTD_MSG; in fd_locked_ioctl()
3467 UDP->flags &= ~FTD_MSG; in fd_locked_ioctl()
3491 UDP->max_errors.reporting = (unsigned short)(param & 0x0f); in fd_locked_ioctl()
3494 outparam = &UDP->max_errors; in fd_locked_ioctl()
3497 UDP->max_errors = inparam.max_errors; in fd_locked_ioctl()
3504 *UDP = inparam.dp; in fd_locked_ioctl()
3507 outparam = UDP; in fd_locked_ioctl()
3576 if (!UDP->cmos) in config_types()
3577 UDP->cmos = FLOPPY0_TYPE; in config_types()
3579 if (!UDP->cmos && FLOPPY1_TYPE) in config_types()
3580 UDP->cmos = FLOPPY1_TYPE; in config_types()
3585 unsigned int type = UDP->cmos; in config_types()
3614 *UDP = *params; in config_types()
3656 if (!UDRS->fd_ref && (UDP->flags & FD_BROKEN_DCL)) { in floppy_open()
3670 if ((UDP->cmos == 6) || (UDP->cmos == 5)) in floppy_open()
3749 if (time_after(jiffies, UDRS->last_checked + UDP->checkfreq)) { in floppy_check_events()
4110 return sprintf(buf, "%X\n", UDP->cmos); in floppy_cmos_show()