Home
last modified time | relevance | path

Searched +full:mac +full:- +full:wol (Results 1 – 25 of 198) sorted by relevance

12345678

/linux-6.14.4/drivers/net/phy/
Ddp83tc811.c1 // 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 …]
Ddp83822.c1 // SPDX-License-Identifier: GPL-2.0
90 /* WoL Registers */
97 /* WoL bits */
196 struct ethtool_wolinfo wol; member
203 struct ethtool_wolinfo *wol) in dp83822_config_wol() argument
205 struct net_device *ndev = phydev->attached_dev; in dp83822_config_wol()
207 const u8 *mac; in dp83822_config_wol() local
209 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_config_wol()
210 mac = (const u8 *)ndev->dev_addr; in dp83822_config_wol()
212 if (!is_valid_ether_addr(mac)) in dp83822_config_wol()
[all …]
Ddp83869.c1 // 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_config_aneg()
160 if (dp83869->mode != DP83869_RGMII_1000_BASE) in dp83869_config_aneg()
168 struct dp83869_private *dp83869 = phydev->priv; in dp83869_read_status()
172 if (dp83869->mode == DP83869_RGMII_1000_BASE) in dp83869_read_status()
179 if (dp83869->mode == DP83869_RGMII_100_BASE) { in dp83869_read_status()
180 if (phydev->link) { in dp83869_read_status()
181 phydev->speed = SPEED_100; in dp83869_read_status()
[all …]
Ddp83867.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/nvmem-consumer.h>
19 #include <dt-bindings/net/ti-dp83867.h>
210 struct ethtool_wolinfo *wol) in dp83867_set_wol() argument
212 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol()
214 const u8 *mac; in dp83867_set_wol() local
219 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol()
224 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol()
225 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol()
227 if (!is_valid_ether_addr(mac)) in dp83867_set_wol()
[all …]
Dbcm-phy-lib.c1 // 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 …]
Dsmsc.c1 // 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 …]
Dmxl-gpy.c1 // SPDX-License-Identifier: GPL-2.0+
53 #define PHY_IMASK_WOL BIT(15) /* Wake-on-LAN */
54 #define PHY_IMASK_ANC BIT(10) /* Auto-Neg complete */
55 #define PHY_IMASK_ADSC BIT(5) /* Link auto-downspeed detect */
117 /* WoL */
136 * it can safely re-enter loopback mode. Record the time when
156 * T = -2.5761e-11*(N^4) + 9.7332e-8*(N^3) + -1.9165e-4*(N^2) +
157 * 3.0762e-1*(N^1) + -5.2156e1
159 * where [-52.156, 137.961]C and N = [0, 1023].
168 * T = -25761e-12*(N^4) + 97332e-9*(N^3) + -191650e-6*(N^2) +
[all …]
/linux-6.14.4/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c1 // 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 …]
/linux-6.14.4/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support
5 * Copyright (c) 2014-2024 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()
46 if (dev->phydev) { in bcmgenet_get_wol()
47 phy_ethtool_get_wol(dev->phydev, wol); in bcmgenet_get_wol()
48 phy_wolopts = wol->wolopts; in bcmgenet_get_wol()
51 /* MAC is not wake-up capable, return what the PHY does */ in bcmgenet_get_wol()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/net/
Dmediatek-dwmac.yaml1 # 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 <[email protected]>
21 - mediatek,mt2712-gmac
22 - mediatek,mt8188-gmac
23 - mediatek,mt8195-gmac
25 - compatible
28 - $ref: snps,dwmac.yaml#
[all …]
Dsnps,dwmac.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Synopsys DesignWare MAC
10 - Alexandre Torgue <[email protected]>
11 - Giuseppe Cavallaro <[email protected]>
12 - Jose Abreu <[email protected]>
23 - snps,dwmac
24 - snps,dwmac-3.40a
25 - snps,dwmac-3.50a
[all …]
/linux-6.14.4/drivers/net/ethernet/intel/e1000e/
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), \
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 …]
/linux-6.14.4/drivers/net/phy/qcom/
Dqcom-phy-lib.c1 // SPDX-License-Identifier: GPL-2.0
60 struct ethtool_wolinfo *wol) in at803x_set_wol() argument
64 if (wol->wolopts & WAKE_MAGIC) { in at803x_set_wol()
65 struct net_device *ndev = phydev->attached_dev; in at803x_set_wol()
66 const u8 *mac; in at803x_set_wol() local
75 return -ENODEV; in at803x_set_wol()
77 mac = (const u8 *)ndev->dev_addr; in at803x_set_wol()
79 if (!is_valid_ether_addr(mac)) in at803x_set_wol()
80 return -EINVAL; in at803x_set_wol()
84 mac[(i * 2) + 1] | (mac[(i * 2)] << 8)); in at803x_set_wol()
[all …]
/linux-6.14.4/drivers/net/ethernet/wangxun/ngbe/
Dngbe_main.c1 // 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 …]
/linux-6.14.4/Documentation/networking/
Dsfp-phylink.rst1 .. 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 …]
/linux-6.14.4/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Need to re-open the interface manually after changing some parameters.
24 #include <linux/dma-mapping.h>
37 "tx-64-frames",
38 "tx-65-127-frames",
39 "tx-128-255-frames",
40 "rx-64-frames",
41 "rx-65-127-frames",
42 "rx-128-255-frames",
43 "tx-bytes-ok",
[all …]
/linux-6.14.4/drivers/net/ethernet/socionext/
Dsni_ave.c1 // 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 …]
/linux-6.14.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2024 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 …]
/linux-6.14.4/drivers/net/ethernet/intel/igb/
Digb_ethtool.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
104 ((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues * \
106 (((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues * \
130 "legacy-rx",
139 struct e1000_hw *hw = &adapter->hw; in igb_get_link_ksettings()
140 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; in igb_get_link_ksettings()
141 struct e1000_sfp_flags *eth_flags = &dev_spec->eth_flags; in igb_get_link_ksettings()
146 status = pm_runtime_suspended(&adapter->pdev->dev) ? in igb_get_link_ksettings()
148 if (hw->phy.media_type == e1000_media_type_copper) { in igb_get_link_ksettings()
[all …]
/linux-6.14.4/Documentation/networking/device_drivers/ethernet/intel/
Digb.rst1 .. SPDX-License-Identifier: GPL-2.0+
8 Copyright(c) 1999-2018 Intel Corporation.
13 - Identifying Your Adapter
14 - Command Line Parameters
15 - Additional Configurations
16 - Support
46 -------
47 :Valid Range: 0-7
49 This parameter adds support for SR-IOV. It causes the driver to spawn up to
76 NOTE: When either SR-IOV mode or VMDq mode is enabled, hardware VLAN filtering
[all …]
/linux-6.14.4/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /* Copyright 2017-2019 NXP */
44 struct enetc_hw *hw = &priv->si->hw; in enetc_get_reglen()
48 len += ARRAY_SIZE(enetc_txbdr_regs) * priv->num_tx_rings; in enetc_get_reglen()
49 len += ARRAY_SIZE(enetc_rxbdr_regs) * priv->num_rx_rings; in enetc_get_reglen()
51 if (hw->port) in enetc_get_reglen()
54 if (hw->port && !!(priv->si->hw_features & ENETC_SI_F_QBU)) in enetc_get_reglen()
66 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs()
76 for (i = 0; i < priv->num_tx_rings; i++) { in enetc_get_regs()
85 for (i = 0; i < priv->num_rx_rings; i++) { in enetc_get_regs()
[all …]
/linux-6.14.4/drivers/net/ethernet/intel/igc/
Digc_ethtool.c1 // 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 …]
/linux-6.14.4/drivers/net/ethernet/atheros/atlx/
Datl2.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 2006 - 2007 Atheros Corporation. All rights reserved.
4 * Copyright(c) 2007 - 2008 Chris Snook <[email protected]>
7 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved.
12 #include <linux/dma-mapping.h>
47 * atl2_pci_tbl - PCI Device ID Table
59 * atl2_sw_init - Initialize general software structures (struct atl2_adapter)
68 struct atl2_hw *hw = &adapter->hw; in atl2_sw_init()
69 struct pci_dev *pdev = adapter->pdev; in atl2_sw_init()
72 hw->vendor_id = pdev->vendor; in atl2_sw_init()
[all …]
/linux-6.14.4/Documentation/netlink/specs/
Dethtool.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
8 uapi-header: linux/ethtool_netlink_generated.h
11 -
12 name: udp-tunnel-type
13 enum-name:
15 entries: [ vxlan, geneve, vxlan-gpe ]
16 enum-cnt-name: __ethtool-udp-tunnel-type-cnt
17 render-max: true
18 -
[all …]
/linux-6.14.4/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-[email protected]
79 * minimum-sized (64b) frames in the receive path.
169 /* This counter is incremented when MAC or VLAN spoof checking is
179 /* This counter is incremented when the HW detects Q-in-Q style VLAN
205 "MAC Loopback test",
223 strscpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); in be_get_drvinfo()
224 if (!memcmp(adapter->fw_ver, adapter->fw_on_flash, FW_VER_LEN)) in be_get_drvinfo()
225 strscpy(drvinfo->fw_version, adapter->fw_ver, in be_get_drvinfo()
[all …]

12345678