Lines Matching refs:error
117 usb_request_callback(struct usb_xfer *xfer, usb_error_t error)
120 usb_handle_request_callback(xfer, error);
122 usbd_do_request_callback(xfer, error);
868 usb_error_t error = USB_ERR_NORMAL_COMPLETION;
896 error = USB_ERR_BAD_BUFSIZE;
900 error = USB_ERR_NO_CALLBACK;
906 if (error)
907 return (error);
1075 /* check for error */
1113 /* check for error */
1226 error = parm->err;
1231 return (error);
1295 * the error code "USB_ERR_CANCELLED" before this function
1462 goto error;
1491 goto error;
1503 goto error;
1537 goto error;
1549 goto error;
1569 goto error;
1577 error:
1658 xfer->error = USB_ERR_NORMAL_COMPLETION;
1664 * Must return cancelled error code else
1795 /* check for transfer error */
1796 if (xfer->error) {
1797 /* some error has happened */
1877 /* override any previous error */
1878 xfer->error = USB_ERR_CANCELLED;
1896 * error code being passed to the USB callback.
2327 if (xfer->error) {
2350 (xfer->callback) (xfer, xfer->error);
2394 * error like USB_ERR_CANCELLED.
2466 usbd_transfer_done(struct usb_xfer *xfer, usb_error_t error)
2472 DPRINTF("err=%s\n", usbd_errstr(error));
2484 /* only set transfer error, if not already set */
2485 if (xfer->error == USB_ERR_NORMAL_COMPLETION)
2486 xfer->error = error;
2515 if (xfer->error == USB_ERR_CANCELLED) {
2518 } else if (xfer->error != USB_ERR_NORMAL_COMPLETION) {
2554 /* start USB transfer, if no error */
2555 if (xfer->error == 0)
2558 /* check for transfer error */
2559 if (xfer->error) {
2560 /* some error has happened */
2692 * error conditions go away by resetting the
2764 * this function passing the error code "USB_ERR_CANCELLED".
2790 * If we have a non-hardware induced error we
2793 if ((xfer->error != 0) && (!xfer->flags_int.did_dma_delay) &&
2794 ((xfer->error == USB_ERR_CANCELLED) ||
2795 (xfer->error == USB_ERR_TIMEOUT) ||
2831 if (xfer->error == 0) {
2858 if (xfer->error == 0) {
2868 xfer, xfer->endpoint, xfer->error, xfer->actlen, xfer->sumlen,
2871 if (xfer->error) {
2876 switch (xfer->error) {
2892 if ((xfer->error != USB_ERR_CANCELLED) &&
2905 xfer->error = USB_ERR_SHORT_XFER;
3082 * Reset clear stall error counter.
3223 if (xfer1->error == USB_ERR_CANCELLED) {