Lines Matching refs:mep

80 static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len)  in ep0_write_fifo()  argument
82 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_write_fifo()
85 dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n", in ep0_write_fifo()
86 __func__, mep->epnum, len, src); in ep0_write_fifo()
100 static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len) in ep0_read_fifo() argument
102 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_read_fifo()
106 dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n", in ep0_read_fifo()
107 __func__, mep->epnum, len, dst); in ep0_read_fifo()
187 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
199 struct mtu3_ep *mep = NULL; in ep0_get_status() local
233 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_get_status()
234 if (!mep->desc) { in ep0_get_status()
238 if (mep->flags & MTU3_EP_STALL) in ep0_get_status()
254 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status()
374 struct mtu3_ep *mep; in ep0_handle_feature() local
406 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_handle_feature()
407 if (!mep->desc) in ep0_handle_feature()
412 if (mep->wedged) in ep0_handle_feature()
415 mtu3_ep_stall_set(mep, set); in ep0_handle_feature()
782 static int ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq) in ep0_queue() argument
784 struct mtu3 *mtu = mep->mtu; in ep0_queue()
791 mep->name, decode_ep0_state(mtu), mreq->request.length); in ep0_queue()
815 if (!list_empty(&mep->req_list)) in ep0_queue()
818 list_add_tail(&mreq->list, &mep->req_list); in ep0_queue()
830 struct mtu3_ep *mep; in mtu3_ep0_queue() local
839 mep = to_mtu3_ep(ep); in mtu3_ep0_queue()
840 mtu = mep->mtu; in mtu3_ep0_queue()
844 ret = ep0_queue(mep, mreq); in mtu3_ep0_queue()
857 struct mtu3_ep *mep; in mtu3_ep0_halt() local
865 mep = to_mtu3_ep(ep); in mtu3_ep0_halt()
866 mtu = mep->mtu; in mtu3_ep0_halt()
872 if (!list_empty(&mep->req_list)) { in mtu3_ep0_halt()