Lines Matching defs:mep
80 static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len)
82 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0;
85 dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n",
86 __func__, mep->epnum, len, src);
100 static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len)
102 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0;
106 dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n",
107 __func__, mep->epnum, len, dst);
196 mtu->ep0_req.mep = mtu->ep0;
208 struct mtu3_ep *mep = NULL;
242 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum;
243 if (!mep->desc) {
247 if (mep->flags & MTU3_EP_STALL)
263 mtu->ep0_req.mep = mtu->ep0;
382 struct mtu3_ep *mep;
414 mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum;
415 if (!mep->desc)
420 if (mep->flags & MTU3_EP_WEDGE)
423 mtu3_ep_stall_set(mep, set);
794 static int ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq)
796 struct mtu3 *mtu = mep->mtu;
803 mep->name, decode_ep0_state(mtu), mreq->request.length);
824 if (!list_empty(&mep->req_list))
827 list_add_tail(&mreq->list, &mep->req_list);
839 struct mtu3_ep *mep;
848 mep = to_mtu3_ep(ep);
849 mtu = mep->mtu;
853 ret = ep0_queue(mep, mreq);
866 struct mtu3_ep *mep;
874 mep = to_mtu3_ep(ep);
875 mtu = mep->mtu;
881 if (!list_empty(&mep->req_list)) {