Lines Matching full:serial
13 This driver exists because the "normal" serial driver doesn't work too well
33 #include <linux/usb/serial.h>
34 #include <linux/serial.h>
43 struct usb_serial *serial = port->serial; in usb_wwan_send_setup() local
56 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup()
58 res = usb_autopm_get_interface(serial->interface); in usb_wwan_send_setup()
62 res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in usb_wwan_send_setup()
67 usb_autopm_put_interface(port->serial->interface); in usb_wwan_send_setup()
77 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
118 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
149 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
170 err = usb_autopm_get_interface_async(port->serial->interface); in usb_wwan_write()
197 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_write()
248 usb_mark_last_busy(port->serial->dev); in usb_wwan_indat_callback()
251 usb_mark_last_busy(port->serial->dev); in usb_wwan_indat_callback()
264 intfdata = usb_get_serial_data(port->serial); in usb_wwan_outdat_callback()
267 usb_autopm_put_interface_async(port->serial->interface); in usb_wwan_outdat_callback()
329 struct usb_serial *serial = port->serial; in usb_wwan_open() local
334 intfdata = usb_get_serial_data(serial); in usb_wwan_open()
359 serial->interface->needs_remote_wakeup = 1; in usb_wwan_open()
361 /* this balances a get in the generic USB serial code */ in usb_wwan_open()
362 usb_autopm_put_interface(serial->interface); in usb_wwan_open()
384 struct usb_serial *serial = port->serial; in usb_wwan_close() local
386 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_close()
398 serial->interface->needs_remote_wakeup = 0; in usb_wwan_close()
406 usb_autopm_put_interface_async(serial->interface); in usb_wwan_close()
415 usb_autopm_get_interface_no_resume(serial->interface); in usb_wwan_close()
424 struct usb_serial *serial = port->serial; in usb_wwan_setup_urb() local
425 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_setup_urb()
432 usb_fill_bulk_urb(urb, serial->dev, in usb_wwan_setup_urb()
433 usb_sndbulkpipe(serial->dev, endpoint) | dir, in usb_wwan_setup_urb()
526 static void stop_urbs(struct usb_serial *serial) in stop_urbs() argument
532 for (i = 0; i < serial->num_ports; ++i) { in stop_urbs()
533 port = serial->port[i]; in stop_urbs()
545 int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message) in usb_wwan_suspend() argument
547 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_suspend()
559 stop_urbs(serial); in usb_wwan_suspend()
568 struct usb_serial *serial = port->serial; in usb_wwan_submit_delayed_urbs() local
569 struct usb_wwan_intf_private *data = usb_get_serial_data(serial); in usb_wwan_submit_delayed_urbs()
588 usb_autopm_put_interface_async(serial->interface); in usb_wwan_submit_delayed_urbs()
600 int usb_wwan_resume(struct usb_serial *serial) in usb_wwan_resume() argument
604 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_resume()
611 for (i = 0; i < serial->num_ports; i++) { in usb_wwan_resume()
612 port = serial->port[i]; in usb_wwan_resume()