| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | mdio.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | mdio.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | nvidia,tegra234-mgbe.yaml | 1 # 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| D | common.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 18 #include <linux/pcs/pcs-xpcs.h> 55 #define STMMAC_GET_ENTRY(x, size) ((x + 1) & (size - 1)) 118 /* EEE */ 150 /* PCS */ 218 /* PCS defines */ 224 #define SF_DMA_MODE 1 /* DMA STORE-AND-FORWARD Operation Mode */ 229 #define DMA_HW_FEAT_HDSEL 0x00000004 /* Half-Duplex Support */ 233 #define DMA_HW_FEAT_PCSSEL 0x00000040 /* PCS registers */ [all …]
|
| D | stmmac_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 105 /* EEE */ 137 /* PCS */ 271 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo() 272 strlcpy(info->driver, GMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() 273 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo() 274 strlcpy(info->driver, XGMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() 276 strlcpy(info->driver, MAC100_ETHTOOL_NAME, in stmmac_ethtool_getdrvinfo() 277 sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() [all …]
|
| D | stmmac_main.c | 1 // 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> 51 * with fine resolution and binary rollover. This avoid non-monotonic behavior 58 #define TSO_MAX_BUFF_SIZE (SZ_16K - 1) 66 static int debug = -1; 68 MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)"); 70 static int phyaddr = -1; 74 #define STMMAC_TX_THRESH(x) ((x)->dma_tx_size / 4) [all …]
|
| D | dwmac1000_dma.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
| D | common.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 18 #include <linux/pcs/pcs-xpcs.h> 57 #define STMMAC_GET_ENTRY(x, size) ((x + 1) & (size - 1)) 158 /* EEE */ 190 /* PCS */ 269 /* PCS defines */ 275 #define SF_DMA_MODE 1 /* DMA STORE-AND-FORWARD Operation Mode */ 280 #define DMA_HW_FEAT_HDSEL 0x00000004 /* Half-Duplex Support */ 284 #define DMA_HW_FEAT_PCSSEL 0x00000040 /* PCS registers */ [all …]
|
| D | stmmac_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 97 /* EEE */ 129 /* PCS */ 295 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo() 296 strscpy(info->driver, GMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() 297 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo() 298 strscpy(info->driver, XGMAC_ETHTOOL_NAME, sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() 300 strscpy(info->driver, MAC100_ETHTOOL_NAME, in stmmac_ethtool_getdrvinfo() 301 sizeof(info->driver)); in stmmac_ethtool_getdrvinfo() [all …]
|
| D | dwmac1000_dma.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
| D | e1000_82575.c | 1 // 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 …]
|
| D | e1000_defines.h | 1 /* 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 …]
|
| D | e1000_regs.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
| D | e1000_82575.c | 1 // 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 …]
|
| D | e1000_defines.h | 1 /* 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 …]
|
| D | e1000_regs.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | phylink.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * technologies such as SFP cages where the PHY is hot-pluggable. 38 * struct phylink - internal data type for phylink 46 struct phylink_pcs *pcs; member 55 u8 link_port; /* The current non-phy ethtool port */ 84 if ((pl)->config->type == PHYLINK_NETDEV) \ 85 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 86 else if ((pl)->config->type == PHYLINK_DEV) \ 87 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \ 99 if ((pl)->config->type == PHYLINK_NETDEV) \ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| D | phylink.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * technologies such as SFP cages where the PHY is hot-pluggable. 44 * struct phylink - internal data type for phylink 51 struct phylink_pcs *pcs; member 60 u8 link_port; /* The current non-phy ethtool port */ 93 if ((pl)->config->type == PHYLINK_NETDEV) \ 94 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 95 else if ((pl)->config->type == PHYLINK_DEV) \ 96 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \ 108 if ((pl)->config->type == PHYLINK_NETDEV) \ [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | phylink.h | 21 MLO_AN_FIXED, /* Fixed-link mode */ 22 MLO_AN_INBAND, /* In-band protocol */ 31 * struct phylink_link_state - link state structure 61 * struct phylink_config - PHYLINK configuration structure 64 * @pcs_poll: MAC PCS cannot provide link change interrupt 80 * struct phylink_mac_ops - MAC operations structure. 113 #if 0 /* For kernel-doc purposes only. */ 115 * validate - Validate and update the link configuration 120 * Clear bits in the @supported and @state->advertising masks that 129 * If the @state->interface mode is %PHY_INTERFACE_MODE_1000BASEX [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/ |
| D | fman_memac.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later 3 * Copyright 2008 - 2015 Freescale Semiconductor Inc. 14 #include <linux/pcs-lynx.h> 56 #define IF_MODE_MASK 0x00000003 /* 30-31 Mask on i/f mode bits */ 57 #define IF_MODE_10G 0x00000000 /* 30-31 10G interface */ 58 #define IF_MODE_MII 0x00000001 /* 30-31 MII interface */ 59 #define IF_MODE_GMII 0x00000002 /* 30-31 GMII (1G) interface */ 62 #define IF_MODE_RGMII_1000 0x00004000 /* 10 - 1000Mbps RGMII */ 63 #define IF_MODE_RGMII_100 0x00000000 /* 00 - 100Mbps RGMII */ 64 #define IF_MODE_RGMII_10 0x00002000 /* 01 - 10Mbps RGMII */ [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | phylink.h | 22 MLO_AN_FIXED, /* Fixed-link mode */ 23 MLO_AN_INBAND, /* In-band protocol */ 25 /* PCS "negotiation" mode. 26 * PHYLINK_PCS_NEG_NONE - protocol has no inband capability 27 * PHYLINK_PCS_NEG_OUTBAND - some out of band or fixed link setting 28 * PHYLINK_PCS_NEG_INBAND_DISABLED - inband mode disabled, e.g. 29 * 1000base-X with autoneg off 30 * PHYLINK_PCS_NEG_INBAND_ENABLED - inband mode enabled 32 * PHYLINK_PCS_NEG_INBAND - inband mode selected 33 * PHYLINK_PCS_NEG_ENABLED - negotiation mode enabled [all …]
|
| /kernel/linux/linux-6.6/drivers/net/pcs/ |
| D | pcs-xpcs.c | 1 // 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) 167 const struct xpcs_compat *compat = &id->compat[i]; in xpcs_find_compat() 169 for (j = 0; j < compat->num_interfaces; j++) in xpcs_find_compat() 170 if (compat->interface[j] == interface) in xpcs_find_compat() 181 compat = xpcs_find_compat(xpcs->id, interface); in xpcs_get_an_mode() 183 return -ENODEV; in xpcs_get_an_mode() 185 return compat->an_mode; in xpcs_get_an_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/b53/ |
| D | b53_priv.h | 4 * Copyright (C) 2011-2013 Jonas Gorski <jogo@openwrt.org> 87 struct phylink_pcs pcs; member 98 struct ethtool_eee eee; member 152 struct b53_pcs pcs[B53_N_PCS]; member 157 if (dev->enabled_ports & BIT(i)) 162 return dev->chip_id == BCM5325_DEVICE_ID; in is5325() 168 return dev->chip_id == BCM5365_DEVICE_ID; in is5365() 176 return dev->chip_id == BCM5397_DEVICE_ID || in is5397_98() 177 dev->chip_id == BCM5398_DEVICE_ID; in is5397_98() 182 return dev->chip_id == BCM5395_DEVICE_ID || in is539x() [all …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | Kconfig | 1 # 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/qca/ |
| D | qca8k.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> 92 #define QCA8K_LED_COUNT ((QCA8K_NUM_PORTS - QCA8K_NUM_CPU_PORTS) * QCA8K_LED_PORT_COUNT) 97 #define QCA8K_LED_PHY123_PATTERN_EN_SHIFT(_phy, _led) ((((_phy) - 1) * 6) + 8 + (2 * (_led))) 174 /* EEE control registers */ 280 /* 0x704 for TRUNK 0-1 --- 0x708 for TRUNK 2-3 */ 426 struct phylink_pcs pcs; member 495 return port - 1; in qca8k_port_to_phy() 519 /* Common eee function */ 520 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee);
|