Lines Matching refs:usb_serial
43 * @serial: pointer back to the struct usb_serial owner of this port.
83 struct usb_serial *serial;
139 * usb_serial - structure used by the usb-serial core for a device
155 struct usb_serial {
174 #define to_usb_serial(d) container_of(d, struct usb_serial, kref)
177 static inline void *usb_get_serial_data(struct usb_serial *serial)
182 static inline void usb_set_serial_data(struct usb_serial *serial, void *data)
201 * but before the device has been fully initialized by the usb_serial
207 * This will be called when the struct usb_serial structure is fully set
213 * when the usb_serial data structure is about to be destroyed.
242 int (*probe)(struct usb_serial *serial, const struct usb_device_id *id);
243 int (*attach)(struct usb_serial *serial);
244 int (*calc_num_ports) (struct usb_serial *serial);
246 void (*disconnect)(struct usb_serial *serial);
247 void (*release)(struct usb_serial *serial);
252 int (*suspend)(struct usb_serial *serial, pm_message_t message);
253 int (*resume)(struct usb_serial *serial);
306 extern int ezusb_writememory(struct usb_serial *serial, int address,
308 extern int ezusb_set_reset(struct usb_serial *serial, unsigned char reset_bit);
314 extern void usb_serial_console_disconnect(struct usb_serial *serial);
318 static inline void usb_serial_console_disconnect(struct usb_serial *serial) {}
322 extern struct usb_serial *usb_serial_get_by_index(unsigned int minor);
323 extern void usb_serial_put(struct usb_serial *serial);
329 extern int usb_serial_generic_resume(struct usb_serial *serial);
336 extern void usb_serial_generic_disconnect(struct usb_serial *serial);
337 extern void usb_serial_generic_release(struct usb_serial *serial);