Lines Matching refs:urb

166 	struct urb		*write_urb;		/* write URB for this port */
205 struct urb *interrupt_read_urb; /* our interrupt urb */
209 struct urb *read_urb; /* our bulk read urb */
567 static void edge_interrupt_callback(struct urb *urb)
569 struct edgeport_serial *edge_serial = urb->context;
573 unsigned char *data = urb->transfer_buffer;
574 int length = urb->actual_length;
581 int status = urb->status;
590 /* this urb is terminated, clean up */
591 dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status);
594 dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", __func__, status);
668 result = usb_submit_urb(urb, GFP_ATOMIC);
670 dev_err(&urb->dev->dev,
671 "%s - Error %d submitting control urb\n",
681 static void edge_bulk_in_callback(struct urb *urb)
683 struct edgeport_serial *edge_serial = urb->context;
685 unsigned char *data = urb->transfer_buffer;
688 int status = urb->status;
692 dev_dbg(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n",
698 if (urb->actual_length == 0) {
699 dev_dbg(&urb->dev->dev, "%s - read bulk callback with no data\n", __func__);
705 raw_data_length = urb->actual_length;
717 process_rcvd_data(edge_serial, data, urb->actual_length);
742 static void edge_bulk_out_data_callback(struct urb *urb)
744 struct edgeport_port *edge_port = urb->context;
745 int status = urb->status;
748 dev_dbg(&urb->dev->dev,
770 static void edge_bulk_out_cmd_callback(struct urb *urb)
772 struct edgeport_port *edge_port = urb->context;
773 int status = urb->status;
776 dev_dbg(&urb->dev->dev, "%s - FREE URB %p (outstanding %d)\n",
777 __func__, urb, atomic_read(&CmdUrbs));
781 kfree(urb->transfer_buffer);
783 /* Free the command urb */
784 usb_free_urb(urb);
787 dev_dbg(&urb->dev->dev,
846 /* set up our interrupt urb */
856 /* set up our bulk in urb */
871 dev_err(dev, "%s - Error %d submitting control urb\n",
1095 /* if this urb had a transfer buffer already
1214 struct urb *urb;
1250 urb = edge_port->write_urb;
1253 kfree(urb->transfer_buffer);
1254 urb->transfer_buffer = NULL;
1287 /* fill up the urb with all of our data and submit it */
1288 usb_fill_bulk_urb(urb, edge_serial->serial->dev,
1298 status = usb_submit_urb(urb, GFP_ATOMIC);
2133 struct urb *urb;
2137 /* Allocate our next urb */
2138 urb = usb_alloc_urb(0, GFP_ATOMIC);
2139 if (!urb)
2144 __func__, urb, atomic_read(&CmdUrbs));
2146 usb_fill_bulk_urb(urb, edge_serial->serial->dev,
2152 status = usb_submit_urb(urb, GFP_ATOMIC);
2158 usb_free_urb(urb);
2795 * urb, so that the device knows it really is connected. */
2825 /* set up our interrupt urb */
2862 /* set up our bulk in urb */
2898 dev_err(ddev, "%s - Error %d submitting control urb\n",