| /kernel/linux/linux-5.10/drivers/slimbus/ |
| D | qcom-ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2011-2017, The Linux Foundation 88 /* Resource group info for manager, and non-ported generic device-components */ 103 struct slim_controller ctrl; member 109 struct slim_ctrl_buf rx; member 120 static void qcom_slim_queue_tx(struct qcom_slim_ctrl *ctrl, void *buf, in qcom_slim_queue_tx() argument 125 __iowrite32_copy(ctrl->base + tx_reg, buf, count); in qcom_slim_queue_tx() 131 static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) in slim_alloc_rxbuf() argument 136 spin_lock_irqsave(&ctrl->rx.lock, flags); in slim_alloc_rxbuf() 137 if ((ctrl->rx.tail + 1) % ctrl->rx.n == ctrl->rx.head) { in slim_alloc_rxbuf() [all …]
|
| /kernel/linux/linux-4.19/drivers/slimbus/ |
| D | qcom-ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2011-2017, The Linux Foundation 88 /* Resource group info for manager, and non-ported generic device-components */ 103 struct slim_controller ctrl; member 109 struct slim_ctrl_buf rx; member 120 static void qcom_slim_queue_tx(struct qcom_slim_ctrl *ctrl, void *buf, in qcom_slim_queue_tx() argument 125 __iowrite32_copy(ctrl->base + tx_reg, buf, count); in qcom_slim_queue_tx() 131 static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) in slim_alloc_rxbuf() argument 136 spin_lock_irqsave(&ctrl->rx.lock, flags); in slim_alloc_rxbuf() 137 if ((ctrl->rx.tail + 1) % ctrl->rx.n == ctrl->rx.head) { in slim_alloc_rxbuf() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/micrel/ |
| D | ks8695net.c | 19 #include <linux/dma-mapping.h> 38 #include <mach/regs-switch.h> 39 #include <mach/regs-misc.h> 41 #include <mach/regs-irq.h> 56 * struct rx_ring_desc - Receive descriptor ring element 70 * struct tx_ring_desc - Transmit descriptor ring element 84 * struct ks8695_skbuff - sk_buff wrapper for rx/tx rings. 102 /*napi_weight have better more than rx DMA buffers*/ 112 * enum ks8695_dtype - Device type 124 * struct ks8695_priv - Private data for the KS8695 Ethernet [all …]
|
| /kernel/linux/linux-5.10/drivers/media/radio/wl128x/ |
| D | fmdrv_v4l2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 /* -- V4L2 RADIO (/dev/radioX) device file operation interfaces --- */ 31 /* Read RX RDS data */ 43 return -EIO; in fm_v4l2_fops_read() 46 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_read() 47 return -ERESTARTSYS; in fm_v4l2_fops_read() 67 mutex_unlock(&fmdev->mutex); in fm_v4l2_fops_read() 80 rds.text[sizeof(rds.text) - 1] = '\0'; in fm_v4l2_fops_write() 84 return -EFAULT; in fm_v4l2_fops_write() 87 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_write() [all …]
|
| /kernel/linux/linux-4.19/drivers/media/radio/wl128x/ |
| D | fmdrv_v4l2.c | 38 /* -- V4L2 RADIO (/dev/radioX) device file operation interfaces --- */ 40 /* Read RX RDS data */ 52 return -EIO; in fm_v4l2_fops_read() 55 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_read() 56 return -ERESTARTSYS; in fm_v4l2_fops_read() 76 mutex_unlock(&fmdev->mutex); in fm_v4l2_fops_read() 89 rds.text[sizeof(rds.text) - 1] = '\0'; in fm_v4l2_fops_write() 93 return -EFAULT; in fm_v4l2_fops_write() 96 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_write() 97 return -ERESTARTSYS; in fm_v4l2_fops_write() [all …]
|
| /kernel/linux/linux-4.19/drivers/spi/ |
| D | spi-pic32.c | 21 #include <linux/dma-mapping.h> 35 u32 ctrl; member 54 #define CTRL_RX_INT_SHIFT 0 /* Rx interrupt generation */ 69 #define CTRL_SMP BIT(9) /* Rx at middle or end of tx */ 83 #define STAT_RF_EMPTY BIT(5) /* RX Fifo empty */ 96 #define CTRL2_TX_UR_EN BIT(10) /* Enable int on Tx under-run */ 97 #define CTRL2_RX_OV_EN BIT(11) /* Enable int on Rx over-run */ 113 u32 speed_hz; /* spi-clk rate */ 124 const void *rx; member 133 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_set); in pic32_spi_enable() [all …]
|
| D | spi-meson-spicc.c | 7 * SPDX-License-Identifier: GPL-2.0+ 29 * - all transfers are cutted in 16 words burst because the FIFO hangs on 30 * TX underflow, and there is no TX "Half-Empty" interrupt, so we go by 32 * - CS management is dumb, and goes UP between every burst, so is really a 69 #define SPICC_TH_EN BIT(1) /* TX FIFO Half-Full Interrupt */ 71 #define SPICC_RR_EN BIT(3) /* RX FIFO Ready Interrupt */ 72 #define SPICC_RH_EN BIT(4) /* RX FIFO Half-Full Interrupt */ 73 #define SPICC_RF_EN BIT(5) /* RX FIFO Full Interrupt */ 74 #define SPICC_RO_EN BIT(6) /* RX FIFO Overflow Interrupt */ 89 #define SPICC_TH BIT(1) /* TX FIFO Half-Full Interrupt */ [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-pic32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/dma-mapping.h> 27 u32 ctrl; member 46 #define CTRL_RX_INT_SHIFT 0 /* Rx interrupt generation */ 61 #define CTRL_SMP BIT(9) /* Rx at middle or end of tx */ 75 #define STAT_RF_EMPTY BIT(5) /* RX Fifo empty */ 88 #define CTRL2_TX_UR_EN BIT(10) /* Enable int on Tx under-run */ 89 #define CTRL2_RX_OV_EN BIT(11) /* Enable int on Rx over-run */ 105 u32 speed_hz; /* spi-clk rate */ 116 const void *rx; member [all …]
|
| D | spi-imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. 9 #include <linux/dma-mapping.h> 27 #include <linux/platform_data/dma-imx.h> 101 void (*rx)(struct spi_imx_data *); member 123 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 128 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 133 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi() 138 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi() 144 unsigned int val = readl(spi_imx->base + MXC_CSPIRXDATA); \ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| D | dwmac5.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 52 { true, "RTES", "RX FSM Timeout Error" }, 95 { true, "RXCES", "MTL RX Memory Error" }, 96 { true, "RXAMS", "MTL RX Memory Address Mismatch Error" }, 97 { true, "RXUES", "MTL RX Memory Error" }, 103 { true, "RPCES", "MTL RX Parser Memory Error" }, 104 { true, "RPAMS", "MTL RX Parser Memory Address Mismatch Error" }, 105 { true, "RPUES", "MTL RX Parser Memory Error" }, 191 return -EINVAL; in dwmac5_safety_feat_config() 196 value |= MRXPEE; /* MTL RX Parser ECC */ in dwmac5_safety_feat_config() [all …]
|
| D | dwxgmac2_core.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 18 void __iomem *ioaddr = hw->pcsr; in dwxgmac2_core_init() 19 u32 tx, rx; in dwxgmac2_core_init() local 22 rx = readl(ioaddr + XGMAC_RX_CONFIG); in dwxgmac2_core_init() 25 rx |= XGMAC_CORE_INIT_RX; in dwxgmac2_core_init() 27 if (hw->ps) { in dwxgmac2_core_init() 29 tx &= ~hw->link.speed_mask; in dwxgmac2_core_init() 31 switch (hw->ps) { in dwxgmac2_core_init() 33 tx |= hw->link.xgmii.speed10000; in dwxgmac2_core_init() 36 tx |= hw->link.speed2500; in dwxgmac2_core_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/e1000e/ |
| D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
| D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/fsl/ |
| D | fsl_spdif.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #include "imx-pcm.h" 84 * struct fsl_spdif_priv - Freescale SPDIF private data 97 * @rxclk: rx clock sources for capture 99 * @sysclk: system clock for rx clock rate measurement 146 return (clk == STC_TXCLK_SPDIF_ROOT) && !spdif->soc->shared_root_clock; in fsl_spdif_can_set_clk_rate() 152 struct regmap *regmap = spdif_priv->regmap; in spdif_irq_dpll_lock() 153 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_dpll_lock() 159 dev_dbg(&pdev->dev, "isr: Rx dpll %s \n", in spdif_irq_dpll_lock() 162 spdif_priv->dpll_locked = locked ? true : false; in spdif_irq_dpll_lock() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/fsl/ |
| D | fsl_spdif.c | 1 // SPDX-License-Identifier: GPL-2.0 25 #include "imx-pcm.h" 84 * @rxclk: rx clock sources for capture 86 * @sysclk: system clock for rx clock rate measurement 116 struct regmap *regmap = spdif_priv->regmap; in spdif_irq_dpll_lock() 117 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_dpll_lock() 123 dev_dbg(&pdev->dev, "isr: Rx dpll %s \n", in spdif_irq_dpll_lock() 126 spdif_priv->dpll_locked = locked ? true : false; in spdif_irq_dpll_lock() 132 struct regmap *regmap = spdif_priv->regmap; in spdif_irq_sym_error() 133 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_sym_error() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/altera/ |
| D | altera_sgdma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 priv->txctrlreg = SGDMA_CTRLREG_ILASTD | in sgdma_initialize() 59 priv->rxctrlreg = SGDMA_CTRLREG_IDESCRIP | in sgdma_initialize() 63 INIT_LIST_HEAD(&priv->txlisthd); in sgdma_initialize() 64 INIT_LIST_HEAD(&priv->rxlisthd); in sgdma_initialize() 66 priv->rxdescphys = (dma_addr_t) 0; in sgdma_initialize() 67 priv->txdescphys = (dma_addr_t) 0; in sgdma_initialize() 69 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize() 70 (void __force *)priv->rx_dma_desc, in sgdma_initialize() 71 priv->rxdescmem, DMA_BIDIRECTIONAL); in sgdma_initialize() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/altera/ |
| D | altera_sgdma.c | 67 priv->txctrlreg = SGDMA_CTRLREG_ILASTD | in sgdma_initialize() 70 priv->rxctrlreg = SGDMA_CTRLREG_IDESCRIP | in sgdma_initialize() 74 INIT_LIST_HEAD(&priv->txlisthd); in sgdma_initialize() 75 INIT_LIST_HEAD(&priv->rxlisthd); in sgdma_initialize() 77 priv->rxdescphys = (dma_addr_t) 0; in sgdma_initialize() 78 priv->txdescphys = (dma_addr_t) 0; in sgdma_initialize() 80 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize() 81 (void __force *)priv->rx_dma_desc, in sgdma_initialize() 82 priv->rxdescmem, DMA_BIDIRECTIONAL); in sgdma_initialize() 84 if (dma_mapping_error(priv->device, priv->rxdescphys)) { in sgdma_initialize() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/cobalt/ |
| D | cobalt-irq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates. 11 #include "cobalt-driver.h" 12 #include "cobalt-irq.h" 13 #include "cobalt-omnitek.h" 17 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stream_queue_handler() 18 int rx = s->video_channel; in cobalt_dma_stream_queue_handler() local 20 COBALT_CVI_FREEWHEEL(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 22 COBALT_CVI_VMR(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 24 COBALT_CVI(s->cobalt, rx); in cobalt_dma_stream_queue_handler() [all …]
|
| /kernel/linux/linux-4.19/drivers/media/pci/cobalt/ |
| D | cobalt-irq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates. 11 #include "cobalt-driver.h" 12 #include "cobalt-irq.h" 13 #include "cobalt-omnitek.h" 17 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stream_queue_handler() 18 int rx = s->video_channel; in cobalt_dma_stream_queue_handler() local 20 COBALT_CVI_FREEWHEEL(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 22 COBALT_CVI_VMR(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 24 COBALT_CVI(s->cobalt, rx); in cobalt_dma_stream_queue_handler() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
| D | igc_base.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * igc_reset_hw_base - Reset hardware 22 u32 ctrl; in igc_reset_hw_base() local 24 /* Prevent the PCI-E bus from sticking if there is no TLP connection in igc_reset_hw_base() 29 hw_dbg("PCI-E Master disable polling has failed\n"); in igc_reset_hw_base() 40 ctrl = rd32(IGC_CTRL); in igc_reset_hw_base() 43 wr32(IGC_CTRL, ctrl | IGC_CTRL_DEV_RST); in igc_reset_hw_base() 62 * igc_init_nvm_params_base - Init NVM func ptrs. 67 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_params_base() 74 /* Added to a constant, "size" becomes the left-shift value in igc_init_nvm_params_base() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/ |
| D | st,stm32-spdifrx.txt | 4 IEC-60958 and IEC-61937. 7 - compatible: should be "st,stm32h7-spdifrx" 8 - reg: cpu DAI IP base address and size 9 - clocks: must contain an entry for kclk (used as S/PDIF signal reference) 10 - clock-names: must contain "kclk" 11 - interrupts: cpu DAI interrupt line 12 - dmas: DMA specifiers for audio data DMA and iec control flow DMA 13 See STM32 DMA bindings, Documentation/devicetree/bindings/dma/stm32-dma.txt 14 - dma-names: two dmas have to be defined, "rx" and "rx-ctrl" 17 - resets: Reference to a reset controller asserting the SPDIFRX [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/ |
| D | apbuart.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 u32 ctrl; member 29 #define UART_STATUS_OE 0x00000010 /* RX Overrun Error */ 30 #define UART_STATUS_PE 0x00000020 /* RX Parity Error */ 31 #define UART_STATUS_FE 0x00000040 /* RX Framing Error */ 35 * The following defines the bits in the APBUART Ctrl Registers. 46 #define APBBASE(port) ((struct grlib_apbuart_regs_map *)((port)->membase)) 48 #define APBBASE_DATA_P(port) (&(APBBASE(port)->data)) 49 #define APBBASE_STATUS_P(port) (&(APBBASE(port)->status)) 50 #define APBBASE_CTRL_P(port) (&(APBBASE(port)->ctrl)) [all …]
|
| /kernel/linux/linux-4.19/drivers/tty/serial/ |
| D | apbuart.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 u32 ctrl; member 29 #define UART_STATUS_OE 0x00000010 /* RX Overrun Error */ 30 #define UART_STATUS_PE 0x00000020 /* RX Parity Error */ 31 #define UART_STATUS_FE 0x00000040 /* RX Framing Error */ 35 * The following defines the bits in the APBUART Ctrl Registers. 46 #define APBBASE(port) ((struct grlib_apbuart_regs_map *)((port)->membase)) 48 #define APBBASE_DATA_P(port) (&(APBBASE(port)->data)) 49 #define APBBASE_STATUS_P(port) (&(APBBASE(port)->status)) 50 #define APBBASE_CTRL_P(port) (&(APBBASE(port)->ctrl)) [all …]
|
| /kernel/linux/linux-4.19/drivers/atm/ |
| D | horizon.c | 3 Copyright (C) 1995-1999 Madge Networks Ltd. 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 110 comes with the revision 0 (140-025-01) ASIC. 114 Madge's SAMBA framer or a SUNI-lite device (early versions). It 115 comes with the revision 1 (140-027-01) ASIC. 119 All Horizon-based cards present with the same PCI Vendor and Device 121 to enable bus-mastering (with appropriate latency). 130 up for loop-timing. 137 line-based timing; the internal RAM is zeroed and the allocation of 138 buffers for RX and TX is made; the Burnt In Address is read and [all …]
|
| /kernel/linux/linux-5.10/drivers/atm/ |
| D | horizon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 1995-1999 Madge Networks Ltd. 95 comes with the revision 0 (140-025-01) ASIC. 99 Madge's SAMBA framer or a SUNI-lite device (early versions). It 100 comes with the revision 1 (140-027-01) ASIC. 104 All Horizon-based cards present with the same PCI Vendor and Device 106 to enable bus-mastering (with appropriate latency). 115 up for loop-timing. 122 line-based timing; the internal RAM is zeroed and the allocation of 123 buffers for RX and TX is made; the Burnt In Address is read and [all …]
|