Home | History | Annotate | Download | only in usb

Lines Matching defs:xx

542 xhci_xfer_put_trb(struct xhci_xfer * const xx
545 KASSERTMSG(idx < xx->xx_ntrb, "idx=%u xx_ntrb=%u", idx, xx->xx_ntrb);
546 xx->xx_trb[idx].trb_0 = parameter;
547 xx->xx_trb[idx].trb_2 = status;
548 xx->xx_trb[idx].trb_3 = control;
2424 struct xhci_xfer *xx;
2450 xx = xr->xr_cookies[idx];
2456 * xx is NULL if pipe is opened but xfer is not started.
2459 if (xx == NULL || trbcode == XHCI_TRB_ERROR_LENGTH) {
2461 idx, (uintptr_t)xx, trbcode, dci);
2469 xx = (void *)(uintptr_t)(trb_0 & ~0x3);
2472 if (xx == NULL) {
2473 DPRINTFN(1, "xfer done: xx is NULL", 0, 0, 0, 0);
2476 xfer = &xx->xx_xfer;
2479 DPRINTFN(1, "xx(%#jx)->xx_xfer is NULL trb_0 %#jx",
2480 (uintptr_t)xx, trb_0, 0, 0);
2530 xfer->ux_frlengths[xx->xx_isoc_done] -=
2532 xfer->ux_actlen += xfer->ux_frlengths[xx->xx_isoc_done];
2572 xfer->ux_frlengths[xx->xx_isoc_done] = 0;
2575 if (++xx->xx_isoc_done < xfer->ux_nframes)
2762 struct xhci_xfer *xx;
2768 const size_t trbsz = sizeof(*xx->xx_trb) * ntrbs;
2770 xx = pool_cache_get(sc->sc_xferpool, PR_WAITOK);
2771 if (xx != NULL) {
2772 memset(xx, 0, sizeof(*xx));
2774 xx->xx_trb = kmem_alloc(trbsz, KM_SLEEP);
2775 xx->xx_ntrb = ntrbs;
2778 xx->xx_xfer.ux_state = XFER_BUSY;
2782 return &xx->xx_xfer;
2789 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
2801 if (xx->xx_ntrb > 0) {
2802 kmem_free(xx->xx_trb, xx->xx_ntrb * sizeof(*xx->xx_trb));
2803 xx->xx_trb = NULL;
2804 xx->xx_ntrb = 0;
2806 pool_cache_put(sc->sc_xferpool, xx);
3211 struct xhci_xfer *xx, u_int ntrb)
3213 KASSERT(ntrb <= xx->xx_ntrb);
3214 xhci_ring_put(sc, tr, xx, xx->xx_trb, ntrb);
4462 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4497 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4510 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4522 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4526 xhci_ring_put_xfer(sc, tr, xx, i);
4593 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4675 xhci_xfer_put_trb(xx, i, parameter, status, control);
4681 xx->xx_isoc_done = 0;
4685 xhci_ring_put_xfer(sc, tr, xx, i);
4748 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4795 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4801 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4806 xhci_ring_put_xfer(sc, tr, xx, i);
4878 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4913 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4917 xhci_ring_put_xfer(sc, tr, xx, i);