| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | dp83tc811.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ 57 /* WoL Registers */ 64 /* WoL bits */ 98 struct ethtool_wolinfo *wol) in dp83811_set_wol() argument 100 struct net_device *ndev = phydev->attached_dev; in dp83811_set_wol() 101 const u8 *mac; in dp83811_set_wol() local 104 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83811_set_wol() 105 mac = (const u8 *)ndev->dev_addr; in dp83811_set_wol() 107 if (!is_valid_ether_addr(mac)) in dp83811_set_wol() [all …]
|
| D | dp83822.c | 1 // SPDX-License-Identifier: GPL-2.0 83 /* WoL Registers */ 90 /* WoL bits */ 138 struct ethtool_wolinfo *wol) in dp83822_set_wol() argument 140 struct net_device *ndev = phydev->attached_dev; in dp83822_set_wol() 142 const u8 *mac; in dp83822_set_wol() local 144 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol() 145 mac = (const u8 *)ndev->dev_addr; in dp83822_set_wol() 147 if (!is_valid_ether_addr(mac)) in dp83822_set_wol() 148 return -EINVAL; in dp83822_set_wol() [all …]
|
| D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <dt-bindings/net/ti-dp83867.h> 183 struct ethtool_wolinfo *wol) in dp83867_set_wol() argument 185 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 187 u8 *mac; in dp83867_set_wol() local 192 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 197 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 198 mac = (u8 *)ndev->dev_addr; in dp83867_set_wol() 200 if (!is_valid_ether_addr(mac)) in dp83867_set_wol() 201 return -EINVAL; in dp83867_set_wol() [all …]
|
| D | dp83869.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <dt-bindings/net/ti-dp83869.h> 69 /* This is the same bit mask as the BMCR so re-use the BMCR default */ 157 struct dp83869_private *dp83869 = phydev->priv; in dp83869_read_status() 164 if (linkmode_test_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->supported)) { in dp83869_read_status() 165 if (phydev->link) { in dp83869_read_status() 166 if (dp83869->mode == DP83869_RGMII_100_BASE) in dp83869_read_status() 167 phydev->speed = SPEED_100; in dp83869_read_status() 169 phydev->speed = SPEED_UNKNOWN; in dp83869_read_status() 170 phydev->duplex = DUPLEX_UNKNOWN; in dp83869_read_status() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| D | dp83tc811.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ 57 /* WoL Registers */ 64 /* WoL bits */ 98 struct ethtool_wolinfo *wol) in dp83811_set_wol() argument 100 struct net_device *ndev = phydev->attached_dev; in dp83811_set_wol() 101 const u8 *mac; in dp83811_set_wol() local 104 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83811_set_wol() 105 mac = (const u8 *)ndev->dev_addr; in dp83811_set_wol() 107 if (!is_valid_ether_addr(mac)) in dp83811_set_wol() [all …]
|
| D | dp83822.c | 1 // SPDX-License-Identifier: GPL-2.0 83 /* WoL Registers */ 90 /* WoL bits */ 124 struct ethtool_wolinfo *wol) in dp83822_set_wol() argument 126 struct net_device *ndev = phydev->attached_dev; in dp83822_set_wol() 128 const u8 *mac; in dp83822_set_wol() local 130 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol() 131 mac = (const u8 *)ndev->dev_addr; in dp83822_set_wol() 133 if (!is_valid_ether_addr(mac)) in dp83822_set_wol() 134 return -EINVAL; in dp83822_set_wol() [all …]
|
| D | dp83869.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <dt-bindings/net/ti-dp83869.h> 70 /* This is the same bit mask as the BMCR so re-use the BMCR default */ 158 struct dp83869_private *dp83869 = phydev->priv; in dp83869_read_status() 165 if (linkmode_test_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->supported)) { in dp83869_read_status() 166 if (phydev->link) { in dp83869_read_status() 167 if (dp83869->mode == DP83869_RGMII_100_BASE) in dp83869_read_status() 168 phydev->speed = SPEED_100; in dp83869_read_status() 170 phydev->speed = SPEED_UNKNOWN; in dp83869_read_status() 171 phydev->duplex = DUPLEX_UNKNOWN; in dp83869_read_status() [all …]
|
| D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/nvmem-consumer.h> 19 #include <dt-bindings/net/ti-dp83867.h> 192 struct ethtool_wolinfo *wol) in dp83867_set_wol() argument 194 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 196 const u8 *mac; in dp83867_set_wol() local 201 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 206 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 207 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol() 209 if (!is_valid_ether_addr(mac)) in dp83867_set_wol() [all …]
|
| D | bcm-phy-lib.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2017 Broadcom 6 #include "bcm-phy-lib.h" 192 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in bcm_phy_config_intr() 359 if (phydev->autoneg == AUTONEG_ENABLE) in bcm_phy_enable_apd() 367 /* Enable Auto Power-Down (APD) for the PHY */ in bcm_phy_enable_apd() 394 phydev->supported)) in bcm_phy_set_eee() 397 phydev->supported)) in bcm_phy_set_eee() 448 if (count - BCM54XX_SHD_SCR2_WSPD_RTRY_LMT_OFFSET > in bcm_phy_downshift_set() 451 return -ERANGE; in bcm_phy_downshift_set() [all …]
|
| D | smsc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 27 /* Vendor-specific PHY Definitions */ 70 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in smsc_phy_config_intr() 91 struct smsc_phy_priv *priv = phydev->priv; in smsc_phy_config_edpd() 93 if (priv->edpd_enable) in smsc_phy_config_edpd() 107 if (irq_status != -ENODEV) in smsc_phy_handle_interrupt() 124 struct smsc_phy_priv *priv = phydev->priv; in smsc_phy_config_init() 130 if (!priv->edpd_mode_set_by_user && phydev->irq != PHY_POLL) in smsc_phy_config_init() 131 priv->edpd_enable = false; in smsc_phy_config_init() 161 switch (phydev->mdix_ctrl) { in lan87xx_config_aneg() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
| D | pch_gbe_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1999 - 2010 Intel Corporation. 12 * pch_gbe_stats - Stats item information 28 * pch_gbe_gstrings_stats - ethtool information status name list 65 * pch_gbe_get_link_ksettings - Get device-specific settings 78 mii_ethtool_get_link_ksettings(&adapter->mii, ecmd); in pch_gbe_get_link_ksettings() 81 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings() 83 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings() 88 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings() 90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/oki-semi/pch_gbe/ |
| D | pch_gbe_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1999 - 2010 Intel Corporation. 14 * pch_gbe_stats - Stats item information 30 * pch_gbe_gstrings_stats - ethtool information status name list 67 * pch_gbe_get_link_ksettings - Get device-specific settings 80 mii_ethtool_get_link_ksettings(&adapter->mii, ecmd); in pch_gbe_get_link_ksettings() 83 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings() 85 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings() 90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings() 92 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | mediatek-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/mediatek-dwmac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Biao Huang <biao.huang@mediatek.com> 21 - mediatek,mt2712-gmac 22 - mediatek,mt8188-gmac 23 - mediatek,mt8195-gmac 25 - compatible 28 - $ref: snps,dwmac.yaml# [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/ |
| D | ethtool.c | 1 // 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), \ 115 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() 127 if (hw->phy.type == e1000_phy_ife) in e1000_get_link_ksettings() 131 if (hw->mac.autoneg == 1) { in e1000_get_link_ksettings() 134 advertising |= hw->phy.autoneg_advertised; in e1000_get_link_ksettings() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
| D | ethtool.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/Documentation/networking/ |
| D | sfp-phylink.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 phylink is a mechanism to support hot-pluggable networking modules 11 directly connected to a MAC without needing to re-initialise the 12 adapter on hot-plug events. 14 phylink supports conventional phylib-based setups, fixed link setups 26 the PHY, and pass them to the MAC driver. We expect the MAC driver 32 Fixed mode is the same as PHY mode as far as the MAC driver is 35 3. In-band mode 37 In-band mode is used with 802.3z, SGMII and similar interface modes, 38 and we are expecting to use and honor the in-band negotiation or [all …]
|
| /kernel/linux/linux-5.10/Documentation/networking/ |
| D | sfp-phylink.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 phylink is a mechanism to support hot-pluggable networking modules 11 directly connected to a MAC without needing to re-initialise the 12 adapter on hot-plug events. 14 phylink supports conventional phylib-based setups, fixed link setups 26 the PHY, and pass them to the MAC driver. We expect the MAC driver 32 Fixed mode is the same as PHY mode as far as the MAC driver is 35 3. In-band mode 37 In-band mode is used with 802.3z, SGMII and similar interface modes, 38 and we are expecting to use and honor the in-band negotiation or [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
| D | enetc_ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2 /* Copyright 2017-2019 NXP */ 37 struct enetc_hw *hw = &priv->si->hw; in enetc_get_reglen() 41 len += ARRAY_SIZE(enetc_txbdr_regs) * priv->num_tx_rings; in enetc_get_reglen() 42 len += ARRAY_SIZE(enetc_rxbdr_regs) * priv->num_rx_rings; in enetc_get_reglen() 44 if (hw->port) in enetc_get_reglen() 56 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs() 66 for (i = 0; i < priv->num_tx_rings; i++) { in enetc_get_regs() 75 for (i = 0; i < priv->num_rx_rings; i++) { in enetc_get_regs() 84 if (!hw->port) in enetc_get_regs() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/ngbe/ |
| D | ngbe_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */ 24 /* ngbe_pci_tbl - PCI Device ID Table 47 * ngbe_init_type_code - Initialize the shared code 55 wx->mac.type = wx_mac_em; in ngbe_init_type_code() 56 type_mask = (u16)(wx->subsystem_device_id & NGBE_OEM_MASK); in ngbe_init_type_code() 57 ncsi_mask = wx->subsystem_device_id & NGBE_NCSI_MASK; in ngbe_init_type_code() 58 wol_mask = wx->subsystem_device_id & NGBE_WOL_MASK; in ngbe_init_type_code() 61 wx->mac_type = (val & BIT(7)) >> 7 ? in ngbe_init_type_code() 65 wx->wol_hw_supported = (wol_mask == NGBE_WOL_SUP) ? 1 : 0; in ngbe_init_type_code() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/ |
| D | bcmgenet_wol.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support 5 * Copyright (c) 2014-2020 Broadcom 38 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet 41 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument 44 struct device *kdev = &priv->pdev->dev; in bcmgenet_get_wol() 47 wol->supported = 0; in bcmgenet_get_wol() 48 wol->wolopts = 0; in bcmgenet_get_wol() 52 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol() 53 wol->wolopts = priv->wolopts; in bcmgenet_get_wol() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/socionext/ |
| D | sni_ave.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sni_ave.c - Socionext UniPhier AVE ethernet driver 5 * Copyright 2015-2017 Socionext Inc. 37 /* MAC Register Group */ 40 #define AVE_RXMAC1R 0x208 /* MAC address (lower) */ 41 #define AVE_RXMAC2R 0x20c /* MAC address (upper) */ 92 #define AVE_GRR_GRST BIT(0) /* Reset all MAC */ 117 #define AVE_RXCR_AFEN BIT(19) /* MAC address filter */ 175 #define AVE_PFNUM_MULTICAST 11 /* No.11-17 */ 208 #define IS_DESC_64BIT(p) ((p)->data->is_desc_64bit) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/socionext/ |
| D | sni_ave.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sni_ave.c - Socionext UniPhier AVE ethernet driver 5 * Copyright 2015-2017 Socionext Inc. 38 /* MAC Register Group */ 41 #define AVE_RXMAC1R 0x208 /* MAC address (lower) */ 42 #define AVE_RXMAC2R 0x20c /* MAC address (upper) */ 93 #define AVE_GRR_GRST BIT(0) /* Reset all MAC */ 118 #define AVE_RXCR_AFEN BIT(19) /* MAC address filter */ 176 #define AVE_PFNUM_MULTICAST 11 /* No.11-17 */ 209 #define IS_DESC_64BIT(p) ((p)->data->is_desc_64bit) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/genet/ |
| D | bcmgenet_wol.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support 5 * Copyright (c) 2014-2020 Broadcom 37 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet 40 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument 43 struct device *kdev = &priv->pdev->dev; in bcmgenet_get_wol() 45 if (dev->phydev) { in bcmgenet_get_wol() 46 phy_ethtool_get_wol(dev->phydev, wol); in bcmgenet_get_wol() 47 if (wol->supported) in bcmgenet_get_wol() 52 wol->supported = 0; in bcmgenet_get_wol() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
| D | igc_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 117 ((((struct igc_adapter *)netdev_priv(netdev))->num_rx_queues * \ 119 (((struct igc_adapter *)netdev_priv(netdev))->num_tx_queues * \ 126 "legacy-rx", 135 struct igc_hw *hw = &adapter->hw; in igc_ethtool_get_drvinfo() 139 strscpy(drvinfo->driver, igc_driver_name, sizeof(drvinfo->driver)); in igc_ethtool_get_drvinfo() 142 hw->nvm.ops.read(hw, IGC_NVM_DEV_STARTER, 1, &nvm_version); in igc_ethtool_get_drvinfo() 147 scnprintf(adapter->fw_version, in igc_ethtool_get_drvinfo() 148 sizeof(adapter->fw_version), in igc_ethtool_get_drvinfo() 153 strscpy(drvinfo->fw_version, adapter->fw_version, in igc_ethtool_get_drvinfo() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 31 sizeof(((struct ixgbe_adapter *)0)->m), \ 34 sizeof(((struct rtnl_link_stats64 *)0)->m), \ 111 #define IXGBE_NUM_RX_QUEUES netdev->num_tx_queues 114 (netdev->num_tx_queues + IXGBE_NUM_RX_QUEUES) * \ 118 (sizeof(((struct ixgbe_adapter *)0)->stats.pxonrxc) + \ 119 sizeof(((struct ixgbe_adapter *)0)->stats.pxontxc) + \ 120 sizeof(((struct ixgbe_adapter *)0)->stats.pxoffrxc) + \ 121 sizeof(((struct ixgbe_adapter *)0)->stats.pxofftxc)) \ [all …]
|