• Home
  • Raw
  • Download

Lines Matching refs:serial

378 		keyspan_usa26_send_setup(port->serial, port,  in usa26_outcont_callback()
387 struct usb_serial *serial; in usa26_instat_callback() local
393 serial = urb->context; in usa26_instat_callback()
408 if (msg->port >= serial->num_ports) { in usa26_instat_callback()
412 port = serial->port[msg->port]; in usa26_instat_callback()
496 keyspan_usa28_send_setup(port->serial, port, in usa28_outcont_callback()
506 struct usb_serial *serial; in usa28_instat_callback() local
512 serial = urb->context; in usa28_instat_callback()
528 if (msg->port >= serial->num_ports) { in usa28_instat_callback()
532 port = serial->port[msg->port]; in usa28_instat_callback()
561 struct usb_serial *serial; in usa49_glocont_callback() local
566 serial = urb->context; in usa49_glocont_callback()
567 for (i = 0; i < serial->num_ports; ++i) { in usa49_glocont_callback()
568 port = serial->port[i]; in usa49_glocont_callback()
573 keyspan_usa49_send_setup(serial, port, in usa49_glocont_callback()
587 struct usb_serial *serial; in usa49_instat_callback() local
593 serial = urb->context; in usa49_instat_callback()
610 if (msg->portNumber >= serial->num_ports) { in usa49_instat_callback()
615 port = serial->port[msg->portNumber]; in usa49_instat_callback()
696 struct usb_serial *serial; in usa49wg_indat_callback() local
701 serial = urb->context; in usa49wg_indat_callback()
716 if (data[i] >= serial->num_ports) { in usa49wg_indat_callback()
721 port = serial->port[data[i++]]; in usa49wg_indat_callback()
845 struct usb_serial *serial; in usa90_instat_callback() local
851 serial = urb->context; in usa90_instat_callback()
867 port = serial->port[0]; in usa90_instat_callback()
900 keyspan_usa90_send_setup(port->serial, port, in usa90_outcont_callback()
911 struct usb_serial *serial; in usa67_instat_callback() local
917 serial = urb->context; in usa67_instat_callback()
936 if (msg->port >= serial->num_ports) { in usa67_instat_callback()
941 port = serial->port[msg->port]; in usa67_instat_callback()
962 struct usb_serial *serial; in usa67_glocont_callback() local
967 serial = urb->context; in usa67_glocont_callback()
968 for (i = 0; i < serial->num_ports; ++i) { in usa67_glocont_callback()
969 port = serial->port[i]; in usa67_glocont_callback()
974 keyspan_usa67_send_setup(serial, port, in usa67_glocont_callback()
1125 static int keyspan_fake_startup(struct usb_serial *serial) in keyspan_fake_startup() argument
1129 dev_dbg(&serial->dev->dev, "Keyspan startup version %04x product %04x\n", in keyspan_fake_startup()
1130 le16_to_cpu(serial->dev->descriptor.bcdDevice), in keyspan_fake_startup()
1131 le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_fake_startup()
1133 if ((le16_to_cpu(serial->dev->descriptor.bcdDevice) & 0x8000) in keyspan_fake_startup()
1135 dev_dbg(&serial->dev->dev, "Firmware already loaded. Quitting.\n"); in keyspan_fake_startup()
1140 switch (le16_to_cpu(serial->dev->descriptor.idProduct)) { in keyspan_fake_startup()
1190 dev_err(&serial->dev->dev, "Unknown product ID (%04x)\n", in keyspan_fake_startup()
1191 le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_fake_startup()
1195 dev_dbg(&serial->dev->dev, "Uploading Keyspan %s firmware.\n", fw_name); in keyspan_fake_startup()
1197 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_fake_startup()
1198 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_fake_startup()
1211 static struct usb_endpoint_descriptor const *find_ep(struct usb_serial const *serial, in find_ep() argument
1218 iface_desc = serial->interface->cur_altsetting; in find_ep()
1224 dev_warn(&serial->interface->dev, "found no endpoint descriptor for endpoint %x\n", in find_ep()
1229 static struct urb *keyspan_setup_urb(struct usb_serial *serial, int endpoint, in keyspan_setup_urb() argument
1240 dev_dbg(&serial->interface->dev, "%s - alloc for endpoint %x\n", in keyspan_setup_urb()
1251 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb()
1258 usb_fill_int_urb(urb, serial->dev, in keyspan_setup_urb()
1259 usb_sndintpipe(serial->dev, endpoint) | dir, in keyspan_setup_urb()
1264 usb_fill_bulk_urb(urb, serial->dev, in keyspan_setup_urb()
1265 usb_sndbulkpipe(serial->dev, endpoint) | dir, in keyspan_setup_urb()
1268 dev_warn(&serial->interface->dev, in keyspan_setup_urb()
1275 dev_dbg(&serial->interface->dev, "%s - using urb %p for %s endpoint %x\n", in keyspan_setup_urb()
1333 static void keyspan_setup_urbs(struct usb_serial *serial) in keyspan_setup_urbs() argument
1339 s_priv = usb_get_serial_data(serial); in keyspan_setup_urbs()
1348 (serial, d_details->instat_endpoint, USB_DIR_IN, in keyspan_setup_urbs()
1349 serial, s_priv->instat_buf, INSTAT_BUFLEN, in keyspan_setup_urbs()
1353 (serial, d_details->indat_endpoint, USB_DIR_IN, in keyspan_setup_urbs()
1354 serial, s_priv->indat_buf, INDAT49W_BUFLEN, in keyspan_setup_urbs()
1358 (serial, d_details->glocont_endpoint, USB_DIR_OUT, in keyspan_setup_urbs()
1359 serial, s_priv->glocont_buf, GLOCONT_BUFLEN, in keyspan_setup_urbs()
1550 static int keyspan_usa26_send_setup(struct usb_serial *serial, in keyspan_usa26_send_setup() argument
1563 s_priv = usb_get_serial_data(serial); in keyspan_usa26_send_setup()
1697 static int keyspan_usa28_send_setup(struct usb_serial *serial, in keyspan_usa28_send_setup() argument
1708 s_priv = usb_get_serial_data(serial); in keyspan_usa28_send_setup()
1816 static int keyspan_usa49_send_setup(struct usb_serial *serial, in keyspan_usa49_send_setup() argument
1828 s_priv = usb_get_serial_data(serial); in keyspan_usa49_send_setup()
1975 usb_fill_control_urb(this_urb, serial->dev, in keyspan_usa49_send_setup()
1976 usb_sndctrlpipe(serial->dev, 0), in keyspan_usa49_send_setup()
1978 sizeof(msg), usa49_glocont_callback, serial); in keyspan_usa49_send_setup()
1993 static int keyspan_usa90_send_setup(struct usb_serial *serial, in keyspan_usa90_send_setup() argument
2005 s_priv = usb_get_serial_data(serial); in keyspan_usa90_send_setup()
2123 static int keyspan_usa67_send_setup(struct usb_serial *serial, in keyspan_usa67_send_setup() argument
2134 s_priv = usb_get_serial_data(serial); in keyspan_usa67_send_setup()
2268 struct usb_serial *serial = port->serial; in keyspan_send_setup() local
2272 s_priv = usb_get_serial_data(serial); in keyspan_send_setup()
2277 keyspan_usa26_send_setup(serial, port, reset_port); in keyspan_send_setup()
2280 keyspan_usa28_send_setup(serial, port, reset_port); in keyspan_send_setup()
2283 keyspan_usa49_send_setup(serial, port, reset_port); in keyspan_send_setup()
2286 keyspan_usa90_send_setup(serial, port, reset_port); in keyspan_send_setup()
2289 keyspan_usa67_send_setup(serial, port, reset_port); in keyspan_send_setup()
2297 static int keyspan_startup(struct usb_serial *serial) in keyspan_startup() argument
2305 le16_to_cpu(serial->dev->descriptor.idProduct)) in keyspan_startup()
2308 dev_err(&serial->dev->dev, "%s - unknown product id %x\n", in keyspan_startup()
2309 __func__, le16_to_cpu(serial->dev->descriptor.idProduct)); in keyspan_startup()
2335 usb_set_serial_data(serial, s_priv); in keyspan_startup()
2337 keyspan_setup_urbs(serial); in keyspan_startup()
2342 dev_dbg(&serial->dev->dev, "%s - submit instat urb failed %d\n", __func__, err); in keyspan_startup()
2347 dev_dbg(&serial->dev->dev, "%s - submit indat urb failed %d\n", __func__, err); in keyspan_startup()
2364 static void keyspan_disconnect(struct usb_serial *serial) in keyspan_disconnect() argument
2368 s_priv = usb_get_serial_data(serial); in keyspan_disconnect()
2375 static void keyspan_release(struct usb_serial *serial) in keyspan_release() argument
2379 s_priv = usb_get_serial_data(serial); in keyspan_release()
2399 struct usb_serial *serial = port->serial; in keyspan_port_probe() local
2408 s_priv = usb_get_serial_data(serial); in keyspan_port_probe()
2445 p_priv->in_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe()
2454 p_priv->out_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe()
2461 p_priv->inack_urb = keyspan_setup_urb(serial, in keyspan_port_probe()
2468 p_priv->outcont_urb = keyspan_setup_urb(serial, in keyspan_port_probe()