Home
last modified time | relevance | path

Searched refs:trb_pool (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dep0.c41 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 Dgadget.c188 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 in cdns3_allocate_trb_pool()
[all...]
H A Ddebug.h121 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 Dtrace.h452 memcpy(__get_dynamic_array(ring), priv_ep->trb_pool,
H A Dgadget.h1113 * @trb_pool: transfer ring - array of transaction buffers
1141 struct cdns3_trb *trb_pool; member
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcdns3-ep0.c41 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 Dcdns3-debug.h120 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring()
128 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
145 trb = &priv_ep->trb_pool[i]; in cdns3_dbg_ring()
H A Dcdns3-gadget.c190 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
199 if (priv_ep->trb_pool) { in cdns3_free_trb_pool()
201 priv_ep->trb_pool, priv_ep->trb_pool_dma); in cdns3_free_trb_pool()
202 priv_ep->trb_pool = NULL; in cdns3_free_trb_pool()
219 if (priv_ep->trb_pool && priv_ep->alloc_ring_size < ring_size) in cdns3_allocate_trb_pool()
222 if (!priv_ep->trb_pool) { in cdns3_allocate_trb_pool()
223 priv_ep->trb_pool = dma_pool_alloc(priv_dev->eps_dma_pool, in cdns3_allocate_trb_pool()
227 if (!priv_ep->trb_pool) in cdns3_allocate_trb_pool()
233 memset(priv_ep->trb_pool, 0, ring_size); in cdns3_allocate_trb_pool()
241 link_trb = (priv_ep->trb_pool in cdns3_allocate_trb_pool()
[all...]
H A Dcdns3-gadget.h1114 * @trb_pool: transfer ring - array of transaction buffers
1142 struct cdns3_trb *trb_pool; member
/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Dgadget.c449 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset()
458 if (dep->trb_pool) in dwc3_alloc_trb_pool()
461 dep->trb_pool = dma_alloc_coherent(dwc->sysdev, in dwc3_alloc_trb_pool()
464 if (!dep->trb_pool) { in dwc3_alloc_trb_pool()
478 dep->trb_pool, dep->trb_pool_dma); in dwc3_free_trb_pool()
480 dep->trb_pool = NULL; in dwc3_free_trb_pool()
690 memset(dep->trb_pool, 0, in __dwc3_gadget_ep_enable()
694 trb_st_hw = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable()
696 trb_link = &dep->trb_pool[DWC3_TRB_NUM - 1]; in __dwc3_gadget_ep_enable()
715 trb = &dep->trb_pool[ in __dwc3_gadget_ep_enable()
[all...]
H A Ddebugfs.c909 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show()
H A Dcore.h667 * @trb_pool: array of transaction buffers
668 * @trb_pool_dma: dma address of @trb_pool
695 struct dwc3_trb *trb_pool; member
718 * IMPORTANT: we *know* we have 256 TRBs in our @trb_pool, so we will
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Dgadget.c484 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset()
493 if (dep->trb_pool) in dwc3_alloc_trb_pool()
496 dep->trb_pool = dma_alloc_coherent(dwc->sysdev, in dwc3_alloc_trb_pool()
499 if (!dep->trb_pool) { in dwc3_alloc_trb_pool()
513 dep->trb_pool, dep->trb_pool_dma); in dwc3_free_trb_pool()
515 dep->trb_pool = NULL; in dwc3_free_trb_pool()
915 memset(dep->trb_pool, 0, in __dwc3_gadget_ep_enable()
919 trb_st_hw = &dep->trb_pool[0]; in __dwc3_gadget_ep_enable()
921 trb_link = &dep->trb_pool[DWC3_TRB_NUM - 1]; in __dwc3_gadget_ep_enable()
940 trb = &dep->trb_pool[ in __dwc3_gadget_ep_enable()
[all...]
H A Ddebugfs.c910 struct dwc3_trb *trb = &dep->trb_pool[i]; in dwc3_trb_ring_show()
H A Dcore.h705 * @trb_pool: array of transaction buffers
706 * @trb_pool_dma: dma address of @trb_pool
733 struct dwc3_trb *trb_pool; member
758 * IMPORTANT: we *know* we have 256 TRBs in our @trb_pool, so we will
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dmv_u3d.h258 struct dma_pool *trb_pool; /* for TRB data structure */ member
H A Dmv_u3d_core.c192 dma_pool_free(u3d->trb_pool,
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()
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dmv_u3d.h258 struct dma_pool *trb_pool; /* for TRB data structure */ member
H A Dmv_u3d_core.c192 dma_pool_free(u3d->trb_pool,
291 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()
1880 u3d->trb_pool = dma_pool_create("u3d_trb", in mv_u3d_probe()
1886 if (!u3d->trb_pool) { in mv_u3d_probe()
1973 dma_pool_destroy(u3d->trb_pool); in mv_u3d_probe()

Completed in 49 milliseconds