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()
196 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
208 struct mtu3_ep *mep = NULL; in ep0_get_status() local
242 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_get_status()
243 if (!mep->desc) { in ep0_get_status()
247 if (mep->flags & MTU3_EP_STALL) in ep0_get_status()
263 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status()
382 struct mtu3_ep *mep; in ep0_handle_feature() local
414 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_handle_feature()
415 if (!mep->desc) in ep0_handle_feature()
420 if (mep->flags & MTU3_EP_WEDGE) in ep0_handle_feature()
423 mtu3_ep_stall_set(mep, set); in ep0_handle_feature()
794 static int ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq) in ep0_queue() argument
796 struct mtu3 *mtu = mep->mtu; in ep0_queue()
803 mep->name, decode_ep0_state(mtu), mreq->request.length); in ep0_queue()
824 if (!list_empty(&mep->req_list)) in ep0_queue()
827 list_add_tail(&mreq->list, &mep->req_list); in ep0_queue()
839 struct mtu3_ep *mep; in mtu3_ep0_queue() local
848 mep = to_mtu3_ep(ep); in mtu3_ep0_queue()
849 mtu = mep->mtu; in mtu3_ep0_queue()
853 ret = ep0_queue(mep, mreq); in mtu3_ep0_queue()
866 struct mtu3_ep *mep; in mtu3_ep0_halt() local
874 mep = to_mtu3_ep(ep); in mtu3_ep0_halt()
875 mtu = mep->mtu; in mtu3_ep0_halt()
881 if (!list_empty(&mep->req_list)) { in mtu3_ep0_halt()