Searched refs:priv_ep (Results 1 – 4 of 4) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/cdns3/ |
| H A D | gadget.c | 103 struct cdns3_endpoint *priv_ep) in cdns3_get_dma_pos() argument 107 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos() 159 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, in cdns3_trb_virt_to_dma() argument 162 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma() 164 return priv_ep->trb_pool_dma + offset; in cdns3_trb_virt_to_dma() 167 int cdns3_ring_size(struct cdns3_endpoint *priv_ep) in cdns3_ring_size() argument 169 switch (priv_ep->type) { in cdns3_ring_size() 185 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep) in cdns3_allocate_trb_pool() argument 187 int ring_size = cdns3_ring_size(priv_ep); in cdns3_allocate_trb_pool() 190 if (!priv_ep->trb_pool) { in cdns3_allocate_trb_pool() [all …]
|
| H A D | ep0.c | 42 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_run_transfer() local 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() [all …]
|
| H A D | debug.h | 111 static inline char *cdns3_dbg_ring(struct cdns3_endpoint *priv_ep, in cdns3_dbg_ring() argument 114 dma_addr_t addr = priv_ep->trb_pool_dma; in cdns3_dbg_ring() 120 trb_per_sector = GET_TRBS_PER_SEGMENT(priv_ep->type); in cdns3_dbg_ring() 122 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring() 123 ret += sprintf(str + ret, "\n\t\tRing contents for %s:", priv_ep->name); in cdns3_dbg_ring() 127 priv_ep->dequeue, trb, in cdns3_dbg_ring() 128 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring() 130 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring() 133 priv_ep->enqueue, trb, in cdns3_dbg_ring() 134 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring() [all …]
|
| H A D | gadget.h | 1200 struct cdns3_endpoint *priv_ep; member 1304 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, 1313 int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep, 1315 void cdns3_rearm_transfer(struct cdns3_endpoint *priv_ep, u8 rearm); 1316 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep); 1320 void __cdns3_gadget_ep_set_halt(struct cdns3_endpoint *priv_ep); 1321 int __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint *priv_ep); 1327 void cdns3_gadget_giveback(struct cdns3_endpoint *priv_ep, 1332 struct cdns3_endpoint *priv_ep); 1334 void cdns3_ep_config(struct cdns3_endpoint *priv_ep);
|