Home
last modified time | relevance | path

Searched refs:priv_ep (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/usb/cdns3/
H A Dcdns3-gadget.c76 static int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,
79 static int cdns3_ep_run_stream_transfer(struct cdns3_endpoint *priv_ep,
116 struct cdns3_endpoint *priv_ep) in cdns3_get_dma_pos() argument
120 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
187 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, in cdns3_trb_virt_to_dma() argument
190 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
192 return priv_ep->trb_pool_dma + offset; in cdns3_trb_virt_to_dma()
195 static void cdns3_free_trb_pool(struct cdns3_endpoint *priv_ep) in cdns3_free_trb_pool() argument
197 struct cdns3_device *priv_dev = priv_ep->cdns3_dev; in cdns3_free_trb_pool()
199 if (priv_ep->trb_pool) { in cdns3_free_trb_pool()
[all …]
H A Dcdns3-ep0.c39 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_run_transfer() local
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()
[all …]
H A Dcdns3-debug.h110 static inline char *cdns3_dbg_ring(struct cdns3_endpoint *priv_ep, char *str) in cdns3_dbg_ring() argument
112 dma_addr_t addr = priv_ep->trb_pool_dma; in cdns3_dbg_ring()
118 trb_per_sector = GET_TRBS_PER_SEGMENT(priv_ep->type); in cdns3_dbg_ring()
120 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring()
121 ret += sprintf(str + ret, "\n\t\tRing contents for %s:", priv_ep->name); in cdns3_dbg_ring()
125 priv_ep->dequeue, trb, in cdns3_dbg_ring()
126 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
128 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
131 priv_ep->enqueue, trb, in cdns3_dbg_ring()
132 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
[all …]
H A Dcdns3-gadget.h1234 struct cdns3_endpoint *priv_ep; member
1345 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep,
1354 void cdns3_rearm_transfer(struct cdns3_endpoint *priv_ep, u8 rearm);
1355 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep);
1359 void __cdns3_gadget_ep_set_halt(struct cdns3_endpoint *priv_ep);
1360 int __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint *priv_ep);
1366 void cdns3_gadget_giveback(struct cdns3_endpoint *priv_ep,
1371 struct cdns3_endpoint *priv_ep);
1373 int cdns3_ep_config(struct cdns3_endpoint *priv_ep, bool enable);