Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/usb/cdns3/
Dcdns3-gadget.c75 static int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,
78 static int cdns3_ep_run_stream_transfer(struct cdns3_endpoint *priv_ep,
115 struct cdns3_endpoint *priv_ep) in cdns3_get_dma_pos() argument
119 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
186 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, in cdns3_trb_virt_to_dma() argument
189 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
191 return priv_ep->trb_pool_dma + offset; in cdns3_trb_virt_to_dma()
194 static void cdns3_free_trb_pool(struct cdns3_endpoint *priv_ep) in cdns3_free_trb_pool() argument
196 struct cdns3_device *priv_dev = priv_ep->cdns3_dev; in cdns3_free_trb_pool()
198 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.h119 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
120 TP_ARGS(priv_dev, priv_ep),
122 __string(ep_name, priv_ep->name)
130 __assign_str(ep_name, priv_ep->name);
133 __entry->ep_last_sid = priv_ep->last_stream_id;
134 __entry->use_streams = priv_ep->use_streams;
146 TP_PROTO(struct cdns3_device *priv_dev, struct cdns3_endpoint *priv_ep),
147 TP_ARGS(priv_dev, priv_ep)
206 __string(name, req->priv_ep->name)
221 __assign_str(name, req->priv_ep->name);
[all …]
Dcdns3-debug.h110 static inline char *cdns3_dbg_ring(struct cdns3_endpoint *priv_ep, in cdns3_dbg_ring() argument
113 dma_addr_t addr = priv_ep->trb_pool_dma; in cdns3_dbg_ring()
119 trb_per_sector = GET_TRBS_PER_SEGMENT(priv_ep->type); in cdns3_dbg_ring()
121 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring()
122 ret += sprintf(str + ret, "\n\t\tRing contents for %s:", priv_ep->name); in cdns3_dbg_ring()
126 priv_ep->dequeue, trb, in cdns3_dbg_ring()
127 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
129 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
132 priv_ep->enqueue, trb, in cdns3_dbg_ring()
133 (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);