• Home
  • Raw
  • Download

Lines Matching refs:serial

63 static int keyspan_usa28_send_setup(struct usb_serial *serial,
66 static int keyspan_usa26_send_setup(struct usb_serial *serial,
69 static int keyspan_usa49_send_setup(struct usb_serial *serial,
72 static int keyspan_usa90_send_setup(struct usb_serial *serial,
75 static int keyspan_usa67_send_setup(struct usb_serial *serial,
853 keyspan_usa26_send_setup(port->serial, port, in usa26_outcont_callback()
862 struct usb_serial *serial; in usa26_instat_callback() local
868 serial = urb->context; in usa26_instat_callback()
883 if (msg->port >= serial->num_ports) { in usa26_instat_callback()
887 port = serial->port[msg->port]; in usa26_instat_callback()
971 keyspan_usa28_send_setup(port->serial, port, in usa28_outcont_callback()
981 struct usb_serial *serial; in usa28_instat_callback() local
987 serial = urb->context; in usa28_instat_callback()
1003 if (msg->port >= serial->num_ports) { in usa28_instat_callback()
1007 port = serial->port[msg->port]; in usa28_instat_callback()
1036 struct usb_serial *serial; in usa49_glocont_callback() local
1041 serial = urb->context; in usa49_glocont_callback()
1042 for (i = 0; i < serial->num_ports; ++i) { in usa49_glocont_callback()
1043 port = serial->port[i]; in usa49_glocont_callback()
1050 keyspan_usa49_send_setup(serial, port, in usa49_glocont_callback()
1064 struct usb_serial *serial; in usa49_instat_callback() local
1070 serial = urb->context; in usa49_instat_callback()
1087 if (msg->portNumber >= serial->num_ports) { in usa49_instat_callback()
1092 port = serial->port[msg->portNumber]; in usa49_instat_callback()
1173 struct usb_serial *serial; in usa49wg_indat_callback() local
1178 serial = urb->context; in usa49wg_indat_callback()
1193 if (data[i] >= serial->num_ports) { in usa49wg_indat_callback()
1198 port = serial->port[data[i++]]; in usa49wg_indat_callback()
1322 struct usb_serial *serial; in usa90_instat_callback() local
1328 serial = urb->context; in usa90_instat_callback()
1344 port = serial->port[0]; in usa90_instat_callback()
1377 keyspan_usa90_send_setup(port->serial, port, in usa90_outcont_callback()
1388 struct usb_serial *serial; in usa67_instat_callback() local
1394 serial = urb->context; in usa67_instat_callback()
1413 if (msg->port >= serial->num_ports) { in usa67_instat_callback()
1418 port = serial->port[msg->port]; in usa67_instat_callback()
1439 struct usb_serial *serial; in usa67_glocont_callback() local
1444 serial = urb->context; in usa67_glocont_callback()
1445 for (i = 0; i < serial->num_ports; ++i) { in usa67_glocont_callback()
1446 port = serial->port[i]; in usa67_glocont_callback()
1453 keyspan_usa67_send_setup(serial, port, in usa67_glocont_callback()
1604 static int keyspan_fake_startup(struct usb_serial *serial) in keyspan_fake_startup() argument
1608 dev_dbg(&serial->dev->dev, "Keyspan startup version %04x product %04x\n", in keyspan_fake_startup()
1609 le16_to_cpu(serial->dev->descriptor.bcdDevice), in keyspan_fake_startup()
1610 le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_fake_startup()
1612 if ((le16_to_cpu(serial->dev->descriptor.bcdDevice) & 0x8000) in keyspan_fake_startup()
1614 dev_dbg(&serial->dev->dev, "Firmware already loaded. Quitting.\n"); in keyspan_fake_startup()
1619 switch (le16_to_cpu(serial->dev->descriptor.idProduct)) { in keyspan_fake_startup()
1669 dev_err(&serial->dev->dev, "Unknown product ID (%04x)\n", in keyspan_fake_startup()
1670 le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_fake_startup()
1674 dev_dbg(&serial->dev->dev, "Uploading Keyspan %s firmware.\n", fw_name); in keyspan_fake_startup()
1676 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_fake_startup()
1677 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_fake_startup()
1690 static struct usb_endpoint_descriptor const *find_ep(struct usb_serial const *serial, in find_ep() argument
1697 iface_desc = serial->interface->cur_altsetting; in find_ep()
1703 dev_warn(&serial->interface->dev, "found no endpoint descriptor for endpoint %x\n", in find_ep()
1708 static struct urb *keyspan_setup_urb(struct usb_serial *serial, int endpoint, in keyspan_setup_urb() argument
1719 dev_dbg(&serial->interface->dev, "%s - alloc for endpoint %x\n", in keyspan_setup_urb()
1730 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb()
1737 usb_fill_int_urb(urb, serial->dev, in keyspan_setup_urb()
1738 usb_sndintpipe(serial->dev, endpoint) | dir, in keyspan_setup_urb()
1743 usb_fill_bulk_urb(urb, serial->dev, in keyspan_setup_urb()
1744 usb_sndbulkpipe(serial->dev, endpoint) | dir, in keyspan_setup_urb()
1747 dev_warn(&serial->interface->dev, in keyspan_setup_urb()
1754 dev_dbg(&serial->interface->dev, "%s - using urb %p for %s endpoint %x\n", in keyspan_setup_urb()
1812 static void keyspan_setup_urbs(struct usb_serial *serial) in keyspan_setup_urbs() argument
1818 s_priv = usb_get_serial_data(serial); in keyspan_setup_urbs()
1827 (serial, d_details->instat_endpoint, USB_DIR_IN, in keyspan_setup_urbs()
1828 serial, s_priv->instat_buf, INSTAT_BUFLEN, in keyspan_setup_urbs()
1832 (serial, d_details->indat_endpoint, USB_DIR_IN, in keyspan_setup_urbs()
1833 serial, s_priv->indat_buf, INDAT49W_BUFLEN, in keyspan_setup_urbs()
1837 (serial, d_details->glocont_endpoint, USB_DIR_OUT, in keyspan_setup_urbs()
1838 serial, s_priv->glocont_buf, GLOCONT_BUFLEN, in keyspan_setup_urbs()
2029 static int keyspan_usa26_send_setup(struct usb_serial *serial, in keyspan_usa26_send_setup() argument
2042 s_priv = usb_get_serial_data(serial); in keyspan_usa26_send_setup()
2176 static int keyspan_usa28_send_setup(struct usb_serial *serial, in keyspan_usa28_send_setup() argument
2187 s_priv = usb_get_serial_data(serial); in keyspan_usa28_send_setup()
2295 static int keyspan_usa49_send_setup(struct usb_serial *serial, in keyspan_usa49_send_setup() argument
2307 s_priv = usb_get_serial_data(serial); in keyspan_usa49_send_setup()
2454 usb_fill_control_urb(this_urb, serial->dev, in keyspan_usa49_send_setup()
2455 usb_sndctrlpipe(serial->dev, 0), in keyspan_usa49_send_setup()
2457 sizeof(msg), usa49_glocont_callback, serial); in keyspan_usa49_send_setup()
2472 static int keyspan_usa90_send_setup(struct usb_serial *serial, in keyspan_usa90_send_setup() argument
2484 s_priv = usb_get_serial_data(serial); in keyspan_usa90_send_setup()
2602 static int keyspan_usa67_send_setup(struct usb_serial *serial, in keyspan_usa67_send_setup() argument
2613 s_priv = usb_get_serial_data(serial); in keyspan_usa67_send_setup()
2747 struct usb_serial *serial = port->serial; in keyspan_send_setup() local
2751 s_priv = usb_get_serial_data(serial); in keyspan_send_setup()
2756 keyspan_usa26_send_setup(serial, port, reset_port); in keyspan_send_setup()
2759 keyspan_usa28_send_setup(serial, port, reset_port); in keyspan_send_setup()
2762 keyspan_usa49_send_setup(serial, port, reset_port); in keyspan_send_setup()
2765 keyspan_usa90_send_setup(serial, port, reset_port); in keyspan_send_setup()
2768 keyspan_usa67_send_setup(serial, port, reset_port); in keyspan_send_setup()
2776 static int keyspan_startup(struct usb_serial *serial) in keyspan_startup() argument
2784 le16_to_cpu(serial->dev->descriptor.idProduct)) in keyspan_startup()
2787 dev_err(&serial->dev->dev, "%s - unknown product id %x\n", in keyspan_startup()
2788 __func__, le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_startup()
2814 usb_set_serial_data(serial, s_priv); in keyspan_startup()
2816 keyspan_setup_urbs(serial); in keyspan_startup()
2821 dev_dbg(&serial->dev->dev, "%s - submit instat urb failed %d\n", __func__, err); in keyspan_startup()
2826 dev_dbg(&serial->dev->dev, "%s - submit indat urb failed %d\n", __func__, err); in keyspan_startup()
2843 static void keyspan_disconnect(struct usb_serial *serial) in keyspan_disconnect() argument
2847 s_priv = usb_get_serial_data(serial); in keyspan_disconnect()
2854 static void keyspan_release(struct usb_serial *serial) in keyspan_release() argument
2858 s_priv = usb_get_serial_data(serial); in keyspan_release()
2878 struct usb_serial *serial = port->serial; in keyspan_port_probe() local
2887 s_priv = usb_get_serial_data(serial); in keyspan_port_probe()
2924 p_priv->in_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe()
2933 p_priv->out_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe()
2940 p_priv->inack_urb = keyspan_setup_urb(serial, in keyspan_port_probe()
2947 p_priv->outcont_urb = keyspan_setup_urb(serial, in keyspan_port_probe()