• Home
  • Raw
  • Download

Lines Matching refs:serial

58 static int metrousb_is_unidirectional_mode(struct usb_serial *serial)  in metrousb_is_unidirectional_mode()  argument
60 u16 product_id = le16_to_cpu(serial->dev->descriptor.idProduct); in metrousb_is_unidirectional_mode()
65 static int metrousb_calc_num_ports(struct usb_serial *serial, in metrousb_calc_num_ports() argument
68 if (metrousb_is_unidirectional_mode(serial)) { in metrousb_calc_num_ports()
70 dev_err(&serial->interface->dev, "interrupt-out endpoint missing\n"); in metrousb_calc_num_ports()
84 if (!metrousb_is_unidirectional_mode(port->serial)) in metrousb_send_unidirectional_cmd()
93 ret = usb_interrupt_msg(port->serial->dev, in metrousb_send_unidirectional_cmd()
94 usb_sndintpipe(port->serial->dev, port->interrupt_out_endpointAddress), in metrousb_send_unidirectional_cmd()
172 struct usb_serial *serial = port->serial; in metrousb_open() local
184 usb_clear_halt(serial->dev, port->interrupt_in_urb->pipe); in metrousb_open()
187 usb_fill_int_urb(port->interrupt_in_urb, serial->dev, in metrousb_open()
188 usb_rcvintpipe(serial->dev, port->interrupt_in_endpointAddress), in metrousb_open()
218 static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int control_state) in metrousb_set_modem_ctrl() argument
223 dev_dbg(&serial->dev->dev, "%s - control state = %d\n", in metrousb_set_modem_ctrl()
233 retval = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in metrousb_set_modem_ctrl()
237 dev_err(&serial->dev->dev, in metrousb_set_modem_ctrl()
299 struct usb_serial *serial = port->serial; in metrousb_tiocmset() local
321 return metrousb_set_modem_ctrl(serial, control_state); in metrousb_tiocmset()