Lines Matching defs:usb_serial_driver

233 struct usb_serial_driver {  struct
234 const char *description;
235 const struct usb_device_id *id_table;
237 struct list_head driver_list;
238 struct device_driver driver;
239 struct usb_driver *usb_driver;
240 struct usb_dynids dynids;
242 unsigned char num_ports;
244 unsigned char num_bulk_in;
245 unsigned char num_bulk_out;
246 unsigned char num_interrupt_in;
247 unsigned char num_interrupt_out;
249 size_t bulk_in_size;
250 size_t bulk_out_size;
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);
260 int (*port_probe)(struct usb_serial_port *port);
261 void (*port_remove)(struct usb_serial_port *port);
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);
269 int (*open)(struct tty_struct *tty, struct usb_serial_port *port);
270 void (*close)(struct usb_serial_port *port);
271 int (*write)(struct tty_struct *tty, struct usb_serial_port *port,
274 unsigned int (*write_room)(struct tty_struct *tty);
275 int (*ioctl)(struct tty_struct *tty,
277 void (*get_serial)(struct tty_struct *tty, struct serial_struct *ss);
278 int (*set_serial)(struct tty_struct *tty, struct serial_struct *ss);
279 void (*set_termios)(struct tty_struct *tty, struct usb_serial_port *port,
281 void (*break_ctl)(struct tty_struct *tty, int break_state);
282 unsigned int (*chars_in_buffer)(struct tty_struct *tty);
283 void (*wait_until_sent)(struct tty_struct *tty, long timeout);
284 bool (*tx_empty)(struct usb_serial_port *port);
285 void (*throttle)(struct tty_struct *tty);
286 void (*unthrottle)(struct tty_struct *tty);
287 int (*tiocmget)(struct tty_struct *tty);
311 #define to_usb_serial_driver(d) \ argument
312 container_of(d, struct usb_serial_driver, driver) argument