Lines Matching refs:pep
21 struct cdnsp_ep *pep; in cdnsp_ep0_stall() local
23 pep = &pdev->eps[0]; in cdnsp_ep0_stall()
24 preq = next_request(&pep->pending_list); in cdnsp_ep0_stall()
27 cdnsp_halt_endpoint(pdev, pep, true); in cdnsp_ep0_stall()
30 cdnsp_gadget_giveback(pep, preq, -ECONNRESET); in cdnsp_ep0_stall()
32 pep->ep_state |= EP0_HALTED_STATUS; in cdnsp_ep0_stall()
132 return cdnsp_ep_enqueue(pdev->ep0_preq.pep, &pdev->ep0_preq); in cdnsp_status_stage()
147 struct cdnsp_ep *pep; in cdnsp_ep0_handle_status() local
173 pep = &pdev->eps[ep_sts]; in cdnsp_ep0_handle_status()
174 ep_sts = GET_EP_CTX_STATE(pep->out_ctx); in cdnsp_ep0_handle_status()
190 return cdnsp_ep_enqueue(pdev->ep0_preq.pep, &pdev->ep0_preq); in cdnsp_ep0_handle_status()
301 struct cdnsp_ep *pep; in cdnsp_ep0_handle_feature_endpoint() local
305 pep = &pdev->eps[cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdnsp_ep0_handle_feature_endpoint()
309 if (!set && (pep->ep_state & EP_WEDGE)) { in cdnsp_ep0_handle_feature_endpoint()
311 cdnsp_halt_endpoint(pdev, pep, 0); in cdnsp_ep0_handle_feature_endpoint()
312 cdnsp_halt_endpoint(pdev, pep, 1); in cdnsp_ep0_handle_feature_endpoint()
316 return cdnsp_halt_endpoint(pdev, pep, set); in cdnsp_ep0_handle_feature_endpoint()
365 return cdnsp_ep_enqueue(pdev->ep0_preq.pep, &pdev->ep0_preq); in cdnsp_ep0_set_sel()