Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/usb/cdns3/
Dgadget.c74 static int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,
77 static int cdns3_ep_run_stream_transfer(struct cdns3_endpoint *priv_ep,
114 struct cdns3_endpoint *priv_ep) in cdns3_get_dma_pos() argument
118 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
185 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, in cdns3_trb_virt_to_dma() argument
188 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
190 return priv_ep->trb_pool_dma + offset; in cdns3_trb_virt_to_dma()
193 static int cdns3_ring_size(struct cdns3_endpoint *priv_ep) in cdns3_ring_size() argument
195 switch (priv_ep->type) { in cdns3_ring_size()
201 if (priv_ep->use_streams) in cdns3_ring_size()
[all …]
Dep0.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 …]
Dtrace.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)
222 __assign_str(name, req->priv_ep->name);
[all …]
Ddebug.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 …]
Dgadget.h1229 struct cdns3_endpoint *priv_ep; member
1336 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep,
1345 void cdns3_rearm_transfer(struct cdns3_endpoint *priv_ep, u8 rearm);
1346 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep);
1350 void __cdns3_gadget_ep_set_halt(struct cdns3_endpoint *priv_ep);
1351 int __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint *priv_ep);
1357 void cdns3_gadget_giveback(struct cdns3_endpoint *priv_ep,
1362 struct cdns3_endpoint *priv_ep);
1364 int cdns3_ep_config(struct cdns3_endpoint *priv_ep, bool enable);