Lines Matching defs:xx
542 xhci_xfer_put_trb(struct xhci_xfer * const xx, u_int idx,
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)
2776 struct xhci_xfer *xx;
2782 const size_t trbsz = sizeof(*xx->xx_trb) * ntrbs;
2784 xx = pool_cache_get(sc->sc_xferpool, PR_WAITOK);
2785 if (xx != NULL) {
2786 memset(xx, 0, sizeof(*xx));
2788 xx->xx_trb = kmem_alloc(trbsz, KM_SLEEP);
2789 xx->xx_ntrb = ntrbs;
2792 xx->xx_xfer.ux_state = XFER_BUSY;
2796 return &xx->xx_xfer;
2803 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
2815 if (xx->xx_ntrb > 0) {
2816 kmem_free(xx->xx_trb, xx->xx_ntrb * sizeof(*xx->xx_trb));
2817 xx->xx_trb = NULL;
2818 xx->xx_ntrb = 0;
2820 pool_cache_put(sc->sc_xferpool, xx);
3227 struct xhci_xfer *xx, u_int ntrb)
3229 KASSERT(ntrb <= xx->xx_ntrb);
3230 xhci_ring_put(sc, tr, xx, xx->xx_trb, ntrb);
4478 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4513 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4526 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4538 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4542 xhci_ring_put_xfer(sc, tr, xx, i);
4609 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4691 xhci_xfer_put_trb(xx, i, parameter, status, control);
4697 xx->xx_isoc_done = 0;
4701 xhci_ring_put_xfer(sc, tr, xx, i);
4764 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4811 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4817 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4822 xhci_ring_put_xfer(sc, tr, xx, i);
4894 struct xhci_xfer * const xx = XHCI_XFER2XXFER(xfer);
4929 xhci_xfer_put_trb(xx, i++, parameter, status, control);
4933 xhci_ring_put_xfer(sc, tr, xx, i);