/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,admfm2000.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Kim Seer Paller <kimseer.paller@analog.com> 16 It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down 22 - adi,admfm2000 24 '#address-cells': 27 '#size-cells': 31 "^channel@[0-1]$": 44 adi,mixer-mode: [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | hisilicon-hns-dsaf.txt | 1 Hisilicon DSA Fabric device controller 4 - compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2". 5 "hisilicon,hns-dsaf-v1" is for hip05. 6 "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612. 7 - mode: dsa fabric mode string. only support one of dsaf modes like these: 8 "2port-64vf", 9 "6port-16rss", 10 "6port-16vf", 11 "single-port". 12 - interrupts: should contain the DSA Fabric and rcb interrupt. [all …]
|
/linux/net/dsa/ |
H A D | tag_ocelot_8021q.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright 2020-2021 NXP 4 * An implementation of the software-defined tag_8021q.c tagger format, which 7 * - pushing the RX VLAN as a second, outer tag, on egress towards the CPU port 8 * - redirecting towards the correct front port based on TX VLAN and popping 11 #include <linux/dsa/8021q.h> 12 #include <linux/dsa/ocelot.h> 17 #define OCELOT_8021Q_NAME "ocelot-8021q" 27 struct ocelot_8021q_tagger_private *priv = dp->ds->tagger_data; in ocelot_defer_xmit() 28 struct ocelot_8021q_tagger_data *data = &priv->data; in ocelot_defer_xmit() [all …]
|
H A D | tag_ocelot.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/dsa/ocelot.h> 15 struct dsa_switch *ds = dp->ds; in ocelot_xmit_common() 26 netdev_get_prio_tc_map(netdev, skb->priority) : skb->priority; in ocelot_xmit_common() 34 ocelot_ifh_set_src(injection, ds->num_ports); in ocelot_xmit_common() 53 ocelot_ifh_set_dest(injection, BIT_ULL(dp->index)); in ocelot_xmit() 65 seville_ifh_set_dest(injection, BIT_ULL(dp->index)); in seville_xmit() 75 u8 *start = skb->data; in ocelot_rcv() 81 /* Revert skb->data by the amount consumed by the DSA conduit, in ocelot_rcv() 86 * into the DSA conduit's RX filter. Discard it now by moving it into in ocelot_rcv() [all …]
|
H A D | tag_gswip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Intel / Lantiq GSWIP V2.0 PMAC tag support 5 * Copyright (C) 2017 - 2018 Hauke Mehrtens <hauke@hauke-m.de> 11 #include <net/dsa.h> 69 gswip_tag = skb->data; in gswip_tag_xmit() 73 gswip_tag[3] = BIT(dp->index + GSWIP_TX_PORT_MAP_SHIFT) & GSWIP_TX_PORT_MAP_MASK; in gswip_tag_xmit() 88 gswip_tag = skb->data - ETH_HLEN; in gswip_tag_rcv() 92 skb->dev = dsa_conduit_find_user(dev, 0, port); in gswip_tag_rcv() 93 if (!skb->dev) in gswip_tag_rcv() 110 MODULE_DESCRIPTION("DSA tag driver for Lantiq / Intel GSWIP switches");
|
H A D | tag_rzn1_a5psw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <net/dsa.h> 20 * |<--------------->| 58 /* make room between MACs and Ether-Type to insert tag */ in a5psw_tag_xmit() 63 data2_val = FIELD_PREP(A5PSW_CTRL_DATA_PORT, BIT(dp->index)); in a5psw_tag_xmit() 64 ptag->ctrl_tag = htons(ETH_P_DSA_A5PSW); in a5psw_tag_xmit() 65 ptag->ctrl_data = htons(A5PSW_CTRL_DATA_FORCE_FORWARD); in a5psw_tag_xmit() 66 ptag->ctrl_data2_lo = htons(data2_val); in a5psw_tag_xmit() 67 ptag->ctrl_data2_hi = 0; in a5psw_tag_xmit() 79 dev_warn_ratelimited(&dev->dev, in a5psw_tag_rcv() [all …]
|
H A D | tag_sja1105.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/dsa/sja1105.h> 6 #include <linux/dsa/8021q.h> 23 /* Trap-to-host format (no trailer present) */ 33 /* Meta frame format (for 2-step TX timestamps) */ 74 return ds->tagger_data; in sja1105_tagger_private() 77 /* Similar to is_link_local_ether_addr(hdr->h_dest) but also covers PTP */ 81 u64 dmac = ether_addr_to_u64(hdr->h_dest); in sja1105_is_link_local() 83 if (ntohs(hdr->h_proto) == ETH_P_SJA1105_META) in sja1105_is_link_local() 108 * Structure of the meta-data follow-up frame. in sja1105_meta_unpack() [all …]
|
H A D | tag_ar9331.c | 1 // SPDX-License-Identifier: GPL-2.0 22 /* AR9331_HDR_RESERVED - not used or may be version field. 39 hdr |= AR9331_HDR_FROM_CPU | dp->index; in ar9331_tag_xmit() 77 skb->dev = dsa_conduit_find_user(ndev, 0, port); in ar9331_tag_rcv() 78 if (!skb->dev) in ar9331_tag_rcv() 92 MODULE_DESCRIPTION("DSA tag driver for Atheros AR9331 SoC with built-in switch"); 93 MODULE_LICENSE("GPL v2");
|
/linux/drivers/net/dsa/xrs700x/ |
H A D | xrs700x_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 84 priv = xrs700x_switch_alloc(&i2c->dev, i2c); in xrs700x_i2c_probe() 86 return -ENOMEM; in xrs700x_i2c_probe() 88 priv->regmap = devm_regmap_init(&i2c->dev, NULL, &i2c->dev, in xrs700x_i2c_probe() 90 if (IS_ERR(priv->regmap)) { in xrs700x_i2c_probe() 91 ret = PTR_ERR(priv->regmap); in xrs700x_i2c_probe() 92 dev_err(&i2c->dev, "Failed to initialize regmap: %d\n", ret); in xrs700x_i2c_probe() 100 /* Main DSA driver may not be started yet. */ in xrs700x_i2c_probe() 130 { "xrs700x-switch" }, 147 .name = "xrs700x-i2c", [all …]
|
H A D | xrs700x_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0 28 struct device *dev = &mdiodev->dev; in xrs700x_mdio_reg_read() 63 struct device *dev = &mdiodev->dev; in xrs700x_mdio_reg_write() 101 .max_register = XRS_VLAN(VLAN_N_VID - 1), 112 priv = xrs700x_switch_alloc(&mdiodev->dev, mdiodev); in xrs700x_mdio_probe() 114 return -ENOMEM; in xrs700x_mdio_probe() 116 priv->regmap = devm_regmap_init(&mdiodev->dev, NULL, mdiodev, in xrs700x_mdio_probe() 118 if (IS_ERR(priv->regmap)) { in xrs700x_mdio_probe() 119 ret = PTR_ERR(priv->regmap); in xrs700x_mdio_probe() 120 dev_err(&mdiodev->dev, "Failed to initialize regmap: %d\n", ret); in xrs700x_mdio_probe() [all …]
|
H A D | xrs700x.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <net/dsa.h> 50 #define XRS700X_MIB_ETHTOOL_ONLY(o, n) {o, n, -1} 103 return -EOPNOTSUPP; in xrs700x_get_sset_count() 110 struct xrs700x_port *p = &priv->ports[port]; in xrs700x_read_port_counters() 117 mutex_lock(&p->mib_mutex); in xrs700x_read_port_counters() 120 regmap_write(priv->regmap, XRS_CNT_CTRL(port), 1); in xrs700x_read_port_counters() 126 regmap_read(priv->regmap, reg, &low); in xrs700x_read_port_counters() 127 regmap_read(priv->regmap, reg + 2, &high); in xrs700x_read_port_counters() 129 p->mib_data[i] += (high << 16) | low; in xrs700x_read_port_counters() [all …]
|
/linux/include/uapi/linux/ |
H A D | if_ether.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 58 #define ETH_P_BATMAN 0x4305 /* B.A.T.M.A.N.-Advanced packet [ NOT AN OFFICIALLY REGISTERED ID ] */ 77 #define ETH_P_WCCP 0x883E /* Web-cache coordination protocol 78 * defined in draft-wilson-wrec-wccp-v2-00.txt */ 85 #define ETH_P_ATMFATE 0x8884 /* Frame-based ATM Transport 104 #define ETH_P_PRP 0x88FB /* IEC 62439-3 PRP/HSRv0 */ 111 #define ETH_P_HSR 0x892F /* IEC 62439-3 HSRv1 */ 117 #define ETH_P_EDSA 0xDADA /* Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ 118 #define ETH_P_DSA_8021Q 0xDADB /* Fake VLAN Header for DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ 120 #define ETH_P_IFE 0xED3E /* ForCES inter-FE LFB type */ [all …]
|
/linux/drivers/dma/idxd/ |
H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0 13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register() 15 if (!idxd_drv->type) { in __idxd_driver_register() 17 return -EINVAL; in __idxd_driver_register() 20 drv->name = idxd_drv->name; in __idxd_driver_register() 21 drv->bus = &dsa_bus_type; in __idxd_driver_register() 22 drv->owner = owner; in __idxd_driver_register() 23 drv->mod_name = mod_name; in __idxd_driver_register() 31 driver_unregister(&idxd_drv->drv); in idxd_driver_unregister() 43 while (idxd_drv->type[i] != IDXD_DEV_NONE) { in idxd_config_bus_match() [all …]
|
H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/dma-mapping.h> 13 #include <linux/io-64-nonatomic-lo-hi.h> 25 MODULE_DESCRIPTION("Intel Data Streaming Accelerator and In-Memory Analytics Accelerator common dri… 26 MODULE_LICENSE("GPL v2"); 45 .name_prefix = "dsa", 51 .user_submission_safe = false, /* See INTEL-SA-01084 security advisory */ 62 .user_submission_safe = false, /* See INTEL-SA-01084 security advisory */ 70 /* DSA ver 1.0 platforms */ 72 /* DSA on GNR-D platforms */ [all …]
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz9477_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018-2019 Microchip Technology Inc. 23 dev = ksz_switch_alloc(&i2c->dev, i2c); in ksz9477_i2c_probe() 25 return -ENOMEM; in ksz9477_i2c_probe() 29 rc.lock_arg = &dev->regmap_mutex; in ksz9477_i2c_probe() 30 dev->regmap[i] = devm_regmap_init_i2c(i2c, &rc); in ksz9477_i2c_probe() 31 if (IS_ERR(dev->regmap[i])) { in ksz9477_i2c_probe() 32 return dev_err_probe(&i2c->dev, PTR_ERR(dev->regmap[i]), in ksz9477_i2c_probe() 38 if (i2c->dev.platform_data) in ksz9477_i2c_probe() 39 dev->pdata = i2c->dev.platform_data; in ksz9477_i2c_probe() [all …]
|
H A D | ksz8863_smi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 mdev = dev->priv; in ksz8863_mdio_read() 36 mutex_lock_nested(&mdev->bus->mdio_lock, MDIO_MUTEX_NESTED); in ksz8863_mdio_read() 40 ret = __mdiobus_read(mdev->bus, ((tmp & 0xE0) >> 5) | in ksz8863_mdio_read() 50 mutex_unlock(&mdev->bus->mdio_lock); in ksz8863_mdio_read() 63 mdev = dev->priv; in ksz8863_mdio_write() 68 mutex_lock_nested(&mdev->bus->mdio_lock, MDIO_MUTEX_NESTED); in ksz8863_mdio_write() 69 for (i = 0; i < (count - 4); i++) { in ksz8863_mdio_write() 72 ret = __mdiobus_write(mdev->bus, ((tmp & 0xE0) >> 5), in ksz8863_mdio_write() 79 mutex_unlock(&mdev->bus->mdio_lock); in ksz8863_mdio_write() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2014-2015 Hisilicon Limited. 28 [DSAF_MODE_DISABLE_2PORT_64VM] = "2port-64vf", 29 [DSAF_MODE_DISABLE_6PORT_0VM] = "6port-16rss", 30 [DSAF_MODE_DISABLE_6PORT_16VM] = "6port-16vf", 31 [DSAF_MODE_DISABLE_SP] = "single-port", 51 struct device_node *np = dsaf_dev->dev->of_node, *np_temp; in hns_dsaf_get_cfg() 52 struct platform_device *pdev = to_platform_device(dsaf_dev->dev); in hns_dsaf_get_cfg() 54 if (dev_of_node(dsaf_dev->dev)) { in hns_dsaf_get_cfg() 55 if (of_device_is_compatible(np, "hisilicon,hns-dsaf-v1")) in hns_dsaf_get_cfg() [all …]
|
/linux/drivers/net/dsa/ |
H A D | vitesse-vsc73xx-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* DSA driver for: 3 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch 4 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch 5 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch 6 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch 8 * This driver takes control of the switch chip connected over CPU-attached 13 * Based on vitesse-vsc-spi.c by: 23 #include "vitesse-vsc73xx.h" 32 * struct vsc73xx_platform - VSC73xx Platform state container [all …]
|
H A D | vitesse-vsc73xx-spi.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* DSA driver for: 3 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch 4 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch 5 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch 6 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch 20 #include "vitesse-vsc73xx.h" 30 * struct vsc73xx_spi - VSC73xx SPI state container 55 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_read() 63 return -EINVAL; in vsc73xx_spi_read() [all …]
|
H A D | lantiq_gswip.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2017 - 2019 Hauke Mehrtens <hauke@hauke-m.de> 10 * matches the model DSA uses. 17 * bridge, this driver converts the DSA model to the hardware. 45 #include <net/dsa.h> 46 #include <dt-bindings/mips/lantiq_rcu_gphy.h> 64 #define GSWIP_MDIO_PHYp(p) (0x15 - (p)) 135 #define GSWIP_BM_RAM_VAL(x) (0x043 - (x)) 153 #define GSWIP_PCE_TBL_KEY(x) (0x447 - (x)) 155 #define GSWIP_PCE_TBL_VAL(x) (0x44D - (x)) [all …]
|
H A D | vitesse-vsc73xx-core.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* DSA driver for: 3 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch 4 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch 5 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch 6 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch 8 * These switches have a built-in 8051 CPU and can download and execute a 10 * handling the switch in a memory-mapped manner by connecting to that external 30 #include <linux/dsa/8021q.h> 32 #include <net/dsa.h> [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hip06.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 compatible = "hisilicon,hip06-d03"; 12 interrupt-parent = <&gic>; 13 #address-cells = <2>; 14 #size-cells = <2>; 17 compatible = "arm,psci-0.2"; 22 #address-cells = <1>; 23 #size-cells = <0>; 25 cpu-map { [all …]
|
H A D | hip07.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 compatible = "hisilicon,hip07-d05"; 12 interrupt-parent = <&gic>; 13 #address-cells = <2>; 14 #size-cells = <2>; 17 compatible = "arm,psci-0.2"; 22 #address-cells = <1>; 23 #size-cells = <0>; 25 cpu-map { [all …]
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2018, Sensor-Technik Wiedemann GmbH 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 18 #include <linux/pcs/pcs-xpcs.h> 23 #include <linux/dsa/8021q.h> 77 vlan = priv->static_config.tables[BLK_IDX_VLAN_LOOKUP].entries; in sja1105_is_vlan_configured() 78 count = priv->static_config.tables[BLK_IDX_VLAN_LOOKUP].entry_count; in sja1105_is_vlan_configured() 85 return -1; in sja1105_is_vlan_configured() 90 struct sja1105_private *priv = ds->priv; in sja1105_drop_untagged() 93 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_drop_untagged() [all …]
|
/linux/ |
H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-scsi@vger.kernel.org 88 F: drivers/scsi/3w-* [all …]
|