Home
last modified time | relevance | path

Searched +full:eee +full:- +full:pcs (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v6.1/include/uapi/linux/
Dmdio.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * Copyright 2006-2009 Solarflare Communications Inc.
25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */
47 #define MDIO_PCS_EEE_ABLE 20 /* EEE Capability register */
48 #define MDIO_PCS_EEE_ABLE2 21 /* EEE Capability register 2 */
50 #define MDIO_PCS_EEE_WK_ERR 22 /* EEE wake error counter */
52 #define MDIO_AN_EEE_ADV 60 /* EEE advertisement */
53 #define MDIO_AN_EEE_LPABLE 61 /* EEE link partner ability */
54 #define MDIO_AN_EEE_ADV2 62 /* EEE advertisement 2 */
55 #define MDIO_AN_EEE_LPABLE2 63 /* EEE link partner ability 2 */
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/net/
Dnvidia,tegra234-mgbe.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Tegra234 MGBE Multi-Gigabit Ethernet Controller
10 - Thierry Reding <treding@nvidia.com>
11 - Jon Hunter <jonathanh@nvidia.com>
15 const: nvidia,tegra234-mgbe
20 reg-names:
22 - const: hypervisor
[all …]
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dcommon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Copyright (C) 2007-2009 STMicroelectronics Ltd
18 #include <linux/pcs/pcs-xpcs.h>
56 #define STMMAC_GET_ENTRY(x, size) ((x + 1) & (size - 1))
129 /* EEE */
161 /* PCS */
237 /* PCS defines */
243 #define SF_DMA_MODE 1 /* DMA STORE-AND-FORWARD Operation Mode */
248 #define DMA_HW_FEAT_HDSEL 0x00000004 /* Half-Duplex Support */
252 #define DMA_HW_FEAT_PCSSEL 0x00000040 /* PCS registers */
[all …]
Dstmmac_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
5 Copyright (C) 2007-2009 STMicroelectronics Ltd
105 /* EEE */
137 /* PCS */
289 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo()
290 strscpy(info->driver, GMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo()
291 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo()
292 strscpy(info->driver, XGMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo()
294 strscpy(info->driver, MAC100_ETHTOOL_NAME, in stmmac_ethtool_getdrvinfo()
295 sizeof(info->driver)); in stmmac_ethtool_getdrvinfo()
[all …]
Ddwmac1000_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
9 Copyright (C) 2007-2009 STMicroelectronics Ltd
27 if (axi->axi_lpi_en) in dwmac1000_dma_axi()
29 if (axi->axi_xit_frm) in dwmac1000_dma_axi()
33 value |= (axi->axi_wr_osr_lmt & DMA_AXI_WR_OSR_LMT_MASK) << in dwmac1000_dma_axi()
37 value |= (axi->axi_rd_osr_lmt & DMA_AXI_RD_OSR_LMT_MASK) << in dwmac1000_dma_axi()
45 switch (axi->axi_blen[i]) { in dwmac1000_dma_axi()
77 int txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwmac1000_dma_init()
78 int rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac1000_dma_init()
[all …]
Dstmmac_main.c1 // SPDX-License-Identifier: GPL-2.0-only
3 This is the driver for the ST MAC 10/100/1000 on-chip Ethernet controllers.
6 Copyright(C) 2007-2011 STMicroelectronics Ltd
29 #include <linux/dma-mapping.h>
54 * with fine resolution and binary rollover. This avoid non-monotonic behavior
61 #define TSO_MAX_BUFF_SIZE (SZ_16K - 1)
69 static int debug = -1;
71 MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");
73 static int phyaddr = -1;
77 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4)
[all …]
Ddwmac4_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
25 if (axi->axi_lpi_en) in dwmac4_dma_axi()
27 if (axi->axi_xit_frm) in dwmac4_dma_axi()
31 value |= (axi->axi_wr_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi()
35 value |= (axi->axi_rd_osr_lmt & DMA_AXI_OSR_MAX) << in dwmac4_dma_axi()
43 switch (axi->axi_blen[i]) { in dwmac4_dma_axi()
76 u32 rxpbl = dma_cfg->rxpbl ?: dma_cfg->pbl; in dwmac4_dma_init_rx_chan()
82 if (IS_ENABLED(CONFIG_ARCH_DMA_ADDR_T_64BIT) && likely(dma_cfg->eame)) in dwmac4_dma_init_rx_chan()
94 u32 txpbl = dma_cfg->txpbl ?: dma_cfg->pbl; in dwmac4_dma_init_tx_chan()
[all …]
Ddwmac1000.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Copyright (C) 2007-2009 STMicroelectronics Ltd
23 #define GMAC_WAKEUP_FILTER 0x00000028 /* Wake-up Frame Filter */
59 /* Energy Efficient Ethernet (EEE)
79 #define GMAC_ADDR_HIGH(reg) ((reg > 15) ? 0x00000800 + (reg - 16) * 8 : \
81 #define GMAC_ADDR_LOW(reg) ((reg > 15) ? 0x00000804 + (reg - 16) * 8 : \
85 #define GMAC_PCS_BASE 0x000000c0 /* PCS register base */
119 #define GMAC_CONTROL_LM 0x00001000 /* Loop-back mode */
177 #define GMAC_DEBUG_RXFSTS_MASK GENMASK(9, 8) /* MTL Rx FIFO Fill-level */
196 /*--- DMA BLOCK defines ---*/
[all …]
Ddwmac1000_core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 This is the driver for the GMAC on-chip Ethernet controller for ST SoCs.
9 Copyright (C) 2007-2009 STMicroelectronics Ltd
26 void __iomem *ioaddr = hw->pcsr; in dwmac1000_core_init()
28 int mtu = dev->mtu; in dwmac1000_core_init()
38 if (hw->ps) { in dwmac1000_core_init()
41 value &= ~hw->link.speed_mask; in dwmac1000_core_init()
42 switch (hw->ps) { in dwmac1000_core_init()
44 value |= hw->link.speed1000; in dwmac1000_core_init()
47 value |= hw->link.speed100; in dwmac1000_core_init()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/igb/
De1000_82575.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
61 * igb_write_vfta_i350 - Write value to VLAN filter table
71 struct igb_adapter *adapter = hw->back; in igb_write_vfta_i350()
74 for (i = 10; i--;) in igb_write_vfta_i350()
78 adapter->shadow_vfta[offset] = value; in igb_write_vfta_i350()
82 * igb_sgmii_uses_mdio_82575 - Determine if I2C pins are for external MDIO
93 switch (hw->mac.type) { in igb_sgmii_uses_mdio_82575()
114 * igb_check_for_link_media_swap - Check which M88E1112 interface linked
121 struct e1000_phy_info *phy = &hw->phy; in igb_check_for_link_media_swap()
[all …]
De1000_defines.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
62 /* Interrupt acknowledge Auto-mask */
118 #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */
119 #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */
184 #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */
186 #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */
254 /* Constants used to intrepret the masked PCI-X bus speed. */
271 /* 1000/H is not supported, nor spec-compliant. */
309 #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */
[all …]
De1000_regs.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
7 #define E1000_CTRL 0x00000 /* Device Control - RW */
8 #define E1000_STATUS 0x00008 /* Device Status - RO */
9 #define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */
10 #define E1000_EERD 0x00014 /* EEPROM Read - RW */
11 #define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */
12 #define E1000_MDIC 0x00020 /* MDI Control - RW */
13 #define E1000_MDICNFG 0x00E04 /* MDI Config - RW */
14 #define E1000_SCTL 0x00024 /* SerDes Control - RW */
[all …]
/Linux-v6.1/drivers/net/phy/
Dphylink.c1 // SPDX-License-Identifier: GPL-2.0
4 * technologies such as SFP cages where the PHY is hot-pluggable.
40 * struct phylink - internal data type for phylink
47 struct phylink_pcs *pcs; member
56 u8 link_port; /* The current non-phy ethtool port */
87 if ((pl)->config->type == PHYLINK_NETDEV) \
88 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \
89 else if ((pl)->config->type == PHYLINK_DEV) \
90 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \
102 if ((pl)->config->type == PHYLINK_NETDEV) \
[all …]
/Linux-v6.1/include/linux/
Dphylink.h21 MLO_AN_FIXED, /* Fixed-link mode */
22 MLO_AN_INBAND, /* In-band protocol */
83 * struct phylink_link_state - link state structure
118 * struct phylink_config - PHYLINK configuration structure
126 * @ovr_an_inband: if true, override PCS to MLO_AN_INBAND
130 * are supported by the MAC/PCS.
147 * struct phylink_mac_ops - MAC operations structure.
149 * @mac_select_pcs: Select a PCS for the interface mode.
183 #if 0 /* For kernel-doc purposes only. */
185 * validate - Validate and update the link configuration
[all …]
Dethtool.h1 /* SPDX-License-Identifier: GPL-2.0 */
43 * enum ethtool_phys_id_state - indicator state for physical identification
59 ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */
60 ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */
61 ETH_RSS_HASH_CRC32_BIT, /* Configurable RSS hash function - Crc32 */
71 * struct kernel_ethtool_ringparam - RX/TX ring configuration
85 * enum ethtool_supported_ring_param - indicator caps for setting ring params
129 * ethtool_rxfh_indir_default - get default value for RX flow hash indirection
158 * ethtool_link_ksettings_zero_link_mode - clear link_ksettings link mode mask
163 bitmap_zero((ptr)->link_modes.name, __ETHTOOL_LINK_MODE_MASK_NBITS)
[all …]
/Linux-v6.1/drivers/net/pcs/
Dpcs-xpcs.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/pcs/pcs-xpcs.h>
14 #include "pcs-xpcs.h"
17 container_of((pl_pcs), struct dw_xpcs, pcs)
152 const struct xpcs_compat *compat = &id->compat[i]; in xpcs_find_compat()
154 for (j = 0; j < compat->num_interfaces; j++) in xpcs_find_compat()
155 if (compat->interface[j] == interface) in xpcs_find_compat()
166 compat = xpcs_find_compat(xpcs->id, interface); in xpcs_get_an_mode()
168 return -ENODEV; in xpcs_get_an_mode()
170 return compat->an_mode; in xpcs_get_an_mode()
[all …]
/Linux-v6.1/drivers/net/dsa/b53/
Db53_priv.h4 * Copyright (C) 2011-2013 Jonas Gorski <jogo@openwrt.org>
85 struct phylink_pcs pcs; member
96 struct ethtool_eee eee; member
150 struct b53_pcs pcs[B53_N_PCS]; member
155 if (dev->enabled_ports & BIT(i))
160 return dev->chip_id == BCM5325_DEVICE_ID; in is5325()
166 return dev->chip_id == BCM5365_DEVICE_ID; in is5365()
174 return dev->chip_id == BCM5397_DEVICE_ID || in is5397_98()
175 dev->chip_id == BCM5398_DEVICE_ID; in is5397_98()
180 return dev->chip_id == BCM5395_DEVICE_ID || in is539x()
[all …]
/Linux-v6.1/arch/arm64/boot/dts/nvidia/
Dtegra234.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/clock/tegra234-clock.h>
4 #include <dt-bindings/gpio/tegra234-gpio.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/mailbox/tegra186-hsp.h>
7 #include <dt-bindings/memory/tegra234-mc.h>
8 #include <dt-bindings/power/tegra234-powergate.h>
9 #include <dt-bindings/reset/tegra234-reset.h>
13 interrupt-parent = <&gic>;
14 #address-cells = <2>;
[all …]
/Linux-v6.1/drivers/platform/x86/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 x86 platforms, including vendor-specific laptop extension drivers.
23 This driver adds support for the ACPI-WMI (Windows Management
26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the
27 ACPI firmware to userspace - this is done through various vendor
38 any ACPI-WMI devices.
45 Say Y here if you want to be able to read a firmware-embedded
50 be called wmi-bmof.
64 control, fn-lock, mic-mute LED, and other extra features.
67 will be called huawei-wmi.
[all …]
/Linux-v6.1/drivers/net/dsa/qca/
Dqca8k.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
128 /* EEE control registers */
232 /* 0x704 for TRUNK 0-1 --- 0x708 for TRUNK 2-3 */
386 struct phylink_pcs pcs; member
451 /* Common eee function */
452 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee);
/Linux-v6.1/drivers/net/ethernet/marvell/
Dmvneta.c7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
156 #define MVNETA_TX_INTR_MASK(nr_txqs) (((1 << nr_txqs) - 1) << 0)
158 #define MVNETA_RX_INTR_MASK(nr_rxqs) (((1 << nr_rxqs) - 1) << 8)
270 * to cover all rate-limit values from 10Kbps up to 5Gbps
296 (((index) < (q)->last_desc) ? ((index) + 1) : 0)
365 #define MVNETA_MAX_RX_BUF_SIZE (PAGE_SIZE - MVNETA_SKB_PAD)
368 ((addr >= txq->tso_hdrs_phys) && \
369 (addr < txq->tso_hdrs_phys + txq->size * TSO_HEADER_SIZE))
372 (((rxd)->status & MVNETA_RXD_BM_POOL_MASK) >> MVNETA_RXD_BM_POOL_SHIFT)
481 /* Pointer to the CPU-local NAPI struct */
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/e1000e/
Dich8lan.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
5 * 82562G-2 10/100 Network Connection
7 * 82562GT-2 10/100 Network Connection
9 * 82562V-2 10/100 Network Connection
10 * 82566DC-2 Gigabit Network Connection
12 * 82566DM-2 Gigabit Network Connection
19 * 82567LM-2 Gigabit Network Connection
20 * 82567LF-2 Gigabit Network Connection
21 * 82567V-2 Gigabit Network Connection
[all …]
Dethtool.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
28 "s0ix-enabled",
36 .sizeof_stat = sizeof(((struct e1000_adapter *)0)->m), \
41 .sizeof_stat = sizeof(((struct rtnl_link_stats64 *)0)->m), \
114 struct e1000_hw *hw = &adapter->hw; in e1000_get_link_ksettings()
117 if (hw->phy.media_type == e1000_media_type_copper) { in e1000_get_link_ksettings()
125 if (hw->phy.type == e1000_phy_ife) in e1000_get_link_ksettings()
129 if (hw->mac.autoneg == 1) { in e1000_get_link_ksettings()
132 advertising |= hw->phy.autoneg_advertised; in e1000_get_link_ksettings()
[all …]
/Linux-v6.1/Documentation/networking/
Dphy.rst26 #. Increase code-reuse
27 #. Increase overall code-maintainability
67 for one of the users. (e.g. "git grep fsl,.*-mdio arch/powerpc/boot/dts/")
72 The Reduced Gigabit Medium Independent Interface (RGMII) is a 12-pin
84 or the PCB traces insert the correct 1.5-2ns delay
97 * PHY devices may offer sub-nanosecond granularity in how they allow a
115 PHY_INTERFACE_MODE_RGMII, it should make sure that the MAC-level delays are
130 -----------------------------------------
197 PHY-specific flags should be set in phydev->dev_flags prior to the call
208 Now just make sure that phydev->supported and phydev->advertising have any
[all …]
/Linux-v6.1/drivers/net/ethernet/freescale/fman/
Dfman_memac.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
3 * Copyright 2008 - 2015 Freescale Semiconductor Inc.
18 /* PCS registers */
86 #define IF_MODE_MASK 0x00000003 /* 30-31 Mask on i/f mode bits */
87 #define IF_MODE_10G 0x00000000 /* 30-31 10G interface */
88 #define IF_MODE_MII 0x00000001 /* 30-31 MII interface */
89 #define IF_MODE_GMII 0x00000002 /* 30-31 GMII (1G) interface */
92 #define IF_MODE_RGMII_1000 0x00004000 /* 10 - 1000Mbps RGMII */
93 #define IF_MODE_RGMII_100 0x00000000 /* 00 - 100Mbps RGMII */
94 #define IF_MODE_RGMII_10 0x00002000 /* 01 - 10Mbps RGMII */
[all …]

12