Lines Matching full:serial
3 * USB Serial Converter stuff
19 #include <linux/serial.h>
25 /* USB serial flags */
31 * @serial: pointer back to the struct usb_serial owner of this port.
64 * @flags: usb serial port flags
67 * @dev: pointer to the serial device
69 * This structure is used by the usb-serial core and drivers for the specific
73 struct usb_serial *serial; member
131 * usb_serial - structure used by the usb-serial core for a device
142 * usb-serial driver is required to manage this data, the usb-serial core
167 /* get and set the serial private data pointer helper functions */
168 static inline void *usb_get_serial_data(struct usb_serial *serial) in usb_get_serial_data() argument
170 return serial->private; in usb_get_serial_data()
173 static inline void usb_set_serial_data(struct usb_serial *serial, void *data) in usb_set_serial_data() argument
175 serial->private = data; in usb_set_serial_data()
190 * usb_serial_driver - describes a usb serial driver
226 * This structure is defines a USB Serial driver. It provides all of
227 * the information that the USB serial core code needs. If the function
228 * pointers are defined, then the USB serial core code will call them when
230 * called, the generic serial function will be used instead.
256 int (*probe)(struct usb_serial *serial, const struct usb_device_id *id);
257 int (*attach)(struct usb_serial *serial);
258 int (*calc_num_ports)(struct usb_serial *serial,
261 void (*disconnect)(struct usb_serial *serial);
262 void (*release)(struct usb_serial *serial);
267 int (*suspend)(struct usb_serial *serial, pm_message_t message);
268 int (*resume)(struct usb_serial *serial);
269 int (*reset_resume)(struct usb_serial *serial);
271 /* serial function calls */
301 /* Called by the usb serial hooks to allow the user to rework the
326 /* USB Serial console functions */
330 void usb_serial_console_disconnect(struct usb_serial *serial);
334 static inline void usb_serial_console_disconnect(struct usb_serial *serial) {} in usb_serial_console_disconnect() argument
339 void usb_serial_put(struct usb_serial *serial);
345 int usb_serial_generic_resume(struct usb_serial *serial);
409 * module_usb_serial_driver() - Helper macro for registering a USB Serial driver
413 * Helper macro for USB serial drivers which do not do anything special