Home | History | Annotate | Download | only in usb

Lines Matching defs:otgpipe

482 	struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
500 otgpipe->hw_ep = &ep[i];
502 if (otgpipe->hw_ep->refcount > 0) {
505 otgpipe->hw_ep = NULL;
507 otgpipe->hw_ep->refcount++;
508 SIMPLEQ_INSERT_TAIL(&otgpipe->hw_ep->ep_pipes,
509 otgpipe, ep_pipe_list);
523 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
536 otgpipe->nexttoggle = pipe->up_endpoint->ue_toggle;
554 otgpipe->hw_ep = &sc->sc_in_ep[0];
556 otgpipe->hw_ep->refcount++;
557 SIMPLEQ_INSERT_TAIL(&otgpipe->hw_ep->ep_pipes,
558 otgpipe, ep_pipe_list);
570 KASSERT(otgpipe->hw_ep != NULL);
572 otgpipe->nexttoggle = pipe->up_endpoint->ue_toggle;
1170 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1171 struct usbd_device *dev = otgpipe->pipe.up_dev;
1172 int epnumber = otgpipe->hw_ep->ep_number;
1220 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1221 int epnumber = otgpipe->hw_ep->ep_number;
1287 struct motg_pipe *otgpipe;
1304 SIMPLEQ_FOREACH(otgpipe, &ep->ep_pipes, ep_pipe_list) {
1305 xfer = SIMPLEQ_FIRST(&otgpipe->pipe.up_queue);
1307 (uintptr_t)otgpipe, (uintptr_t)xfer,
1312 SIMPLEQ_REMOVE(&ep->ep_pipes, otgpipe,
1315 otgpipe, ep_pipe_list);
1329 KASSERT(otgpipe == MOTG_PIPE2MPIPE(xfer->ux_pipe));
1330 KASSERT(otgpipe->hw_ep == ep);
1383 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1388 otgpipe->hw_ep->phase = DATA_IN;
1671 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
1677 KASSERT(otgpipe->hw_ep->xfer == NULL ||
1678 otgpipe->hw_ep->xfer->ux_pipe != pipe);
1680 SIMPLEQ_FOREACH(otgpipeiter, &otgpipe->hw_ep->ep_pipes, ep_pipe_list) {
1681 if (otgpipeiter == otgpipe) {
1683 SIMPLEQ_REMOVE(&otgpipe->hw_ep->ep_pipes, otgpipe,
1685 otgpipe->hw_ep->refcount--;
1696 struct motg_pipe *otgpipe __diagused = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1699 KASSERT(otgpipe->hw_ep->xfer != xfer);
1715 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1723 return motg_device_data_start1(sc, otgpipe->hw_ep);
1730 struct motg_pipe *otgpipe;
1748 SIMPLEQ_FOREACH(otgpipe, &ep->ep_pipes, ep_pipe_list) {
1749 xfer = SIMPLEQ_FIRST(&otgpipe->pipe.up_queue);
1751 (uintptr_t)otgpipe, (uintptr_t)xfer,
1755 SIMPLEQ_REMOVE(&ep->ep_pipes, otgpipe,
1758 otgpipe, ep_pipe_list);
1772 KASSERT(otgpipe == MOTG_PIPE2MPIPE(xfer->ux_pipe));
1773 KASSERT(otgpipe->hw_ep == ep);
1822 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1836 if (otgpipe->nexttoggle)
1843 (uintptr_t)xfer, otgpipe->hw_ep->ep_number,
1847 otgpipe->hw_ep->phase = DATA_IN;
1854 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1855 struct motg_hw_ep *ep = otgpipe->hw_ep;
1898 if (otgpipe->nexttoggle)
1962 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
1963 otgpipe->nexttoggle = otgpipe->nexttoggle ^ 1;
2035 struct motg_pipe *otgpipe;
2084 otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
2085 otgpipe->nexttoggle = otgpipe->nexttoggle ^ 1;
2134 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
2140 KASSERT(otgpipe->hw_ep->xfer == NULL ||
2141 otgpipe->hw_ep->xfer->ux_pipe != pipe);
2143 pipe->up_endpoint->ue_toggle = otgpipe->nexttoggle;
2144 SIMPLEQ_FOREACH(otgpipeiter, &otgpipe->hw_ep->ep_pipes, ep_pipe_list) {
2145 if (otgpipeiter == otgpipe) {
2147 SIMPLEQ_REMOVE(&otgpipe->hw_ep->ep_pipes, otgpipe,
2149 otgpipe->hw_ep->refcount--;
2160 struct motg_pipe *otgpipe __diagused = MOTG_PIPE2MPIPE(xfer->ux_pipe);
2163 KASSERT(otgpipe->hw_ep->xfer != xfer);
2169 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
2170 otgpipe->nexttoggle = 0;
2180 struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(xfer->ux_pipe);
2193 if (otgpipe->hw_ep->xfer == xfer) {
2194 otgpipe->hw_ep->xfer = NULL;
2195 if (otgpipe->hw_ep->ep_number > 0) {
2198 otgpipe->hw_ep->ep_number);
2199 if (otgpipe->hw_ep->phase == DATA_OUT) {
2207 } else if (otgpipe->hw_ep->phase == DATA_IN) {
2216 otgpipe->hw_ep->phase = IDLE;