/linux/drivers/net/ethernet/marvell/ |
H A D | pxa168_eth.c | 266 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/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-gadget.c | 76 struct cdns2_endpoint *pep) in cdns2_get_dma_pos() 80 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos() 100 dma_addr_t cdns2_trb_virt_to_dma(struct cdns2_endpoint *pep, in cdns2_trb_virt_to_dma() 103 u32 offset = (char *)trb - (char *)pep->ring.trbs; in cdns2_trb_virt_to_dma() 105 return pep->ring.dma + offset; in cdns2_trb_virt_to_dma() 108 static void cdns2_free_tr_segment(struct cdns2_endpoint *pep) in cdns2_free_tr_segment() 110 struct cdns2_device *pdev = pep->pdev; in cdns2_free_tr_segment() 111 struct cdns2_ring *ring = &pep->ring; in cdns2_free_tr_segment() 113 if (pep->ring.trbs) { in cdns2_free_tr_segment() 120 static int cdns2_alloc_tr_segment(struct cdns2_endpoint *pep) in cdns2_alloc_tr_segment() 75 cdns2_get_dma_pos(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_get_dma_pos() argument 99 cdns2_trb_virt_to_dma(struct cdns2_endpoint * pep,struct cdns2_trb * trb) cdns2_trb_virt_to_dma() argument 107 cdns2_free_tr_segment(struct cdns2_endpoint * pep) cdns2_free_tr_segment() argument 119 cdns2_alloc_tr_segment(struct cdns2_endpoint * pep) cdns2_alloc_tr_segment() argument 153 cdns2_ep_stall_flush(struct cdns2_endpoint * pep) cdns2_ep_stall_flush() argument 227 cdns2_next_trb(struct cdns2_endpoint * pep,struct cdns2_trb * trb) cdns2_next_trb() argument 236 cdns2_gadget_giveback(struct cdns2_endpoint * pep,struct cdns2_request * preq,int status) cdns2_gadget_giveback() argument 265 cdns2_wa1_restore_cycle_bit(struct cdns2_endpoint * pep) cdns2_wa1_restore_cycle_bit() argument 280 cdns2_wa1_update_guard(struct cdns2_endpoint * pep,struct cdns2_trb * trb) cdns2_wa1_update_guard() argument 303 cdns2_wa1_tray_restore_cycle_bit(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_wa1_tray_restore_cycle_bit() argument 316 cdns2_prepare_ring(struct cdns2_device * pdev,struct cdns2_endpoint * pep,int num_trbs) cdns2_prepare_ring() argument 363 cdns2_dbg_request_trbs(struct cdns2_endpoint * pep,struct cdns2_request * preq) cdns2_dbg_request_trbs() argument 383 cdns2_count_trbs(struct cdns2_endpoint * pep,u64 addr,u64 len) cdns2_count_trbs() argument 412 cdns2_count_sg_trbs(struct cdns2_endpoint * pep,struct usb_request * req) cdns2_count_sg_trbs() argument 498 cdns2_ep_tx_isoc(struct cdns2_endpoint * pep,struct cdns2_request * preq,int num_trbs) cdns2_ep_tx_isoc() argument 614 cdns2_ep_tx_bulk(struct cdns2_endpoint * pep,struct cdns2_request * preq,int trbs_per_td) cdns2_ep_tx_bulk() argument 689 cdns2_set_drdy(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_set_drdy() argument 712 cdns2_prepare_first_isoc_transfer(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_prepare_first_isoc_transfer() argument 761 cdns2_ep_run_transfer(struct cdns2_endpoint * pep,struct cdns2_request * preq) cdns2_ep_run_transfer() argument 822 cdns2_start_all_request(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_start_all_request() argument 878 cdns2_trb_handled(struct cdns2_endpoint * pep,struct cdns2_request * preq) cdns2_trb_handled() argument 950 cdns2_skip_isoc_td(struct cdns2_device * pdev,struct cdns2_endpoint * pep,struct cdns2_request * preq) cdns2_skip_isoc_td() argument 972 cdns2_transfer_completed(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_transfer_completed() argument 1051 cdns2_rearm_transfer(struct cdns2_endpoint * pep,u8 rearm) cdns2_rearm_transfer() argument 1072 cdns2_handle_epx_interrupt(struct cdns2_endpoint * pep) cdns2_handle_epx_interrupt() argument 1342 struct cdns2_endpoint *pep; cdns2_eps_onchip_buffer_init() local 1411 cdns2_ep_config(struct cdns2_endpoint * pep,bool enable) cdns2_ep_config() argument 1504 struct cdns2_endpoint *pep = ep_to_cdns2_ep(ep); cdns2_gadget_ep_alloc_request() local 1531 struct cdns2_endpoint *pep; cdns2_gadget_ep_enable() local 1613 struct cdns2_endpoint *pep; cdns2_gadget_ep_disable() local 1668 cdns2_ep_enqueue(struct cdns2_endpoint * pep,struct cdns2_request * preq,gfp_t gfp_flags) cdns2_ep_enqueue() argument 1700 struct cdns2_endpoint *pep; cdns2_gadget_ep_queue() local 1742 struct cdns2_endpoint *pep; cdns2_gadget_ep_dequeue() local 1823 cdns2_halt_endpoint(struct cdns2_device * pdev,struct cdns2_endpoint * pep,int value) cdns2_halt_endpoint() argument 1887 struct cdns2_endpoint *pep = ep_to_cdns2_ep(ep); cdns2_gadget_ep_set_halt() local 1914 struct cdns2_endpoint *pep = ep_to_cdns2_ep(ep); cdns2_gadget_ep_set_wedge() local 1926 struct cdns2_endpoint *pep; cdns2_find_available_ep() local 1966 struct cdns2_endpoint *pep; cdns2_gadget_match_ep() local 2130 struct cdns2_endpoint *pep; cdns2_gadget_udc_stop() local 2178 struct cdns2_endpoint *pep; cdns2_init_eps() local [all...] |
H A D | cdns2-ep0.c | 45 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, ®s->ep_traddr); in cdns2_ep0_enqueue() 74 trace_cdns2_doorbell_ep0(pep, readl(®s->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 …]
|
H A D | cdns2-debug.h | 98 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()
|
H A D | cdns2-gadget.h | 600 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/drivers/usb/cdns3/ |
H A D | cdnsp-gadget.c | 345 int cdnsp_ep_enqueue(struct cdnsp_ep *pep, struct cdnsp_request *preq) in cdnsp_ep_enqueue() 347 struct cdnsp_device *pdev = pep->pdev; in cdnsp_ep_enqueue() 351 if (preq->epnum == 0 && !list_empty(&pep->pending_list)) { in cdnsp_ep_enqueue() 359 preq->direction = pep->direction; in cdnsp_ep_enqueue() 360 preq->epnum = pep->number; in cdnsp_ep_enqueue() 363 ret = usb_gadget_map_request_by_dev(pdev->dev, request, pep->direction); in cdnsp_ep_enqueue() 369 list_add_tail(&preq->list, &pep->pending_list); in cdnsp_ep_enqueue() 373 switch (usb_endpoint_type(pep->endpoint.desc)) { in cdnsp_ep_enqueue() 392 pep->direction); in cdnsp_ep_enqueue() 424 int cdnsp_ep_dequeue(struct cdnsp_ep *pep, struc in cdnsp_ep_dequeue() 344 cdnsp_ep_enqueue(struct cdnsp_ep * pep,struct cdnsp_request * preq) cdnsp_ep_enqueue() argument 423 cdnsp_ep_dequeue(struct cdnsp_ep * pep,struct cdnsp_request * preq) cdnsp_ep_dequeue() argument 488 cdnsp_invalidate_ep_events(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_invalidate_ep_events() argument 596 cdnsp_halt_endpoint(struct cdnsp_device * pdev,struct cdnsp_ep * pep,int value) cdnsp_halt_endpoint() argument 636 cdnsp_update_eps_configuration(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_update_eps_configuration() argument 765 cdnsp_alloc_streams(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_alloc_streams() argument 931 struct cdnsp_ep *pep; cdnsp_gadget_ep_enable() local 1005 struct cdnsp_ep *pep; cdnsp_gadget_ep_disable() local 1064 struct cdnsp_ep *pep = to_cdnsp_ep(ep); cdnsp_gadget_ep_alloc_request() local 1094 struct cdnsp_ep *pep; cdnsp_gadget_ep_queue() local 1121 struct cdnsp_ep *pep = to_cdnsp_ep(ep); cdnsp_gadget_ep_dequeue() local 1149 struct cdnsp_ep *pep = to_cdnsp_ep(ep); cdnsp_gadget_ep_set_halt() local 1175 struct cdnsp_ep *pep = to_cdnsp_ep(ep); cdnsp_gadget_ep_set_wedge() local 1210 cdnsp_gadget_giveback(struct cdnsp_ep * pep,struct cdnsp_request * preq,int status) cdnsp_gadget_giveback() argument 1570 cdnsp_get_ep_buffering(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_get_ep_buffering() argument 1599 struct cdnsp_ep *pep; cdnsp_gadget_init_endpoints() local 1689 struct cdnsp_ep *pep; cdnsp_gadget_free_endpoints() local [all...] |
H A D | cdnsp-ring.c | 277 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 …]
|
H A D | cdnsp-mem.c | 22 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 …]
|
H A D | cdnsp-ep0.c | 21 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 …]
|
H A D | cdnsp-gadget.h | 1309 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/drivers/scsi/ |
H A D | am53c974.c | 120 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/net/phonet/ |
H A D | Makefile | 12 pn_pep-y := pep.o pep-gprs.o
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | x1e80100.dtsi | 544 pld_pep_mem: pld-pep@81f30000 {
|