Lines Matching refs:hw_ep
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,
554 otgpipe->hw_ep = &sc->sc_in_ep[0];
556 otgpipe->hw_ep->refcount++;
557 SIMPLEQ_INSERT_TAIL(&otgpipe->hw_ep->ep_pipes,
570 KASSERT(otgpipe->hw_ep != NULL);
1172 int epnumber = otgpipe->hw_ep->ep_number;
1221 int epnumber = otgpipe->hw_ep->ep_number;
1330 KASSERT(otgpipe->hw_ep == ep);
1388 otgpipe->hw_ep->phase = DATA_IN;
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) {
1683 SIMPLEQ_REMOVE(&otgpipe->hw_ep->ep_pipes, otgpipe,
1685 otgpipe->hw_ep->refcount--;
1699 KASSERT(otgpipe->hw_ep->xfer != xfer);
1723 return motg_device_data_start1(sc, otgpipe->hw_ep);
1773 KASSERT(otgpipe->hw_ep == ep);
1843 (uintptr_t)xfer, otgpipe->hw_ep->ep_number,
1847 otgpipe->hw_ep->phase = DATA_IN;
1855 struct motg_hw_ep *ep = otgpipe->hw_ep;
2140 KASSERT(otgpipe->hw_ep->xfer == NULL ||
2141 otgpipe->hw_ep->xfer->ux_pipe != pipe);
2144 SIMPLEQ_FOREACH(otgpipeiter, &otgpipe->hw_ep->ep_pipes, ep_pipe_list) {
2147 SIMPLEQ_REMOVE(&otgpipe->hw_ep->ep_pipes, otgpipe,
2149 otgpipe->hw_ep->refcount--;
2163 KASSERT(otgpipe->hw_ep->xfer != xfer);
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;