/u-boot/drivers/usb/mtu3/ |
H A D | mtu3_qmu.h | 22 void mtu3_qmu_stop(struct mtu3_ep *mep); 23 int mtu3_qmu_start(struct mtu3_ep *mep); 24 void mtu3_qmu_resume(struct mtu3_ep *mep); 25 void mtu3_qmu_flush(struct mtu3_ep *mep); 27 void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq); 28 int mtu3_prepare_transfer(struct mtu3_ep *mep); 30 int mtu3_gpd_ring_alloc(struct mtu3_ep *mep); 31 void mtu3_gpd_ring_free(struct mtu3_ep *mep);
|
H A D | mtu3_gadget.c | 12 void mtu3_req_complete(struct mtu3_ep *mep, 14 __releases(mep->mtu->lock) 15 __acquires(mep->mtu->lock) 27 if (mep->epnum) 28 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); 31 mep->name, req, req->status, req->actual, req->length); 33 usb_gadget_giveback_request(&mep->ep, req); 37 static void nuke(struct mtu3_ep *mep, const int status) argument 41 if (list_empty(&mep->req_list)) 44 dev_dbg(mep 57 mtu3_ep_enable(struct mtu3_ep *mep) argument 123 mtu3_ep_disable(struct mtu3_ep *mep) argument 146 struct mtu3_ep *mep; local 198 struct mtu3_ep *mep = to_mtu3_ep(ep); local 223 struct mtu3_ep *mep = to_mtu3_ep(ep); local 247 struct mtu3_ep *mep = to_mtu3_ep(ep); local 306 struct mtu3_ep *mep = to_mtu3_ep(ep); local 346 struct mtu3_ep *mep = to_mtu3_ep(ep); local 391 struct mtu3_ep *mep = to_mtu3_ep(ep); local 575 init_hw_ep(struct mtu3 *mtu, struct mtu3_ep *mep, u32 epnum, u32 is_in) argument [all...] |
H A D | mtu3_qmu.c | 90 static void reset_gpd_list(struct mtu3_ep *mep) argument 92 struct mtu3_gpd_ring *ring = &mep->gpd_ring; 102 int mtu3_gpd_ring_alloc(struct mtu3_ep *mep) argument 105 struct mtu3_gpd_ring *ring = &mep->gpd_ring; 120 void mtu3_gpd_ring_free(struct mtu3_ep *mep) argument 122 struct mtu3_gpd_ring *ring = &mep->gpd_ring; 128 void mtu3_qmu_resume(struct mtu3_ep *mep) argument 130 struct mtu3 *mtu = mep->mtu; 132 int epnum = mep->epnum; 135 offset = mep 177 mtu3_prepare_transfer(struct mtu3_ep *mep) argument 182 mtu3_prepare_tx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) argument 219 mtu3_prepare_rx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) argument 251 mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) argument 259 mtu3_qmu_start(struct mtu3_ep *mep) argument 303 mtu3_qmu_stop(struct mtu3_ep *mep) argument 330 mtu3_qmu_flush(struct mtu3_ep *mep) argument 349 struct mtu3_ep *mep = mtu->in_eps + epnum; local 388 struct mtu3_ep *mep = mtu->out_eps + epnum; local [all...] |
H A D | mtu3_core.c | 17 static int ep_fifo_alloc(struct mtu3_ep *mep, u32 seg_size) argument 19 struct mtu3_fifo_info *fifo = mep->fifo; 20 struct mtu3 *mtu = mep->mtu; 23 mep->fifo_seg_size = mtu->is_u3_ip ? USB_SS_MAXP : USB_HS_MAXP; 29 mep->fifo_size = mep->fifo_seg_size * (mep->slot + 1); 30 mep->fifo_addr = fifo->base + mep->fifo_size * fz_bit; 33 dev_dbg(mep 39 ep_fifo_free(struct mtu3_ep *mep) argument 220 mtu3_ep_reset(struct mtu3_ep *mep) argument 230 mtu3_ep_stall_set(struct mtu3_ep *mep, bool set) argument 303 mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep, int interval, int burst, int mult) argument 405 mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep) argument 527 struct mtu3_ep *mep = mtu->in_eps + i; local [all...] |
H A D | mtu3_gadget_ep0.c | 103 static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len) argument 105 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; 108 dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n", 109 __func__, mep->epnum, len, src); 123 static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len) argument 125 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; 129 dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n", 130 __func__, mep->epnum, len, dst); 218 mtu->ep0_req.mep = mtu->ep0; 230 struct mtu3_ep *mep local 404 struct mtu3_ep *mep; local 812 ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq) argument 856 struct mtu3_ep *mep; local 883 struct mtu3_ep *mep; local [all...] |
H A D | mtu3.h | 276 struct mtu3_ep *mep; member in struct:mtu3_request 364 static inline struct mtu3_request *next_request(struct mtu3_ep *mep) argument 366 if (list_empty(&mep->req_list)) 369 return list_first_entry(&mep->req_list, struct mtu3_request, list); 401 void mtu3_req_complete(struct mtu3_ep *mep, 404 int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep, 406 void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep); 407 void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set);
|