| /OK3568_Linux_fs/u-boot/drivers/usb/cdns3/ |
| H A D | ep0.c | 44 priv_ep->trb_pool[0].buffer = TRB_BUFFER(dma_addr); in cdns3_ep0_run_transfer() 45 priv_ep->trb_pool[0].length = TRB_LEN(length); in cdns3_ep0_run_transfer() 48 priv_ep->trb_pool[0].control = TRB_CYCLE | TRB_TYPE(TRB_NORMAL); in cdns3_ep0_run_transfer() 49 priv_ep->trb_pool[1].buffer = TRB_BUFFER(dma_addr); in cdns3_ep0_run_transfer() 50 priv_ep->trb_pool[1].length = TRB_LEN(0); in cdns3_ep0_run_transfer() 51 priv_ep->trb_pool[1].control = TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 54 priv_ep->trb_pool[0].control = TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 56 priv_ep->trb_pool[1].control = 0; in cdns3_ep0_run_transfer() 60 flush_dcache_range((unsigned long)priv_ep->trb_pool, in cdns3_ep0_run_transfer() 61 (unsigned long)priv_ep->trb_pool + in cdns3_ep0_run_transfer() [all …]
|
| H A D | gadget.c | 162 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 190 if (!priv_ep->trb_pool) { in cdns3_allocate_trb_pool() 191 priv_ep->trb_pool = in cdns3_allocate_trb_pool() 194 if (!priv_ep->trb_pool) in cdns3_allocate_trb_pool() 197 memset(priv_ep->trb_pool, 0, ring_size); in cdns3_allocate_trb_pool() 205 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool() 214 if (priv_ep->trb_pool) { in cdns3_free_trb_pool() 215 dma_free_coherent(priv_ep->trb_pool); in cdns3_free_trb_pool() 216 priv_ep->trb_pool = NULL; in cdns3_free_trb_pool() 845 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_transfer() [all …]
|
| H A D | debug.h | 122 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring() 130 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
|
| H A D | gadget.h | 1125 struct cdns3_trb *trb_pool; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/cdns3/ |
| H A D | ep0.c | 41 priv_ep->trb_pool[0].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns3_ep0_run_transfer() 42 priv_ep->trb_pool[0].length = cpu_to_le32(TRB_LEN(length)); in cdns3_ep0_run_transfer() 45 priv_ep->trb_pool[0].control = cpu_to_le32(TRB_CYCLE | TRB_TYPE(TRB_NORMAL)); in cdns3_ep0_run_transfer() 46 priv_ep->trb_pool[1].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns3_ep0_run_transfer() 47 priv_ep->trb_pool[1].length = cpu_to_le32(TRB_LEN(0)); in cdns3_ep0_run_transfer() 48 priv_ep->trb_pool[1].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 51 priv_ep->trb_pool[0].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 53 priv_ep->trb_pool[1].control = 0; in cdns3_ep0_run_transfer() 56 trace_cdns3_prepare_trb(priv_ep, priv_ep->trb_pool); in cdns3_ep0_run_transfer() 576 trace_cdns3_complete_trb(priv_ep, priv_ep->trb_pool); in cdns3_transfer_completed() [all …]
|
| H A D | gadget.c | 188 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 212 if (priv_ep->trb_pool) { in cdns3_free_trb_pool() 215 priv_ep->trb_pool, priv_ep->trb_pool_dma); in cdns3_free_trb_pool() 216 priv_ep->trb_pool = NULL; in cdns3_free_trb_pool() 233 if (priv_ep->trb_pool && priv_ep->alloc_ring_size < ring_size) in cdns3_allocate_trb_pool() 236 if (!priv_ep->trb_pool) { in cdns3_allocate_trb_pool() 237 priv_ep->trb_pool = dma_alloc_coherent(priv_dev->sysdev, in cdns3_allocate_trb_pool() 241 if (!priv_ep->trb_pool) in cdns3_allocate_trb_pool() 247 memset(priv_ep->trb_pool, 0, ring_size); in cdns3_allocate_trb_pool() 255 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool() [all …]
|
| H A D | debug.h | 121 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring() 129 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
|
| H A D | trace.h | 452 memcpy(__get_dynamic_array(ring), priv_ep->trb_pool,
|
| H A D | gadget.h | 1141 struct cdns3_trb *trb_pool; member
|
| /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/ |
| H A D | gadget.c | 328 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 335 if (dep->trb_pool) in dwc3_alloc_trb_pool() 341 dep->trb_pool = dma_alloc_coherent(sizeof(struct dwc3_trb) * in dwc3_alloc_trb_pool() 344 if (!dep->trb_pool) { in dwc3_alloc_trb_pool() 355 dma_free_coherent(dep->trb_pool); in dwc3_free_trb_pool() 357 dep->trb_pool = NULL; in dwc3_free_trb_pool() 509 trb_st_hw = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 511 trb_link = &dep->trb_pool[DWC3_TRB_NUM - 1]; in __dwc3_gadget_ep_enable() 713 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb() 1785 trb = &dep->trb_pool[slot]; in dwc3_cleanup_done_reqs()
|
| H A D | core.h | 455 struct dwc3_trb *trb_pool; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc3/ |
| H A D | gadget.c | 466 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 475 if (dep->trb_pool) in dwc3_alloc_trb_pool() 478 dep->trb_pool = dma_alloc_coherent(dwc->sysdev, in dwc3_alloc_trb_pool() 481 if (!dep->trb_pool) { in dwc3_alloc_trb_pool() 495 dep->trb_pool, dep->trb_pool_dma); in dwc3_free_trb_pool() 497 dep->trb_pool = NULL; in dwc3_free_trb_pool() 1038 memset(dep->trb_pool, 0, in __dwc3_gadget_ep_enable() 1042 trb_st_hw = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 1044 trb_link = &dep->trb_pool[DWC3_TRB_NUM - 1]; in __dwc3_gadget_ep_enable() 1063 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() [all …]
|
| H A D | debugfs.c | 810 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show()
|
| H A D | core.h | 716 struct dwc3_trb *trb_pool; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | mv_u3d_core.c | 192 dma_pool_free(u3d->trb_pool, in mv_u3d_done() 291 trb_hw = dma_pool_alloc(u3d->trb_pool, GFP_ATOMIC, dma); in mv_u3d_build_trb_one() 1757 dma_pool_destroy(u3d->trb_pool); in mv_u3d_remove() 1881 u3d->trb_pool = dma_pool_create("u3d_trb", in mv_u3d_probe() 1887 if (!u3d->trb_pool) { in mv_u3d_probe() 1974 dma_pool_destroy(u3d->trb_pool); in mv_u3d_probe()
|
| H A D | mv_u3d.h | 258 struct dma_pool *trb_pool; /* for TRB data structure */ member
|