Home
last modified time | relevance | path

Searched refs:pep (Results 1 – 16 of 16) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/marvell/
Dpxa168_eth.c266 static int pxa168_init_hw(struct pxa168_eth_private *pep);
273 static inline u32 rdl(struct pxa168_eth_private *pep, int offset) in rdl() argument
275 return readl_relaxed(pep->base + offset); in rdl()
278 static inline void wrl(struct pxa168_eth_private *pep, int offset, u32 data) in wrl() argument
280 writel_relaxed(data, pep->base + offset); in wrl()
283 static void abort_dma(struct pxa168_eth_private *pep) in abort_dma() argument
289 wrl(pep, SDMA_CMD, SDMA_CMD_AR | SDMA_CMD_AT); in abort_dma()
293 while ((rdl(pep, SDMA_CMD) & (SDMA_CMD_AR | SDMA_CMD_AT)) in abort_dma()
300 netdev_err(pep->dev, "%s : DMA Stuck\n", __func__); in abort_dma()
305 struct pxa168_eth_private *pep = netdev_priv(dev); in rxq_refill() local
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/cdns2/
Dcdns2-gadget.c75 struct cdns2_endpoint *pep) in cdns2_get_dma_pos() argument
79 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos()
99 dma_addr_t cdns2_trb_virt_to_dma(struct cdns2_endpoint *pep, in cdns2_trb_virt_to_dma() argument
102 u32 offset = (char *)trb - (char *)pep->ring.trbs; in cdns2_trb_virt_to_dma()
104 return pep->ring.dma + offset; in cdns2_trb_virt_to_dma()
107 static void cdns2_free_tr_segment(struct cdns2_endpoint *pep) in cdns2_free_tr_segment() argument
109 struct cdns2_device *pdev = pep->pdev; in cdns2_free_tr_segment()
110 struct cdns2_ring *ring = &pep->ring; in cdns2_free_tr_segment()
112 if (pep->ring.trbs) { in cdns2_free_tr_segment()
119 static int cdns2_alloc_tr_segment(struct cdns2_endpoint *pep) in cdns2_alloc_tr_segment() argument
[all …]
Dcdns2-trace.h129 TP_PROTO(struct cdns2_endpoint *pep, u32 ep_trbaddr),
130 TP_ARGS(pep, ep_trbaddr),
132 __string(name, pep->num ? pep->name :
133 (pep->dir ? "ep0in" : "ep0out"))
145 TP_PROTO(struct cdns2_endpoint *pep, u32 ep_trbaddr),
146 TP_ARGS(pep, ep_trbaddr)
150 TP_PROTO(struct cdns2_endpoint *pep, u32 ep_trbaddr),
151 TP_ARGS(pep, ep_trbaddr)
190 TP_PROTO(struct cdns2_device *pdev, struct cdns2_endpoint *pep),
191 TP_ARGS(pdev, pep),
[all …]
Dcdns2-ep0.c45 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_ep0_enqueue() local
46 struct cdns2_ring *ring = &pep->ring; in cdns2_ep0_enqueue()
64 trace_cdns2_queue_trb(pep, ring->trbs); in cdns2_ep0_enqueue()
66 if (!pep->dir) in cdns2_ep0_enqueue()
69 cdns2_select_ep(pdev, pep->dir); in cdns2_ep0_enqueue()
72 writel(pep->ring.dma, &regs->ep_traddr); in cdns2_ep0_enqueue()
74 trace_cdns2_doorbell_ep0(pep, readl(&regs->ep_traddr)); in cdns2_ep0_enqueue()
92 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_ep0_stall() local
95 preq = cdns2_next_preq(&pep->pending_list); in cdns2_ep0_stall()
99 cdns2_gadget_giveback(pep, preq, -ECONNRESET); in cdns2_ep0_stall()
[all …]
Dcdns2-debug.h98 static inline const char *cdns2_raw_ring(struct cdns2_endpoint *pep, in cdns2_raw_ring() argument
102 struct cdns2_ring *ring = &pep->ring; in cdns2_raw_ring()
108 ret = scnprintf(str, size, "\n\t\tTR for %s:", pep->name); in cdns2_raw_ring()
111 dma = cdns2_trb_virt_to_dma(pep, trb); in cdns2_raw_ring()
117 dma = cdns2_trb_virt_to_dma(pep, trb); in cdns2_raw_ring()
Dcdns2-gadget.h600 struct cdns2_endpoint *pep; member
691 dma_addr_t cdns2_trb_virt_to_dma(struct cdns2_endpoint *pep,
701 void cdns2_gadget_giveback(struct cdns2_endpoint *pep,
704 void cdns2_init_ep0(struct cdns2_device *pdev, struct cdns2_endpoint *pep);
713 int cdns2_halt_endpoint(struct cdns2_device *pdev, struct cdns2_endpoint *pep,
/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-gadget.c344 int cdnsp_ep_enqueue(struct cdnsp_ep *pep, struct cdnsp_request *preq) in cdnsp_ep_enqueue() argument
346 struct cdnsp_device *pdev = pep->pdev; in cdnsp_ep_enqueue()
350 if (preq->epnum == 0 && !list_empty(&pep->pending_list)) { in cdnsp_ep_enqueue()
358 preq->direction = pep->direction; in cdnsp_ep_enqueue()
359 preq->epnum = pep->number; in cdnsp_ep_enqueue()
362 ret = usb_gadget_map_request_by_dev(pdev->dev, request, pep->direction); in cdnsp_ep_enqueue()
368 list_add_tail(&preq->list, &pep->pending_list); in cdnsp_ep_enqueue()
372 switch (usb_endpoint_type(pep->endpoint.desc)) { in cdnsp_ep_enqueue()
391 pep->direction); in cdnsp_ep_enqueue()
423 int cdnsp_ep_dequeue(struct cdnsp_ep *pep, struct cdnsp_request *preq) in cdnsp_ep_dequeue() argument
[all …]
Dcdnsp-ring.c277 struct cdnsp_ep *pep, in cdnsp_ring_ep_doorbell() argument
281 unsigned int ep_state = pep->ep_state; in cdnsp_ring_ep_doorbell()
292 if (pep->ep_state & EP_HAS_STREAMS) { in cdnsp_ring_ep_doorbell()
293 if (pep->stream_info.drbls_count >= 2) in cdnsp_ring_ep_doorbell()
296 pep->stream_info.drbls_count++; in cdnsp_ring_ep_doorbell()
299 pep->ep_state &= ~EP_STOPPED; in cdnsp_ring_ep_doorbell()
301 if (pep->idx == 0 && pdev->ep0_stage == CDNSP_DATA_STAGE && in cdnsp_ring_ep_doorbell()
303 db_value = DB_VALUE_EP0_OUT(pep->idx, stream_id); in cdnsp_ring_ep_doorbell()
305 db_value = DB_VALUE(pep->idx, stream_id); in cdnsp_ring_ep_doorbell()
307 trace_cdnsp_tr_drbl(pep, stream_id); in cdnsp_ring_ep_doorbell()
[all …]
Dcdnsp-mem.c22 struct cdnsp_ep *pep);
410 void cdnsp_free_endpoint_rings(struct cdnsp_device *pdev, struct cdnsp_ep *pep) in cdnsp_free_endpoint_rings() argument
412 cdnsp_ring_free(pdev, pep->ring); in cdnsp_free_endpoint_rings()
413 pep->ring = NULL; in cdnsp_free_endpoint_rings()
414 cdnsp_free_stream_info(pdev, pep); in cdnsp_free_endpoint_rings()
518 struct cdnsp_ep *pep) in cdnsp_free_stream_ctx() argument
520 dma_pool_free(pdev->device_pool, pep->stream_info.stream_ctx_array, in cdnsp_free_stream_ctx()
521 pep->stream_info.ctx_array_dma); in cdnsp_free_stream_ctx()
526 *cdnsp_alloc_stream_ctx(struct cdnsp_device *pdev, struct cdnsp_ep *pep) in cdnsp_alloc_stream_ctx() argument
529 pep->stream_info.num_stream_ctxs; in cdnsp_alloc_stream_ctx()
[all …]
Dcdnsp-ep0.c21 struct cdnsp_ep *pep; in cdnsp_ep0_stall() local
23 pep = &pdev->eps[0]; in cdnsp_ep0_stall()
24 preq = next_request(&pep->pending_list); in cdnsp_ep0_stall()
27 cdnsp_halt_endpoint(pdev, pep, true); in cdnsp_ep0_stall()
30 cdnsp_gadget_giveback(pep, preq, -ECONNRESET); in cdnsp_ep0_stall()
32 pep->ep_state |= EP0_HALTED_STATUS; in cdnsp_ep0_stall()
132 return cdnsp_ep_enqueue(pdev->ep0_preq.pep, &pdev->ep0_preq); in cdnsp_status_stage()
147 struct cdnsp_ep *pep; in cdnsp_ep0_handle_status() local
173 pep = &pdev->eps[ep_sts]; in cdnsp_ep0_handle_status()
174 ep_sts = GET_EP_CTX_STATE(pep->out_ctx); in cdnsp_ep0_handle_status()
[all …]
Dcdnsp-trace.h38 TP_PROTO(struct cdnsp_ep *pep, u32 stream_id),
39 TP_ARGS(pep, stream_id),
41 __string(name, pep->name)
52 __entry->state = pep->ep_state;
54 __entry->enabled = pep->ep_state & EP_HAS_STREAMS;
55 __entry->num_streams = pep->stream_info.num_streams;
56 __entry->td_count = pep->stream_info.td_count;
57 __entry->first_prime_det = pep->stream_info.first_prime_det;
58 __entry->drbls_count = pep->stream_info.drbls_count;
68 TP_PROTO(struct cdnsp_ep *pep, u32 stream_id),
[all …]
Dcdnsp-gadget.h1309 struct cdnsp_ep *pep; member
1491 struct cdnsp_ep *pep,
1498 struct cdnsp_ep *pep,
1501 int cdnsp_alloc_streams(struct cdnsp_device *pdev, struct cdnsp_ep *pep);
1502 void cdnsp_free_endpoint_rings(struct cdnsp_device *pdev, struct cdnsp_ep *pep);
1546 struct cdnsp_ep *pep,
1549 struct cdnsp_ep *pep);
1567 void cdnsp_gadget_giveback(struct cdnsp_ep *pep, struct cdnsp_request *preq,
1569 int cdnsp_ep_enqueue(struct cdnsp_ep *pep, struct cdnsp_request *preq);
1570 int cdnsp_ep_dequeue(struct cdnsp_ep *pep, struct cdnsp_request *preq);
[all …]
/linux-6.12.1/drivers/scsi/
Dam53c974.c120 struct pci_esp_priv *pep = pci_esp_get_priv(esp); in pci_esp_irq_pending() local
122 pep->dma_status = pci_esp_read8(esp, ESP_DMA_STATUS); in pci_esp_irq_pending()
123 esp_dma_log("dma intr dreg[%02x]\n", pep->dma_status); in pci_esp_irq_pending()
125 if (pep->dma_status & (ESP_DMA_STAT_ERROR | in pci_esp_irq_pending()
183 struct pci_esp_priv *pep = pci_esp_get_priv(esp); in pci_esp_dma_invalidate() local
188 pep->dma_status = 0; in pci_esp_dma_invalidate()
193 struct pci_esp_priv *pep = pci_esp_get_priv(esp); in pci_esp_dma_error() local
195 if (pep->dma_status & ESP_DMA_STAT_ERROR) { in pci_esp_dma_error()
203 if (pep->dma_status & ESP_DMA_STAT_ABORT) { in pci_esp_dma_error()
205 pep->dma_status = pci_esp_read8(esp, ESP_DMA_CMD); in pci_esp_dma_error()
[all …]
/linux-6.12.1/net/phonet/
DMakefile12 pn_pep-y := pep.o pep-gprs.o
/linux-6.12.1/fs/
Deventpoll.c1117 static int ep_alloc(struct eventpoll **pep) in ep_alloc() argument
1135 *pep = ep; in ep_alloc()
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dx1e80100.dtsi533 pld_pep_mem: pld-pep@81f30000 {