Searched +full:asym +full:- +full:pause (Results 1 – 17 of 17) sorted by relevance
2 ------------------------------5 normal MDIO-managed PHY device. For those situations, a Device Tree8 Such a fixed link situation is described by creating a 'fixed-link'9 sub-node of the Ethernet MAC device node, with the following14 * 'full-duplex' (boolean, optional), to indicate that full duplex is16 * 'pause' (boolean, optional), to indicate that pause should be18 * 'asym-pause' (boolean, optional), to indicate that asym_pause should25 fixed-link {27 full-duplex;
1 // SPDX-License-Identifier: GPL-2.0+3 * Fixed-Link phy19 int ofnode = phydev->addr; in fixedphy_probe()22 /* check for mandatory properties within fixed-link node */ in fixedphy_probe()23 val = fdt_getprop_u32_default_node(gd->fdt_blob, in fixedphy_probe()26 printf("ERROR: no/invalid speed given in fixed-link node!"); in fixedphy_probe()27 return -EINVAL; in fixedphy_probe()32 return -ENOMEM; in fixedphy_probe()35 phydev->priv = priv; in fixedphy_probe()37 priv->link_speed = val; in fixedphy_probe()[all …]
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */3 * linux/mii.h: definitions for MII-compatible transceivers23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */24 #define MII_STAT1000 0x0a /* 1000BASE-T status */30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */63 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */64 #define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */[all …]
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */3 * linux/mii.h: definitions for MII-compatible transceivers20 #define MII_CTRL1000 0x09 /* 1000BASE-T control */21 #define MII_STAT1000 0x0a /* 1000BASE-T status */27 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */52 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */55 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */57 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */60 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */61 #define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */[all …]
1 // SPDX-License-Identifier: GPL-2.0+2 // Copyright (c) 2016-2017 Hisilicon Limited.46 struct hclge_dev *hdev = bus->priv; in hclge_mdio_write()50 if (test_bit(HCLGE_COMM_STATE_CMD_DISABLE, &hdev->hw.hw.comm_state)) in hclge_mdio_write()51 return -EBUSY; in hclge_mdio_write()57 hnae3_set_field(mdio_cmd->phyid, HCLGE_MDIO_PHYID_M, in hclge_mdio_write()59 hnae3_set_field(mdio_cmd->phyad, HCLGE_MDIO_PHYREG_M, in hclge_mdio_write()62 hnae3_set_bit(mdio_cmd->ctrl_bit, HCLGE_MDIO_CTRL_START_B, 1); in hclge_mdio_write()63 hnae3_set_field(mdio_cmd->ctrl_bit, HCLGE_MDIO_CTRL_ST_M, in hclge_mdio_write()65 hnae3_set_field(mdio_cmd->ctrl_bit, HCLGE_MDIO_CTRL_OP_M, in hclge_mdio_write()[all …]
1 # SPDX-License-Identifier: GPL-2.03 ---4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml#5 $schema: http://devicetree.org/meta-schemas/core.yaml#10 - David S. Miller <davem@davemloft.net>20 local-mac-address:23 $ref: /schemas/types.yaml#/definitions/uint8-array27 mac-address:32 local-mac-address property.33 $ref: /schemas/types.yaml#/definitions/uint8-array[all …]
2 # SPDX-License-Identifier: GPL-2.013 # +----+ .253 +----+ .253 +----+14 # | h1 |-------------------| r1 |-------------------| h2 |15 # +----+ .1 +----+ .2 +----+42 # .253 +----+ .25343 # +----| r1 |----+44 # | +----+ |45 # +----+ | | +----+46 # | h1 |--------------+ +--------------| h2 |47 # +----+ .1 | | .2 +----+[all …]
1 // SPDX-License-Identifier: GPL-2.0-only30 * ethernet-phy-idAAAA.BBBB */66 device_set_node(&mdiodev->dev, fwnode); in of_mdiobus_register_device()71 device_set_node(&mdiodev->dev, NULL); in of_mdiobus_register_device()77 dev_dbg(&mdio->dev, "registered mdio device %pOFn at address %i\n", in of_mdiobus_register_device()89 { .compatible = "brcm,40nm-ephy" },99 { .compatible = "moxa,moxart-rtl8201cp", },105 * o Compatible string of "ethernet-phy-idX.X"106 * o Compatible string of "ethernet-phy-ieee802.3-c45"107 * o Compatible string of "ethernet-phy-ieee802.3-c22"[all …]
1 // SPDX-License-Identifier: GPL-2.0+32 #include <linux/pse-pd/pse.h>240 put_device(&phydev->mdio.dev); in phy_device_free()254 fwnode_handle_put(dev->fwnode); in phy_device_release()273 struct device_driver *drv = phydev->mdio.dev.driver; in mdio_bus_phy_may_suspend()275 struct net_device *netdev = phydev->attached_dev; in mdio_bus_phy_may_suspend()277 if (!drv || !phydrv->suspend) in mdio_bus_phy_may_suspend()281 * suspended as part of a prior call to phy_disconnect() -> in mdio_bus_phy_may_suspend()282 * phy_detach() -> phy_suspend() because the parent netdev might be the in mdio_bus_phy_may_suspend()288 if (netdev->wol_enabled) in mdio_bus_phy_may_suspend()[all …]
1 // SPDX-License-Identifier: GPL-2.04 * technologies such as SFP cages where the PHY is hot-pluggable.44 * struct phylink - internal data type for phylink60 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) \109 netdev_dbg((pl)->netdev, fmt, ##__VA_ARGS__); \[all …]
1 // SPDX-License-Identifier: GPL-2.0-only7 * (c) 2002-2007, Benjamin Herrenscmidt (benh@kernel.crashing.org)10 * - Add support for PHYs that provide an IRQ line11 * - Eventually moved the entire polling state machine in14 * - On LXT971 & BCM5201, Apple uses some chip specific regs17 * - Apple has some additional power management code for some49 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read()54 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write()59 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read()64 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write()[all …]
374 /* Size = tx-packet(1522) + IPG(12) + SOF(8) + 64(Pause) + IPG(12) + SOF(8) +375 * rx-packet(1522) + delay-of-link(64)490 /* re-send assert msg if SW no response */522 /* bit23: adv Pause */524 /* bit22: adv Asym Pause */
1 // SPDX-License-Identifier: GPL-2.016 #include <linux/platform_data/microchip-ksz.h>47 regs = dev->info->regs; in ksz8_ind_write8()49 mutex_lock(&dev->alu_mutex); in ksz8_ind_write8()56 mutex_unlock(&dev->alu_mutex); in ksz8_ind_write8()113 if (!dsa_is_cpu_port(dev->ds, port)) in ksz8_change_mtu()118 switch (dev->chip_id) { in ksz8_change_mtu()127 return -EOPNOTSUPP; in ksz8_change_mtu()172 masks = dev->info->masks; in ksz8_r_mib_cnt()173 regs = dev->info->regs; in ksz8_r_mib_cnt()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only4 * Copyright (C) 2014-2019 aQuantia Corporation5 * Copyright (C) 2019-2020 Marvell International Ltd.54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()58 rss_params = &cfg->aq_rss; in aq_nic_rss_init()60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init()61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init()62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init()64 for (i = rss_params->indirection_table_size; i--;) in aq_nic_rss_init()65 rss_params->indirection_table[i] = i & (num_rss_queues - 1); in aq_nic_rss_init()[all …]
1 // SPDX-License-Identifier: GPL-2.04 * Copyright (C) 2014-2019 Renesas Electronics Corporation6 * Copyright (C) 2015-2016 Cogent Embedded, Inc. <source@cogentembedded.com>14 #include <linux/dma-mapping.h>66 return -ETIMEDOUT; in ravb_wait()98 switch (priv->speed) { in ravb_set_rate_gbeth()115 switch (priv->speed) { in ravb_set_rate_rcar()127 u32 reserve = (unsigned long)skb->data & (RAVB_ALIGN - 1); in ravb_set_buffer_align()130 skb_reserve(skb, RAVB_ALIGN - reserve); in ravb_set_buffer_align()164 ravb_modify(priv->ndev, PIR, mask, set ? mask : 0); in ravb_mdio_ctrl()[all …]
1 /* Copyright 2008-2013 Broadcom Corporation8 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL").43 #define I2C_WA_PWR_ITER (I2C_WA_RETRY_CNT - 1)205 (_phy)->def_md_devad, \211 (_phy)->def_md_devad, \239 * bnx2x_check_lfa - This function checks if link reinitialization is required,251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa()254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa()257 /* NOTE: must be first condition checked - in bnx2x_check_lfa()262 REG_WR(bp, params->lfa_base + in bnx2x_check_lfa()[all …]
... --------------------- ...