Lines Matching defs:opipe
1449 struct ohci_pipe *opipe;
1571 opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
1581 ohci_soft_ed_t *sed = opipe->sed;
1634 opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
1635 opipe->isoc.inuse -= xfer->ux_nframes;
1691 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
1705 usb_syncmem(&opipe->ctrl.reqdma, 0,
2083 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
2121 opipe->sed = sed;
2127 opipe->tail.itd = sitd;
2128 sitd->held = &opipe->tail.itd;
2140 opipe->tail.td = std;
2141 std->held = &opipe->tail.td;
2164 USBMALLOC_COHERENT, &opipe->ctrl.reqdma);
2176 err = ohci_device_setintr(sc, opipe, ival);
2212 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
2214 ohci_soft_ed_t *sed = opipe->sed;
2231 usbd_dump_pipe(&opipe->pipe);
2247 ohci_free_sed_locked(sc, opipe->sed);
2264 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
2266 ohci_soft_ed_t *sed = opipe->sed;
2272 (uintptr_t)opipe, (uintptr_t)sed, 0);
2755 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
2761 if (ox->ox_setup != opipe->tail.td) {
2792 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
2794 struct usbd_device *dev __diagused = opipe->pipe.up_dev;
2813 dev->ud_addr, opipe->pipe.up_endpoint->ue_edesc->bEndpointAddress);
2822 setup = opipe->tail.td;
2823 opipe->tail.td = ox->ox_setup;
2833 tail = opipe->tail.td;
2834 tail->held = &opipe->tail.td;
2835 sed = opipe->sed;
2844 UGETW(opipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize),
2847 UGETW(opipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize));
2882 KASSERT(opipe->tail.td == tail);
2884 memcpy(KERNADDR(&opipe->ctrl.reqdma, 0), req, sizeof(*req));
2885 usb_syncmem(&opipe->ctrl.reqdma, 0, sizeof(*req), BUS_DMASYNC_PREWRITE);
2893 setup->td->td_cbp = HTOO32(DMAADDR(&opipe->ctrl.reqdma, 0));
2972 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
2980 ohci_free_std_locked(sc, opipe->tail.td);
2982 usb_freemem(&opipe->ctrl.reqdma);
2990 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
2992 ohci_soft_ed_t *sed = opipe->sed;
2998 opipe->sed->ed->ed_headp &= HTOO32(~OHCI_TOGGLECARRY);
3040 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3050 if (std != opipe->tail.td)
3073 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3092 sed = opipe->sed;
3102 data = opipe->tail.td;
3103 opipe->tail.td = ox->ox_stds[0];
3111 tail = opipe->tail.td;
3113 tail->held = &opipe->tail.td;
3124 KASSERT(opipe->tail.td == tail);
3187 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
3196 ohci_free_std_locked(sc, opipe->tail.td);
3235 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3245 if (std != opipe->tail.td)
3268 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3270 ohci_soft_ed_t *sed = opipe->sed;
3294 data = opipe->tail.td;
3295 opipe->tail.td = ox->ox_stds[0];
3303 tail = opipe->tail.td;
3305 tail->held = &opipe->tail.td;
3316 KASSERT(opipe->tail.td == tail);
3365 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
3367 int nslots = opipe->intr.nslots;
3368 int pos = opipe->intr.pos;
3370 ohci_soft_ed_t *p, *sed = opipe->sed;
3400 ohci_free_std_locked(sc, opipe->tail.td);
3401 ohci_free_sed_locked(sc, opipe->sed);
3405 ohci_device_setintr(ohci_softc_t *sc, struct ohci_pipe *opipe, int ival)
3410 ohci_soft_ed_t *hsed, *sed = opipe->sed;
3414 DPRINTFN(2, "pipe=%#jx", (uintptr_t)opipe, 0, 0, 0);
3473 opipe->intr.nslots = nslots;
3474 opipe->intr.pos = best;
3476 DPRINTFN(5, "returns %#jx", (uintptr_t)opipe, 0, 0, 0);
3532 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3538 if (ox->ox_sitds[i] != opipe->tail.itd) {
3569 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3571 ohci_soft_ed_t *sed = opipe->sed;
3585 struct isoc *isoc = &opipe->isoc;
3607 sitd = opipe->tail.itd;
3608 opipe->tail.itd = ox->ox_sitds[0];
3687 tail = opipe->tail.itd;
3689 tail->held = &opipe->tail.itd;
3746 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(xfer->ux_pipe);
3766 sed = opipe->sed;
3818 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
3820 struct isoc *isoc = &opipe->isoc;
3826 ohci_add_ed(sc, opipe->sed, sc->sc_isoc_head);
3835 struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
3844 opipe->tail.itd->isdone = true;
3846 ohci_free_sitd_locked(sc, opipe->tail.itd);