Lines Matching defs:xfer
344 roothub_ctrl_transfer(struct usbd_xfer *xfer)
348 return roothub_ctrl_start(SIMPLEQ_FIRST(&xfer->ux_pipe->up_queue));
352 roothub_ctrl_start(struct usbd_xfer *xfer)
354 struct usbd_pipe *pipe = xfer->ux_pipe;
374 KASSERT(xfer->ux_rqflags & URQ_REQUEST);
375 req = &xfer->ux_request;
383 buf = len ? usbd_get_buffer(xfer) : NULL;
556 bus->ub_rhxfer = xfer;
564 KASSERTMSG(bus->ub_rhxfer == xfer, "rhxfer=%p", bus->ub_rhxfer);
571 xfer->ux_actlen = actlen;
575 USBHIST_LOG(usbdebug, "xfer %#jx buflen %jd actlen %jd err %jd",
576 (uintptr_t)xfer, buflen, actlen, err);
578 xfer->ux_status = err;
579 usb_transfer_complete(xfer);
586 roothub_ctrl_abort(struct usbd_xfer *xfer)
588 struct usbd_bus *bus = xfer->ux_bus;
591 KASSERTMSG(bus->ub_rhxfer == xfer, "rhxfer=%p", bus->ub_rhxfer);
594 * No mechanism to abort the xfer (would have to coordinate
599 while (bus->ub_rhxfer == xfer)
612 roothub_ctrl_done(struct usbd_xfer *xfer)