Lines Matching refs:mep

103 static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len)  in ep0_write_fifo()  argument
105 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_write_fifo()
108 dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n", in ep0_write_fifo()
109 __func__, mep->epnum, len, src); in ep0_write_fifo()
123 static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len) in ep0_read_fifo() argument
125 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_read_fifo()
129 dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n", in ep0_read_fifo()
130 __func__, mep->epnum, len, dst); in ep0_read_fifo()
218 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
230 struct mtu3_ep *mep = NULL; in ep0_get_status() local
264 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_get_status()
265 if (!mep->desc) { in ep0_get_status()
269 if (mep->flags & MTU3_EP_STALL) in ep0_get_status()
285 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status()
404 struct mtu3_ep *mep; in ep0_handle_feature() local
436 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; in ep0_handle_feature()
437 if (!mep->desc) in ep0_handle_feature()
442 if (mep->flags & MTU3_EP_WEDGE) in ep0_handle_feature()
445 mtu3_ep_stall_set(mep, set); in ep0_handle_feature()
812 static int ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq) in ep0_queue() argument
814 struct mtu3 *mtu = mep->mtu; in ep0_queue()
821 mep->name, decode_ep0_state(mtu), mreq->request.length); in ep0_queue()
841 if (!list_empty(&mep->req_list)) in ep0_queue()
844 list_add_tail(&mreq->list, &mep->req_list); in ep0_queue()
856 struct mtu3_ep *mep; in mtu3_ep0_queue() local
865 mep = to_mtu3_ep(ep); in mtu3_ep0_queue()
866 mtu = mep->mtu; in mtu3_ep0_queue()
870 ret = ep0_queue(mep, mreq); in mtu3_ep0_queue()
883 struct mtu3_ep *mep; in mtu3_ep0_halt() local
891 mep = to_mtu3_ep(ep); in mtu3_ep0_halt()
892 mtu = mep->mtu; in mtu3_ep0_halt()
898 if (!list_empty(&mep->req_list)) { in mtu3_ep0_halt()