Lines Matching defs:UDP
309 #define UDP (&drive_params[drive])
672 fd_timeout.expires = jiffies + UDP->timeout;
674 if (UDP->flags & FD_DEBUG)
728 if (time_before(jiffies, UDRS->select_date + UDP->select_delay))
737 debug_dcl(UDP->flags,
739 debug_dcl(UDP->flags, "jiffies=%lu\n", jiffies);
740 debug_dcl(UDP->flags, "disk change line=%x\n", fd_inb(FD_DIR) & 0x80);
741 debug_dcl(UDP->flags, "flags=%lx\n", UDRS->flags);
743 if (UDP->flags & FD_BROKEN_DCL)
745 if ((fd_inb(FD_DIR) ^ UDP->flags) & 0x80) {
754 if ((UDP->flags & FTD_MSG) &&
796 debug_dcl(UDP->flags,
920 if (UDP->rps) {
922 UDP->spindown_offset;
923 delta = ((delta * UDP->rps) % HZ) / UDP->rps;
925 jiffies + UDP->spindown - delta;
947 if (UDRS->fd_ref == 0 || UDP->select_delay != 0)
2989 if (UDP->native_format)
2990 floppy = floppy_type + UDP->native_format;
3223 g->track <= 0 || g->track > UDP->tracks >> STRETCH(g) ||
3449 UDP->flags |= FTD_MSG;
3452 UDP->flags &= ~FTD_MSG;
3476 UDP->max_errors.reporting = (unsigned short)(param & 0x0f);
3479 outparam = &UDP->max_errors;
3482 UDP->max_errors = inparam.max_errors;
3489 *UDP = inparam.dp;
3492 outparam = UDP;
3561 if (!UDP->cmos)
3562 UDP->cmos = FLOPPY0_TYPE;
3564 if (!UDP->cmos && FLOPPY1_TYPE)
3565 UDP->cmos = FLOPPY1_TYPE;
3569 unsigned int type = UDP->cmos;
3598 *UDP = *params;
3644 if (!UDRS->fd_ref && (UDP->flags & FD_BROKEN_DCL)) {
3664 if ((UDP->cmos == 6) || (UDP->cmos == 5))
3741 if (time_after(jiffies, UDRS->last_checked + UDP->checkfreq)) {
4089 return sprintf(buf, "%X\n", UDP->cmos);