Lines Matching +full:usb +full:- +full:attach

1 // SPDX-License-Identifier: GPL-2.0
3 * USB Serial Converter stuff
5 * Copyright (C) 1999 - 2012
6 * Greg Kroah-Hartman (greg@kroah.com)
20 /* USB serial flags */
59 * @flags: usb serial port flags
63 * This structure is used by the usb-serial core and drivers for the specific
114 return dev_get_drvdata(&port->dev); in usb_get_serial_port_data()
120 dev_set_drvdata(&port->dev, data); in usb_set_serial_port_data()
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
166 return serial->private; in usb_get_serial_data()
171 serial->private = data; in usb_set_serial_data()
186 * usb_serial_driver - describes a usb serial driver
192 * @num_bulk_in: minimum number of bulk-in endpoints
193 * @num_bulk_out: minimum number of bulk-out endpoints
194 * @num_interrupt_in: minimum number of interrupt-in endpoints
195 * @num_interrupt_out: minimum number of interrupt-out endpoints
196 * @bulk_in_size: minimum number of bytes to allocate for bulk-in buffer
197 * (0 = end-point size)
198 * @bulk_out_size: bytes to allocate for bulk-out buffer (0 = end-point size)
201 * endpoints or to modify the port-endpoint mapping. It will be called
202 * after the probe() callback is called, but before attach().
210 * @attach: pointer to the driver's attach function.
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
253 int (*attach)(struct usb_serial *serial); member
297 /* Called by the usb serial hooks to allow the user to rework the
300 /* USB events */
325 /* USB Serial console functions */
391 dev_dbg(dev, "%s - length = %d, data = %*ph\n", in usb_serial_debug_data()
404 if (!__port->port.console || !__print_once) { \
406 dev_err(&__port->dev, fmt, ##__VA_ARGS__); \
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