• Home
  • Raw
  • Download

Lines Matching refs:serial

230 	struct usb_device *dev = port->serial->dev;  in mos7840_set_reg_sync()
248 struct usb_device *dev = port->serial->dev; in mos7840_get_reg_sync()
282 struct usb_device *dev = port->serial->dev; in mos7840_set_uart_reg()
286 if (port->serial->num_ports == 2 && port->port_number != 0) in mos7840_set_uart_reg()
305 struct usb_device *dev = port->serial->dev; in mos7840_get_uart_reg()
315 if (port->serial->num_ports == 2 && port->port_number != 0) in mos7840_get_uart_reg()
373 struct usb_device *dev = mcs->port->serial->dev; in mos7840_set_led_async()
391 struct usb_device *dev = port->serial->dev; in mos7840_set_led_sync()
515 struct usb_serial *serial = port->serial; in mos7840_open() local
522 usb_clear_halt(serial->dev, port->write_urb->pipe); in mos7840_open()
523 usb_clear_halt(serial->dev, port->read_urb->pipe); in mos7840_open()
683 if ((serial->num_ports == 2) && (((__u16)port->port_number % 2) != 0)) { in mos7840_open()
685 serial->dev, in mos7840_open()
686 usb_rcvbulkpipe(serial->dev, in mos7840_open()
693 serial->dev, in mos7840_open()
694 usb_rcvbulkpipe(serial->dev, in mos7840_open()
848 struct usb_serial *serial = port->serial; in mos7840_write() local
890 if ((serial->num_ports == 2) && (((__u16)port->port_number % 2) != 0)) { in mos7840_write()
892 serial->dev, in mos7840_write()
893 usb_sndbulkpipe(serial->dev, in mos7840_write()
900 serial->dev, in mos7840_write()
901 usb_sndbulkpipe(serial->dev, in mos7840_write()
1412 static int mos7810_check(struct usb_serial *serial) in mos7810_check() argument
1425 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in mos7810_check()
1433 usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in mos7810_check()
1439 res = usb_control_msg(serial->dev, in mos7810_check()
1440 usb_rcvctrlpipe(serial->dev, 0), MCS_RDREQ, in mos7810_check()
1454 usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), MCS_WRREQ, in mos7810_check()
1466 static int mos7840_probe(struct usb_serial *serial, in mos7840_probe() argument
1480 usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in mos7840_probe()
1487 else if (mos7810_check(serial)) in mos7840_probe()
1494 usb_set_serial_data(serial, (void *)device_flags); in mos7840_probe()
1499 static int mos7840_calc_num_ports(struct usb_serial *serial, in mos7840_calc_num_ports() argument
1502 unsigned long device_flags = (unsigned long)usb_get_serial_data(serial); in mos7840_calc_num_ports()
1509 dev_err(&serial->interface->dev, "missing endpoints\n"); in mos7840_calc_num_ports()
1516 static int mos7840_attach(struct usb_serial *serial) in mos7840_attach() argument
1518 struct device *dev = &serial->interface->dev; in mos7840_attach()
1524 status = mos7840_set_reg_sync(serial->port[0], ZLP_REG5, val); in mos7840_attach()
1535 struct usb_serial *serial = port->serial; in mos7840_port_probe() local
1536 unsigned long device_flags = (unsigned long)usb_get_serial_data(serial); in mos7840_port_probe()
1574 if (serial->num_ports == 2) in mos7840_port_probe()
1661 if ((mos7840_port->port_num != 1) && (serial->num_ports == 2)) { in mos7840_port_probe()
1740 static int mos7840_suspend(struct usb_serial *serial, pm_message_t message) in mos7840_suspend() argument
1746 for (i = 0; i < serial->num_ports; ++i) { in mos7840_suspend()
1747 port = serial->port[i]; in mos7840_suspend()
1760 static int mos7840_resume(struct usb_serial *serial) in mos7840_resume() argument
1767 for (i = 0; i < serial->num_ports; ++i) { in mos7840_resume()
1768 port = serial->port[i]; in mos7840_resume()