Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/usb/cdns3/
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 …]
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 …]
Dcdns3-trace.h118 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
119 TP_ARGS(priv_dev, priv_ep),
121 __string(ep_name, priv_ep->name)
128 __assign_str(ep_name, priv_ep->name);
131 __entry->ep_last_sid = priv_ep->last_stream_id;
132 __entry->use_streams = priv_ep->use_streams;
144 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
145 TP_ARGS(priv_dev, priv_ep)
202 __string(name, req->priv_ep->name)
217 __assign_str(name, req->priv_ep->name);
[all …]
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 …]
Dcdns3-gadget.h1231 struct cdns3_endpoint *priv_ep; member
1342 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep,
1351 void cdns3_rearm_transfer(struct cdns3_endpoint *priv_ep, u8 rearm);
1352 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep);
1356 void __cdns3_gadget_ep_set_halt(struct cdns3_endpoint *priv_ep);
1357 int __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint *priv_ep);
1363 void cdns3_gadget_giveback(struct cdns3_endpoint *priv_ep,
1368 struct cdns3_endpoint *priv_ep);
1370 int cdns3_ep_config(struct cdns3_endpoint *priv_ep, bool enable);