Lines Matching refs:urb
125 static void oti6858_read_int_callback(struct urb *urb);
126 static void oti6858_read_bulk_callback(struct urb *urb);
127 static void oti6858_write_bulk_callback(struct urb *urb);
253 dev_dbg(&port->dev, "%s(): submitting interrupt urb\n", __func__);
305 dev_dbg(&port->dev, "%s(): submitting interrupt urb\n", __func__);
541 dev_dbg(&port->dev, "%s(): submitting interrupt urb\n", __func__);
641 static void oti6858_read_int_callback(struct urb *urb)
643 struct usb_serial_port *port = urb->context;
646 int status = urb->status;
655 /* this urb is terminated, clean up */
656 dev_dbg(&urb->dev->dev, "%s(): urb shutting down with status: %d\n",
660 dev_dbg(&urb->dev->dev, "%s(): nonzero urb status received: %d\n",
665 if (status == 0 && urb->actual_length == OTI6858_CTRL_PKT_SIZE) {
666 struct oti6858_control_pkt *xs = urb->transfer_buffer;
755 /* dev_dbg(&urb->dev->dev, "%s(): submitting interrupt urb\n", __func__); */
756 result = usb_submit_urb(urb, GFP_ATOMIC);
758 dev_err(&urb->dev->dev,
765 static void oti6858_read_bulk_callback(struct urb *urb)
767 struct usb_serial_port *port = urb->context;
769 unsigned char *data = urb->transfer_buffer;
771 int status = urb->status;
779 dev_dbg(&urb->dev->dev, "%s(): unable to handle the error, exiting\n", __func__);
783 if (urb->actual_length > 0) {
784 tty_insert_flip_string(&port->port, data, urb->actual_length);
788 /* schedule the interrupt urb */
796 static void oti6858_write_bulk_callback(struct urb *urb)
798 struct usb_serial_port *port = urb->context;
800 int status = urb->status;
810 /* this urb is terminated, clean up */
811 dev_dbg(&urb->dev->dev, "%s(): urb shutting down with status: %d\n", __func__, status);
815 /* error in the urb, so we have to resubmit it */
816 dev_dbg(&urb->dev->dev, "%s(): nonzero write bulk status received: %d\n", __func__, status);
817 dev_dbg(&urb->dev->dev, "%s(): overflow in write\n", __func__);
831 /* schedule the interrupt urb if we are still open */
832 dev_dbg(&port->dev, "%s(): submitting interrupt urb\n", __func__);
835 dev_err(&port->dev, "%s(): failed submitting int urb,"