Home
last modified time | relevance | path

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

123456

/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A 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/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet_wol.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support
5 * Copyright (c) 2014-2025 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/drivers/net/phy/
H A 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 …]
H A Ddp83822.c1 // SPDX-License-Identifier: GPL-2.0
92 /* WoL Registers */
99 /* WoL bits */
204 struct ethtool_wolinfo wol; member
213 struct ethtool_wolinfo *wol) in dp83822_config_wol() argument
215 struct net_device *ndev = phydev->attached_dev; in dp83822_config_wol()
217 const u8 *mac; in dp83822_config_wol() local
219 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_config_wol()
220 mac = (const u8 *)ndev->dev_addr; in dp83822_config_wol()
222 if (!is_valid_ether_addr(mac)) in dp83822_config_wol()
[all …]
H A 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()
162 /* When auto-negotiation is disabled (forced mode), the PHY's in lan87xx_config_aneg()
[all …]
H A 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/Documentation/devicetree/bindings/net/
H A 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 <biao.huang@mediatek.com>
21 - mediatek,mt2712-gmac
22 - mediatek,mt8188-gmac
23 - mediatek,mt8195-gmac
25 - compatible
28 - $ref: snps,dwmac.yaml#
[all …]
/linux/drivers/net/phy/qcom/
H A 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/drivers/net/ethernet/intel/e1000e/
H A 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/drivers/net/ethernet/intel/ixgbe/
H A 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/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2_utils_fw.c1 // SPDX-License-Identifier: GPL-2.0-only
65 BUILD_BUG_ON_MSG((sizeof(((struct fw_interface_out *)0)->ITEM) % \
70 sizeof(((struct fw_interface_out *)0)->ITEM) / sizeof(u32),\
85 return -ETIME; in hw_atl2_shared_buffer_read_block()
96 return -ETIME; in hw_atl2_shared_buffer_read_block()
155 link_options->rate_10G = !!(speed & AQ_NIC_RATE_10G); in a2_link_speed_mask2fw()
156 link_options->rate_5G = !!(speed & AQ_NIC_RATE_5G); in a2_link_speed_mask2fw()
157 link_options->rate_N5G = link_options->rate_5G; in a2_link_speed_mask2fw()
158 link_options->rate_2P5G = !!(speed & AQ_NIC_RATE_2G5); in a2_link_speed_mask2fw()
159 link_options->rate_N2P5G = link_options->rate_2P5G; in a2_link_speed_mask2fw()
[all …]
/linux/Documentation/networking/
H A 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/drivers/net/ethernet/intel/igb/
H A 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/Documentation/networking/device_drivers/ethernet/intel/
H A 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/drivers/net/ethernet/atheros/atlx/
H A 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 <csnook@redhat.com>
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/drivers/net/usb/
H A Dlan78xx.c1 // SPDX-License-Identifier: GPL-2.0+
123 #define LAN78XX_TSO_SIZE(dev) ((dev)->tx_urb_size - TX_SKB_MIN_LEN)
139 /* time to wait for MAC or FCT to stop (jiffies) */
142 /* time to wait between polling MAC or FCT state (ms) */
193 "RX 65 - 127 Byte Frames",
194 "RX 128 - 255 Byte Frames",
195 "RX 256 - 511 Bytes Frames",
196 "RX 512 - 1023 Byte Frames",
197 "RX 1024 - 1518 Byte Frames",
217 "TX 65 - 127 Byte Frames",
[all …]
H A Dpegasus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 1999-2021 Petko Manolov (petkan@nucleusys.com)
75 MODULE_PARM_DESC(loopback, "Enable MAC loopback mode (bit 0)");
80 static int msg_level = -1;
91 struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; in async_ctrl_callback()
92 int status = urb->status; in async_ctrl_callback()
95 dev_dbg(&urb->dev->dev, "%s failed with %d", __func__, status); in async_ctrl_callback()
102 return usb_control_msg_recv(pegasus->usb, 0, PEGASUS_REQ_GET_REGS, in get_registers()
112 ret = usb_control_msg_send(pegasus->usb, 0, PEGASUS_REQ_SET_REGS, in set_registers()
116 netif_dbg(pegasus, drv, pegasus->net, "%s failed with %d\n", __func__, ret); in set_registers()
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsungem.c1 // SPDX-License-Identifier: GPL-2.0
7 * Support for Apple GMAC and assorted PHYs, WOL, Power Management
30 #include <linux/dma-mapping.h>
93 * they only support 10/100 speeds. -DaveM
96 * the BCM54xx PHYs. -BenH
127 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_read()
129 while (--limit) { in __sungem_phy_read()
130 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_read()
151 return __sungem_phy_read(gp, gp->mii_phy_addr, reg); in sungem_phy_read()
165 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_write()
[all …]
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-drivers@emulex.com
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 …]
/linux/drivers/net/ethernet/sis/
H A Dsis900.c17 SiS 7014 Single Chip 100BASE-TX/10BASE-T Physical Layer Solution,
25 Rev 1.08.05 Jun. 6 2002 Mufasa Yang bug fix for read_eeprom & Tx descriptor over-boundary
28 Rev 1.08.02 Nov. 30 2001 Hui-Fen Hsu workaround for EDB & bug fix for dhcp problem
29 Rev 1.08.01 Aug. 25 2001 Hui-Fen Hsu update for 630ET & workaround for ICS1893 PHY
30 Rev 1.08.00 Jun. 11 2001 Hui-Fen Hsu workaround for RTL8201 PHY and some bug fix
31 …Rev 1.07.11 Apr. 2 2001 Hui-Fen Hsu updates PCI drivers to use the new pci_set_dma_mask for kerne…
32 Rev 1.07.10 Mar. 1 2001 Hui-Fen Hsu <hfhsu@sis.com.tw> some bug fix & 635M/B support
34 Rev 1.07.08 Jan. 8 2001 Lei-Chun Chang added RTL8201 PHY support
35 …Rev 1.07.07 Nov. 29 2000 Lei-Chun Chang added kernel-doc extractable documentation and 630 workaro…
38 Rev 1.07.04 Sep. 6 2000 Lei-Chun Chang added ICS1893 PHY support
[all …]
/linux/drivers/net/ethernet/marvell/
H A Dskge.h1 /* SPDX-License-Identifier: GPL-2.0 */
133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */
134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */
135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */
178 IS_MAC1 = 1<<21, /* IRQ from MAC 1 */
179 IS_LNK_SYNC_M1 = 1<<20, /* Link Sync Cnt wrap MAC 1 */
180 IS_MAC2 = 1<<19, /* IRQ from MAC 2 */
181 IS_LNK_SYNC_M2 = 1<<18, /* Link Sync Cnt wrap MAC 2 */
221 IS_NO_STAT_M1 = 1<<9, /* No Rx Status from MAC 1 */
222 IS_NO_STAT_M2 = 1<<8, /* No Rx Status from MAC 2 */
[all …]
H A Dsky2.h1 /* SPDX-License-Identifier: GPL-2.0 */
30 /* Yukon-2 */
32 PCI_Y2_PIG_ENA = 1<<31, /* Enable Plug-in-Go (YUKON-2) */
33 PCI_Y2_DLL_DIS = 1<<30, /* Disable PCI DLL (YUKON-2) */
34 PCI_SW_PWR_ON_RST= 1<<30, /* SW Power on Reset (Yukon-EX) */
35 PCI_Y2_PHY2_COMA = 1<<29, /* Set PHY 2 to Coma Mode (YUKON-2) */
36 PCI_Y2_PHY1_COMA = 1<<28, /* Set PHY 1 to Coma Mode (YUKON-2) */
37 PCI_Y2_PHY2_POWD = 1<<27, /* Set PHY 2 to Power Down (YUKON-2) */
38 PCI_Y2_PHY1_POWD = 1<<26, /* Set PHY 1 to Power Down (YUKON-2) */
60 /* PCI_OUR_REG_3 32 bit Our Register 3 (Yukon-ECU only) */
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils_fw2x.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
101 self, self->mbox_addr, in aq_fw2x_init()
102 self->mbox_addr != 0U, in aq_fw2x_init()
106 self, self->rpc_addr, in aq_fw2x_init()
107 self->rpc_addr != 0U, in aq_fw2x_init()
110 err = aq_fw2x_settings_get(self, &self->settings_addr); in aq_fw2x_init()
225 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in aq_fw2x_set_state()
230 aq_fw2x_upd_eee_rate_bits(self, &mpi_state, cfg->eee_speeds); in aq_fw2x_set_state()
[all …]
/linux/arch/powerpc/boot/dts/
H A Dakebono.dts12 /dts-v1/;
17 #address-cells = <2>;
18 #size-cells = <2>;
21 dcr-parent = <&{/cpus/cpu@0}>;
28 #address-cells = <1>;
29 #size-cells = <0>;
35 clock-frequency = <1600000000>; // 1.6 GHz
36 timebase-frequency = <100000000>; // 100Mhz
37 i-cache-line-size = <32>;
38 d-cache-line-size = <32>;
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Broadcom BCM7xxx System Port Ethernet MAC driver
35 if (priv->is_lite && off >= RDMA_STATUS) in rdma_readl()
37 return readl_relaxed(priv->base + SYS_PORT_RDMA_OFFSET + off); in rdma_readl()
42 if (priv->is_lite && off >= RDMA_STATUS) in rdma_writel()
44 writel_relaxed(val, priv->base + SYS_PORT_RDMA_OFFSET + off); in rdma_writel()
49 if (!priv->is_lite) { in tdma_control_bit()
59 /* L2-interrupt masking/unmasking helpers, does automatic saving of the applied
60 * mask in a software copy to avoid CPU_MASK_STATUS reads in hot-paths.
66 priv->irq##which##_mask &= ~(mask); \
[all …]

123456