• Home
  • Raw
  • Download

Lines Matching full:serial

13   This driver exists because the "normal" serial driver doesn't work too well
32 #include <linux/usb/serial.h>
33 #include <linux/serial.h>
42 struct usb_serial *serial = port->serial; in usb_wwan_send_setup() local
55 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup()
57 res = usb_autopm_get_interface(serial->interface); in usb_wwan_send_setup()
61 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in usb_wwan_send_setup()
65 usb_autopm_put_interface(port->serial->interface); in usb_wwan_send_setup()
75 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
116 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
193 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
215 err = usb_autopm_get_interface_async(port->serial->interface); in usb_wwan_write()
242 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_write()
293 usb_mark_last_busy(port->serial->dev); in usb_wwan_indat_callback()
296 usb_mark_last_busy(port->serial->dev); in usb_wwan_indat_callback()
309 intfdata = usb_get_serial_data(port->serial); in usb_wwan_outdat_callback()
312 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_outdat_callback()
374 struct usb_serial *serial = port->serial; in usb_wwan_open() local
379 intfdata = usb_get_serial_data(serial); in usb_wwan_open()
404 serial->interface->needs_remote_wakeup = 1; in usb_wwan_open()
406 /* this balances a get in the generic USB serial code */ in usb_wwan_open()
407 usb_autopm_put_interface(serial->interface); in usb_wwan_open()
429 struct usb_serial *serial = port->serial; in usb_wwan_close() local
431 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_close()
443 serial->interface->needs_remote_wakeup = 0; in usb_wwan_close()
451 usb_autopm_put_interface_async(serial->interface); in usb_wwan_close()
460 usb_autopm_get_interface_no_resume(serial->interface); in usb_wwan_close()
469 struct usb_serial *serial = port->serial; in usb_wwan_setup_urb() local
470 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_setup_urb()
477 usb_fill_bulk_urb(urb, serial->dev, in usb_wwan_setup_urb()
478 usb_sndbulkpipe(serial->dev, endpoint) | dir, in usb_wwan_setup_urb()
573 static void stop_urbs(struct usb_serial *serial) in stop_urbs() argument
579 for (i = 0; i < serial->num_ports; ++i) { in stop_urbs()
580 port = serial->port[i]; in stop_urbs()
592 int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message) in usb_wwan_suspend() argument
594 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_suspend()
606 stop_urbs(serial); in usb_wwan_suspend()
615 struct usb_serial *serial = port->serial; in usb_wwan_submit_delayed_urbs() local
616 struct usb_wwan_intf_private *data = usb_get_serial_data(serial); in usb_wwan_submit_delayed_urbs()
635 usb_autopm_put_interface_async(serial->interface); in usb_wwan_submit_delayed_urbs()
647 int usb_wwan_resume(struct usb_serial *serial) in usb_wwan_resume() argument
651 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_resume()
658 for (i = 0; i < serial->num_ports; i++) { in usb_wwan_resume()
659 port = serial->port[i]; in usb_wwan_resume()