Lines Matching full:serial

3  * USB Serial Converter stuff
14 #include <linux/serial.h>
20 /* USB serial flags */
26 * @serial: pointer back to the struct usb_serial owner of this port.
59 * @flags: usb serial port flags
61 * @dev: pointer to the serial device
63 * This structure is used by the usb-serial core and drivers for the specific
67 struct usb_serial *serial; member
124 * usb_serial - structure used by the usb-serial core for a device
137 * usb-serial driver is required to manage this data, the usb-serial core
163 /* get and set the serial private data pointer helper functions */
164 static inline void *usb_get_serial_data(struct usb_serial *serial) in usb_get_serial_data() argument
166 return serial->private; in usb_get_serial_data()
169 static inline void usb_set_serial_data(struct usb_serial *serial, void *data) in usb_set_serial_data() argument
171 serial->private = data; in usb_set_serial_data()
186 * usb_serial_driver - describes a usb serial driver
222 * This structure is defines a USB Serial driver. It provides all of
223 * the information that the USB serial core code needs. If the function
224 * pointers are defined, then the USB serial core code will call them when
226 * called, the generic serial function will be used instead.
252 int (*probe)(struct usb_serial *serial, const struct usb_device_id *id);
253 int (*attach)(struct usb_serial *serial);
254 int (*calc_num_ports)(struct usb_serial *serial,
257 void (*disconnect)(struct usb_serial *serial);
258 void (*release)(struct usb_serial *serial);
263 int (*suspend)(struct usb_serial *serial, pm_message_t message);
264 int (*resume)(struct usb_serial *serial);
265 int (*reset_resume)(struct usb_serial *serial);
267 /* serial function calls */
297 /* Called by the usb serial hooks to allow the user to rework the
325 /* USB Serial console functions */
329 void usb_serial_console_disconnect(struct usb_serial *serial);
333 static inline void usb_serial_console_disconnect(struct usb_serial *serial) {} in usb_serial_console_disconnect() argument
338 void usb_serial_put(struct usb_serial *serial);
340 int usb_serial_claim_interface(struct usb_serial *serial, struct usb_interface *intf);
347 int usb_serial_generic_resume(struct usb_serial *serial);
411 * module_usb_serial_driver() - Helper macro for registering a USB Serial driver
415 * Helper macro for USB serial drivers which do not do anything special