Searched refs:trb_pool (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/usb/cdns3/ |
D | ep0.c | 40 priv_ep->trb_pool[0].buffer = TRB_BUFFER(dma_addr); in cdns3_ep0_run_transfer() 41 priv_ep->trb_pool[0].length = TRB_LEN(length); in cdns3_ep0_run_transfer() 44 priv_ep->trb_pool[0].control = TRB_CYCLE | TRB_TYPE(TRB_NORMAL); in cdns3_ep0_run_transfer() 45 priv_ep->trb_pool[1].buffer = TRB_BUFFER(dma_addr); in cdns3_ep0_run_transfer() 46 priv_ep->trb_pool[1].length = TRB_LEN(0); in cdns3_ep0_run_transfer() 47 priv_ep->trb_pool[1].control = TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 50 priv_ep->trb_pool[0].control = TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer() 52 priv_ep->trb_pool[1].control = 0; in cdns3_ep0_run_transfer() 55 trace_cdns3_prepare_trb(priv_ep, priv_ep->trb_pool); in cdns3_ep0_run_transfer() 596 trace_cdns3_complete_trb(priv_ep, priv_ep->trb_pool); in cdns3_transfer_completed() [all …]
|
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()
|
D | gadget.c | 156 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 185 if (!priv_ep->trb_pool) { in cdns3_allocate_trb_pool() 186 priv_ep->trb_pool = dma_alloc_coherent(priv_dev->sysdev, in cdns3_allocate_trb_pool() 190 if (!priv_ep->trb_pool) in cdns3_allocate_trb_pool() 193 memset(priv_ep->trb_pool, 0, ring_size); in cdns3_allocate_trb_pool() 201 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool() 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() 851 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_transfer() [all …]
|
D | trace.h | 378 memcpy(__get_dynamic_array(ring), priv_ep->trb_pool,
|
D | gadget.h | 1125 struct cdns3_trb *trb_pool; member
|
/Linux-v5.4/drivers/usb/dwc3/ |
D | gadget.c | 427 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 436 if (dep->trb_pool) in dwc3_alloc_trb_pool() 439 dep->trb_pool = dma_alloc_coherent(dwc->sysdev, in dwc3_alloc_trb_pool() 442 if (!dep->trb_pool) { in dwc3_alloc_trb_pool() 456 dep->trb_pool, dep->trb_pool_dma); in dwc3_free_trb_pool() 458 dep->trb_pool = NULL; in dwc3_free_trb_pool() 646 memset(dep->trb_pool, 0, in __dwc3_gadget_ep_enable() 650 trb_st_hw = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() 652 trb_link = &dep->trb_pool[DWC3_TRB_NUM - 1]; in __dwc3_gadget_ep_enable() 671 trb = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable() [all …]
|
D | core.h | 681 struct dwc3_trb *trb_pool; member
|
D | debugfs.c | 798 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show()
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | mv_u3d.h | 258 struct dma_pool *trb_pool; /* for TRB data structure */ member
|
D | mv_u3d_core.c | 193 dma_pool_free(u3d->trb_pool, in mv_u3d_done() 292 trb_hw = dma_pool_alloc(u3d->trb_pool, GFP_ATOMIC, dma); in mv_u3d_build_trb_one() 1758 dma_pool_destroy(u3d->trb_pool); in mv_u3d_remove() 1882 u3d->trb_pool = dma_pool_create("u3d_trb", in mv_u3d_probe() 1888 if (!u3d->trb_pool) { in mv_u3d_probe() 1974 dma_pool_destroy(u3d->trb_pool); in mv_u3d_probe()
|