Lines Matching refs:ep_state
281 unsigned int ep_state = pep->ep_state; in cdnsp_ring_ep_doorbell() local
288 if (ep_state & EP_HALTED || !(ep_state & EP_ENABLED)) in cdnsp_ring_ep_doorbell()
292 if (pep->ep_state & EP_HAS_STREAMS) { in cdnsp_ring_ep_doorbell()
299 pep->ep_state &= ~EP_STOPPED; in cdnsp_ring_ep_doorbell()
327 if (!(pep->ep_state & EP_HAS_STREAMS)) in cdnsp_get_transfer_ring()
355 if (pep->ep_state & EP_DIS_IN_RROGRESS) in cdnsp_ring_doorbell_for_active_rings()
359 if (!(pep->ep_state & EP_HAS_STREAMS) && pep->number) { in cdnsp_ring_doorbell_for_active_rings()
408 if (pep->ep_state & EP_HAS_STREAMS) { in cdnsp_get_hw_deq()
722 if (seg && (pep->ep_state & EP_ENABLED) && in cdnsp_remove_request()
723 !(pep->ep_state & EP_DIS_IN_RROGRESS)) in cdnsp_remove_request()
742 pep->ep_state & EP_DIS_IN_RROGRESS) { in cdnsp_remove_request()
985 if ((pep->ep_state & EP_HAS_STREAMS) && in cdnsp_giveback_first_trb()
1196 if (!(pep->ep_state & EP_HAS_STREAMS)) in cdnsp_handle_tx_nrdy()
1630 u32 ep_state, unsigned in cdnsp_prepare_ring() argument
1637 switch (ep_state) { in cdnsp_prepare_ring()
2124 if (pep->ep_state & EP0_HALTED_STATUS) { in cdnsp_queue_ctrl_tx()
2125 pep->ep_state &= ~EP0_HALTED_STATUS; in cdnsp_queue_ctrl_tx()
2142 u32 ep_state = GET_EP_CTX_STATE(pep->out_ctx); in cdnsp_cmd_stop_ep() local
2145 if (ep_state == EP_STATE_STOPPED || ep_state == EP_STATE_DISABLED || in cdnsp_cmd_stop_ep()
2146 ep_state == EP_STATE_HALTED) { in cdnsp_cmd_stop_ep()
2158 pep->ep_state |= EP_STOPPED; in cdnsp_cmd_stop_ep()