struct quatech2_port *qt_port;
int i;
- dbg("enterting %s", __func__);
-
for (i = 0; i < serial->num_ports; i++) {
port = serial->port[i];
if (!port)
if (port_paranoia_check(port, __func__))
return -ENODEV;
- dbg("%s(): port %d", __func__, port->number);
-
serial = port->serial; /* get the parent device structure */
if (serial_paranoia_check(serial, __func__)) {
dbg("usb_serial struct failed sanity check");
__u8 lsr_value = 0; /* value of Line Status Register */
int status; /* result of last USB comms function */
- dbg("%s(): port %d", __func__, port->number);
serial = port->serial; /* get the parent device structure */
dev_extra = qt2_get_dev_private(serial);
/* get the device private data */
int status;
__u16 UartNumber;
- dbg("%s(): port %d", __func__, port->number);
-
serial = port->serial;
-
UartNumber = port->number;
if (old_termios && !tty_termios_hw_change(old_termios, tty->termios))
if (serial == NULL)
return -ENODEV;
- dbg("%s(): port %d, tty =0x%p", __func__, port->number, tty);
UartNumber = tty->index - serial->minor;
- dbg("UartNumber is %d", UartNumber);
status = qt2_box_get_register(port->serial, UartNumber,
QT2_MODEM_CONTROL_REGISTER, &mcr_value);
return -ENODEV;
UartNumber = tty->index - serial->minor;
- dbg("%s(): port %d, UartNumber %d", __func__, port->number, UartNumber);
status = qt2_box_get_register(port->serial, UartNumber,
QT2_MODEM_CONTROL_REGISTER, &mcr_value);
port->number, NULL, 0, 300);
exit:
mutex_unlock(&port_extra->modelock);
- dbg("%s(): exit port %d", __func__, port->number);
}
/**
struct usb_serial_port *port = tty->driver_data;
struct usb_serial *serial = port->serial;
struct quatech2_port *port_extra; /* extra data for this port */
- dbg("%s(): port %d", __func__, port->number);
port_extra = qt2_get_port_private(port);
if (!serial) {
port->number);
return;
}
- dbg("%s(): enter port %d", __func__, port->number);
dev_extra = qt2_get_dev_private(serial);
port_extra = qt2_get_port_private(port);
port0 = serial->port[0]; /* get the first port's device structure */
}
exit:
mutex_unlock(&port_extra->modelock);
- dbg("%s(): exit port %d", __func__, port->number);
return;
}
/* cribbed from serqt_usb2 driver, but not sure which work needs
* scheduling - port0 or currently active port? */
/* schedule_work(&port->work); */
- dbg("%s() completed", __func__);
return;
}
{
struct usb_serial_port *port = (struct usb_serial_port *)urb->context;
struct usb_serial *serial = port->serial;
- dbg("%s(): port %d", __func__, port->number);
+
if (!serial) {
dbg("%s(): bad serial pointer, exiting", __func__);
return;
*/
/*port_softint((void *) serial); commented in vendor driver */
schedule_work(&port->work);
- dbg("%s(): port %d exit", __func__, port->number);
return;
}