Lines Matching refs:urb
34 /* so we can be sure to send the full buffer in one urb */
38 /* so we can be sure to hold at least one full buffer from one urb */
224 static void digi_write_bulk_callback(struct urb *urb);
236 static void digi_read_bulk_callback(struct urb *urb);
237 static int digi_read_inb_callback(struct urb *urb);
238 static int digi_read_oob_callback(struct urb *urb);
617 /* stop receiving characters by not resubmitting the read urb */
903 /* wait for urb status clear to submit another urb */
956 static void digi_write_bulk_callback(struct urb *urb)
959 struct usb_serial_port *port = urb->context;
965 int status = urb->status;
1295 static void digi_read_bulk_callback(struct urb *urb)
1297 struct usb_serial_port *port = urb->context;
1301 int status = urb->status;
1319 /* do not resubmit urb if it has any status error */
1329 if (digi_read_oob_callback(urb) != 0)
1332 if (digi_read_inb_callback(urb) != 0)
1337 ret = usb_submit_urb(urb, GFP_ATOMIC);
1340 "%s: failed resubmitting urb, ret=%d, port=%d\n",
1356 static int digi_read_inb_callback(struct urb *urb)
1358 struct usb_serial_port *port = urb->context;
1360 unsigned char *buf = urb->transfer_buffer;
1369 if (urb->actual_length < 2) {
1377 if (urb->actual_length != len + 2) {
1379 priv->dp_port_num, opcode, len, urb->actual_length);
1390 /* check for throttle; if set, do not resubmit read urb */
1446 static int digi_read_oob_callback(struct urb *urb)
1449 struct usb_serial_port *port = urb->context;
1453 unsigned char *buf = urb->transfer_buffer;
1459 if (urb->actual_length < 4)
1463 for (i = 0; i < urb->actual_length - 3; i += 4) {