Lines Matching defs:upipe
1572 struct uhci_pipe *upipe =
1574 uhci_soft_qh_t *sqh = upipe->ctrl.sqh;
1575 uhci_soft_td_t *stat = upipe->ctrl.stat;
1609 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
1641 uhci_soft_td_t **stds = upipe->isoc.stds;
1670 upipe->isoc.inuse -= nframes;
1678 (uintptr_t)xfer, (uintptr_t)upipe, 0);
1711 upipe->nexttoggle = UHCI_TD_GET_DT(le32toh(std->td.td_token));
2188 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
2189 upipe->nexttoggle = 0;
2258 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2280 endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
2282 sqh = upipe->bulk.sqh;
2284 uhci_reset_std_chain(sc, xfer, len, isread, &upipe->nexttoggle,
2342 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2388 usb_delay_ms_locked(upipe->pipe.up_dev->ud_bus, 2, &sc->sc_lock);
2402 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
2407 uhci_free_sqh(sc, upipe->bulk.sqh);
2409 pipe->up_endpoint->ue_toggle = upipe->nexttoggle;
2416 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2418 struct usbd_device *dev = upipe->pipe.up_dev;
2428 upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress);
2441 uxfer->ux_setup = upipe->ctrl.setup;
2442 uxfer->ux_stat = upipe->ctrl.stat;
2475 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2477 struct usbd_device *dev = upipe->pipe.up_dev;
2479 int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
2504 setup = upipe->ctrl.setup;
2505 stat = upipe->ctrl.stat;
2506 sqh = upipe->ctrl.sqh;
2508 memcpy(KERNADDR(&upipe->ctrl.reqdma, 0), req, sizeof(*req));
2509 usb_syncmem(&upipe->ctrl.reqdma, 0, sizeof(*req), BUS_DMASYNC_PREWRITE);
2513 upipe->nexttoggle = 1;
2516 &upipe->nexttoggle, &dataend);
2536 setup->td.td_buffer = htole32(DMAADDR(&upipe->ctrl.reqdma, 0));
2664 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2684 endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
2696 &upipe->nexttoggle, &dataend);
2709 uhci_dump_qh(upipe->intr.qhs[0]);
2714 DPRINTFN(10, "qhs[0]=%#jx", (uintptr_t)upipe->intr.qhs[0], 0, 0, 0);
2715 for (i = 0; i < upipe->intr.npoll; i++) {
2716 sqh = upipe->intr.qhs[i];
2731 uhci_dump_qh(upipe->intr.qhs[0]);
2756 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
2758 uhci_free_sqh(sc, upipe->ctrl.sqh);
2759 uhci_free_std_locked(sc, upipe->ctrl.setup);
2760 uhci_free_std_locked(sc, upipe->ctrl.stat);
2762 usb_freemem(&upipe->ctrl.reqdma);
2783 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
2790 npoll = upipe->intr.npoll;
2792 uhci_remove_intr(sc, upipe->intr.qhs[i]);
2801 uhci_free_sqh(sc, upipe->intr.qhs[i]);
2802 kmem_free(upipe->intr.qhs, npoll * sizeof(uhci_soft_qh_t *));
2838 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2840 struct isoc *isoc = &upipe->isoc;
2844 int rd = UE_GET_DIR(upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN;
2937 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
2939 uhci_soft_td_t **stds = upipe->isoc.stds;
2998 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
3012 isoc = &upipe->isoc;
3060 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
3062 int addr = upipe->pipe.up_dev->ud_addr;
3063 int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
3070 isoc = &upipe->isoc;
3133 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
3135 int rd = UE_GET_DIR(upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN;
3175 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
3184 npoll = upipe->intr.npoll;
3186 sqh = upipe->intr.qhs[i];
3194 const int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
3205 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
3215 if (upipe->pipe.up_dev->ud_speed == USB_SPEED_LOW)
3216 uhci_remove_ls_ctrl(sc, upipe->ctrl.sqh);
3218 uhci_remove_hs_ctrl(sc, upipe->ctrl.sqh);
3224 usb_syncmem(&upipe->ctrl.reqdma, 0,
3235 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
3241 DPRINTFN(5, "xfer=%#jx sc=%#jx upipe=%#jx", (uintptr_t)xfer,
3242 (uintptr_t)sc, (uintptr_t)upipe, 0);
3246 uhci_remove_bulk(sc, upipe->bulk.sqh);
3321 uhci_device_setintr(uhci_softc_t *sc, struct uhci_pipe *upipe, int ival)
3328 DPRINTFN(2, "pipe=%#jx", (uintptr_t)upipe, 0, 0, 0);
3339 upipe->intr.npoll = npoll;
3340 upipe->intr.qhs =
3358 upipe->intr.qhs[i] = sqh = uhci_alloc_sqh(sc);
3372 uhci_add_intr(sc, upipe->intr.qhs[i]);
3375 DPRINTFN(5, "returns %#jx", (uintptr_t)upipe, 0, 0, 0);
3386 struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
3398 upipe->aborting = 0;
3400 upipe->nexttoggle = pipe->up_endpoint->ue_toggle;
3417 upipe->ctrl.sqh = uhci_alloc_sqh(sc);
3418 if (upipe->ctrl.sqh == NULL)
3420 upipe->ctrl.setup = uhci_alloc_std(sc);
3421 if (upipe->ctrl.setup == NULL) {
3422 uhci_free_sqh(sc, upipe->ctrl.sqh);
3425 upipe->ctrl.stat = uhci_alloc_std(sc);
3426 if (upipe->ctrl.stat == NULL) {
3427 uhci_free_sqh(sc, upipe->ctrl.sqh);
3428 uhci_free_std(sc, upipe->ctrl.setup);
3433 USBMALLOC_COHERENT, &upipe->ctrl.reqdma);
3435 uhci_free_sqh(sc, upipe->ctrl.sqh);
3436 uhci_free_std(sc, upipe->ctrl.setup);
3437 uhci_free_std(sc, upipe->ctrl.stat);
3446 return uhci_device_setintr(sc, upipe, ival);
3453 upipe->bulk.sqh = uhci_alloc_sqh(sc);
3454 if (upipe->bulk.sqh == NULL)