Home
last modified time | relevance | path

Searched +full:rx +full:- +full:ctrl (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/OK3568_Linux_fs/kernel/drivers/slimbus/
H A Dqcom-ctrl.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/media/radio/wl128x/
H A Dfmdrv_v4l2.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-pic32.c1 // 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 …]
H A Dspi-imx.c1 // 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 …]
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dftmac110.c5 * Dante Su <dantesu@faraday-tech.com>
7 * SPDX-License-Identifier: GPL-2.0+
16 #include <asm/dma-mapping.h>
35 * Its DMA engine has a weird restriction that its Rx DMA engine
36 * accepts only 16-bits aligned address, 32-bits aligned is not
43 * 4 bytes aligned: O.K (-> u-boot ZeroCopy is possible)
44 * (2) Rx DMA Buffer Address:
71 struct ftmac110_chip *chip = dev->priv; in mdio_read()
72 struct ftmac110_regs *regs = chip->regs; in mdio_read()
80 writel(tmp, &regs->phycr); in mdio_read()
[all …]
H A Dmacb.c2 * Copyright (C) 2005-2006 Atmel Corporation
4 * SPDX-License-Identifier: GPL-2.0+
11 * The u-boot networking stack is a little weird. It seems like the
16 * The MACB receives packets into 128-byte receive buffers, so the
21 * Therefore, define CONFIG_SYS_RX_ETH_BUFFER to 1 in the board-specific
22 * configuration header. This way, the core allocates one RX buffer
27 * 32-byte packet "alignment" (which really should be called
41 #include <asm/dma-mapping.h>
57 u32 ctrl; member
163 | MACB_BF(PHYA, macb->phy_addr) in macb_mdio_write()
[all …]
H A Dbcm-sf2-eth-gmac.c2 * Copyright 2014-2017 Broadcom.
4 * SPDX-License-Identifier: GPL-2.0+
20 #include "bcm-sf2-eth.h"
21 #include "bcm-sf2-eth-gmac.h"
27 countdown -= 10; \
112 descp = (dma64dd_t *)(dma->tx_desc_aligned) + i; in dma_tx_dump()
114 descp->ctrl1, descp->ctrl2, in dma_tx_dump()
115 descp->addrhigh, descp->addrlow); in dma_tx_dump()
121 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump()
133 printf("RX DMA Register:\n"); in dma_rx_dump()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000e/
H A Dmac.c1 // 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 …]
/OK3568_Linux_fs/kernel/sound/soc/fsl/
H A Dfsl_spdif.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac5.c1 // 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 …]
H A Ddwmac-rk-tool.c1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
11 #include <linux/dma-mapping.h>
26 #include "dwmac-rk-tool.h"
55 int rx; member
73 /* rx buffer size */
86 int rx; member
128 u32 ctrl; in dwmac_rk_enable_mac_loopback() local
131 ctrl = readl(priv->ioaddr + GMAC_CONTROL); in dwmac_rk_enable_mac_loopback()
132 ctrl &= ~priv->hw->link.speed_mask; in dwmac_rk_enable_mac_loopback()
133 ctrl |= GMAC_CONTROL_LM; in dwmac_rk_enable_mac_loopback()
[all …]
H A Ddwxgmac2_core.c1 // 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 …]
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dpic32_spi.c7 * SPDX-License-Identifier: GPL-2.0+
20 #include <dt-bindings/clock/microchip,clock.h>
27 struct pic32_reg_atomic ctrl; member
38 #define PIC32_SPI_CTRL_SMP BIT(9) /* Rx at middle or end of tx */
68 u32 speed_hz; /* spi-clk rate */
74 const void *rx; member
85 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.set); in pic32_spi_enable()
90 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.clr); in pic32_spi_disable()
95 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_rx_fifo_level()
102 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_tx_fifo_level()
[all …]
H A Dfsl_dspi.c2 * (C) Copyright 2000-2003
5 * Copyright (C) 2004-2009, 2015 Freescale Semiconductor, Inc.
6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
10 * SPDX-License-Identifier: GPL-2.0+
40 /* tx/rx data wait timeout value, unit: us */
43 /* CTAR register pre-configure value */
52 /* CTAR register pre-configure mask */
62 * struct fsl_dspi_platdata - platform data for Freescale DSPI
77 * struct fsl_dspi_priv - private data for Freescale DSPI
137 mcr_val = dspi_read32(priv->flags, &priv->regs->mcr); in dspi_halt()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/altera/
H A Daltera_sgdma.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/atm/
H A Dhorizon.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/ibm/emac/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Driver for PowerPC 4xx on-chip ethernet controller.
48 #include <asm/dcr-regs.h>
55 * API-correct usage requires additional support state information to be
56 * maintained for every RX and TX buffer descriptor (BD). Unfortunately, due to
65 * controversial, but I really tried to make code API-correct and efficient
66 * at the same time and didn't come up with code I liked :(. --ebs
87 * to avoid re-using the same PHY ID in cases where the arch didn't
92 * probably require in that case to have explicit PHY IDs in the device-tree
103 * if we didn't have completely random interface names at boot too :-) It's
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2006 Intel Corporation. */
39 static void e1000_raise_mdi_clk(struct e1000_hw *hw, u32 *ctrl);
40 static void e1000_lower_mdi_clk(struct e1000_hw *hw, u32 *ctrl);
88 * e1000_set_phy_type - Set the phy type member in the hw struct.
93 if (hw->mac_type == e1000_undefined) in e1000_set_phy_type()
94 return -E1000_ERR_PHY_TYPE; in e1000_set_phy_type()
96 switch (hw->phy_id) { in e1000_set_phy_type()
102 hw->phy_type = e1000_phy_m88; in e1000_set_phy_type()
105 if (hw->mac_type == e1000_82541 || in e1000_set_phy_type()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/
H A Digc_base.c1 // 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 …]
H A Digc_mac.c1 // SPDX-License-Identifier: GPL-2.0
11 * igc_disable_pcie_master - Disables PCI-express master access
14 * Returns 0 (0) if successful, else returns -10
15 * (-IGC_ERR_MASTER_REQUESTS_PENDING) if master disable bit has not caused
18 * Disables PCI-Express master access and verifies there are no pending
25 u32 ctrl; in igc_disable_pcie_master() local
27 ctrl = rd32(IGC_CTRL); in igc_disable_pcie_master()
28 ctrl |= IGC_CTRL_GIO_MASTER_DISABLE; in igc_disable_pcie_master()
29 wr32(IGC_CTRL, ctrl); in igc_disable_pcie_master()
36 timeout--; in igc_disable_pcie_master()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/
H A Dskge.h1 /* SPDX-License-Identifier: GPL-2.0 */
133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */
134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */
135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */
221 IS_NO_STAT_M1 = 1<<9, /* No Rx Status from MAC 1 */
222 IS_NO_STAT_M2 = 1<<8, /* No Rx Status from MAC 2 */
262 CHIP_ID_YUKON_LITE = 0xb1, /* Chip ID for YUKON-Lite (Rev. A1-A3) */
263 CHIP_ID_YUKON_LP = 0xb2, /* Chip ID for YUKON-LP */
264 CHIP_ID_YUKON_XL = 0xb3, /* Chip ID for YUKON-2 XL */
265 CHIP_ID_YUKON_EC = 0xb6, /* Chip ID for YUKON-2 EC */
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/cobalt/
H A Dcobalt-irq.c1 // 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 …]
H A Dcobalt-v4l2.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Derived from ivtv-ioctl.c and cx18-fileops.c
7 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates.
11 #include <linux/dma-mapping.h>
15 #include <linux/v4l2-dv-timings.h>
17 #include <media/v4l2-ctrls.h>
18 #include <media/v4l2-event.h>
19 #include <media/v4l2-dv-timings.h>
23 #include "cobalt-alsa.h"
24 #include "cobalt-cpld.h"
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */
20 #include <linux/io-64-nonatomic-hi-lo.h>
31 if (__nn->dp.netdev) \
32 netdev_printk(lvl, __nn->dp.netdev, fmt, ## args); \
34 dev_printk(lvl, __nn->dp.dev, "ctrl: " fmt, ## args); \
47 if (__dp->netdev) \
48 netdev_warn(__dp->netdev, fmt, ## args); \
50 dev_warn(__dp->dev, fmt, ## args); \
82 #define NFP_NET_MAX_RX_RINGS 64 /* Max. # of Rx rings per device */
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_rule.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
26 return -ENOMEM; in dr_rule_append_to_miss_list()
28 mlx5dr_ste_set_miss_addr(last_ste->hw_ste, in dr_rule_append_to_miss_list()
30 list_add_tail(&new_last_ste->miss_list_node, miss_list); in dr_rule_append_to_miss_list()
33 0, last_ste->hw_ste, in dr_rule_append_to_miss_list()
44 struct mlx5dr_domain *dmn = matcher->tbl->dmn; in dr_rule_create_collision_htbl()
49 new_htbl = mlx5dr_ste_htbl_alloc(dmn->ste_icm_pool, in dr_rule_create_collision_htbl()
59 ste = new_htbl->ste_arr; in dr_rule_create_collision_htbl()
60 mlx5dr_ste_set_miss_addr(hw_ste, nic_matcher->e_anchor->chunk->icm_addr); in dr_rule_create_collision_htbl()
76 mlx5dr_dbg(matcher->tbl->dmn, "Failed creating collision entry\n"); in dr_rule_create_collision_entry()
[all …]

12345678910>>...42