/linux-6.12.1/drivers/net/ |
D | mii.c | 86 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset() 172 advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_get_link_ksettings() 272 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_sset() 284 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_sset() 368 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_set_link_ksettings() 381 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_set_link_ksettings() 543 advertise = mii->mdio_read(mii->dev, mii->phy_id, MII_ADVERTISE); in mii_check_media() 626 case MII_ADVERTISE: in generic_mii_ioctl()
|
D | sungem_phy.c | 321 adv = sungem_phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg() 331 sungem_phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg() 477 adv = sungem_phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg() 491 sungem_phy_write(phy, MII_ADVERTISE, adv); in bcm54xx_setup_aneg() 730 sungem_phy_write(phy, MII_ADVERTISE, 0x01e0); in bcm5461_enable_fiber() 753 adv = sungem_phy_read(phy, MII_ADVERTISE); in marvell_setup_aneg() 767 sungem_phy_write(phy, MII_ADVERTISE, adv); in marvell_setup_aneg()
|
D | mdio.c | 570 case MII_ADVERTISE: in mdio_mii_ioctl() 575 if (addr == MII_ADVERTISE) in mdio_mii_ioctl()
|
/linux-6.12.1/drivers/net/ethernet/via/ |
D | via-velocity.c | 725 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode() 737 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode() 799 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 800 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 804 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 805 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 809 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 810 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 814 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 815 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() [all …]
|
/linux-6.12.1/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 129 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg() 146 phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg() 224 int lpa = phy_read(phy, MII_LPA) & phy_read(phy, MII_ADVERTISE); in genmii_read_link()
|
/linux-6.12.1/drivers/net/phy/qcom/ |
D | at803x.c | 194 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save() 206 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore() 480 return phy_modify(phydev, MII_ADVERTISE, MDIO_AN_CTRL1_XNP, 0); in at803x_config_init() 632 phy_write(phydev, MII_ADVERTISE, ADVERTISE_CSMA); in at803x_cable_test_autoneg()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 182 MII_ADVERTISE, &adv); in vsc8211_get_link_status() 241 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_ADVERTISE, in vsc8211_get_link_status_fiber()
|
/linux-6.12.1/include/uapi/linux/ |
D | mii.h | 20 #define MII_ADVERTISE 0x04 /* Advertisement control reg */ macro
|
/linux-6.12.1/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1505 negotiate = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_get_media() 1588 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media() 1603 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media() 1633 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media() 1732 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media_pcs() 1740 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media_pcs() 1764 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media_pcs()
|
/linux-6.12.1/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 352 ret_val = atl1e_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1e_phy_setup_autoneg_adv() 622 err = atl1e_write_phy_reg(hw, MII_ADVERTISE, hw->mii_autoneg_adv_reg); in atl1e_restart_autoneg()
|
/linux-6.12.1/drivers/net/dsa/mv88e6xxx/ |
D | serdes.h | 64 #define MV88E6390_SGMII_ADVERTISE (0x2000 + MII_ADVERTISE)
|
D | pcs-6352.c | 204 err = __mdiodev_modify_changed(&mpcs->mdio, MII_ADVERTISE, 0xffff, adv); in marvell_c22_pcs_config()
|
/linux-6.12.1/drivers/net/phy/ |
D | lxt.c | 233 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
|
D | marvell-88x2222.c | 43 #define MV_1GBX_ADVERTISE (0x2000 + MII_ADVERTISE)
|
D | phylink.c | 2929 case MII_ADVERTISE: in phylink_phy_read() 2934 if (reg == MII_ADVERTISE) in phylink_phy_read() 2971 case MII_ADVERTISE: in phylink_phy_write() 2976 if (reg == MII_ADVERTISE) in phylink_phy_write() 3803 MII_ADVERTISE, 0xffff, adv); in phylink_mii_c22_pcs_config()
|
/linux-6.12.1/drivers/net/pcs/ |
D | pcs-lynx.c | 164 return mdiobus_c45_write(bus, addr, MDIO_MMD_VEND2, MII_ADVERTISE, in lynx_pcs_config_usxgmii()
|
D | pcs-xpcs.c | 786 MII_ADVERTISE, 0xffff, adv); in xpcs_config_aneg_c37_1000basex() 1022 duplex = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_ADVERTISE); in xpcs_get_state_c37_sgmii()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88e1xxx.c | 228 (void) simple_mdio_write(phy, MII_ADVERTISE, val); in mv88e1xxx_advertise()
|
/linux-6.12.1/drivers/net/ethernet/adaptec/ |
D | starfire.c | 796 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one() 978 np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_open() 1060 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex() 1627 reg4 = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_media_change()
|
/linux-6.12.1/drivers/net/ethernet/sun/ |
D | sunhme.c | 620 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_begin_auto_negotiation() 640 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_begin_auto_negotiation() 1053 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_tcvr_reset() 1561 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_set_initial_advertisement() 1583 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_set_initial_advertisement()
|
/linux-6.12.1/drivers/net/usb/ |
D | sr9700.c | 380 sr_mdio_write(netdev, mii->phy_id, MII_ADVERTISE, ADVERTISE_ALL | in sr9700_bind()
|
D | mcs7830.c | 267 ret = mcs7830_write_phy(dev, MII_ADVERTISE, MCS7830_MII_ADVERTISE); in mcs7830_set_autoneg()
|
/linux-6.12.1/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 1428 reg = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in phy_init() 1432 if (mii_rw(dev, np->phyaddr, MII_ADVERTISE, reg)) { in phy_init() 1518 mii_rw(dev, np->phyaddr, MII_ADVERTISE, reg); in phy_init() 3447 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_update_linkspeed() 4378 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_get_link_ksettings() 4483 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_link_ksettings() 4497 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_link_ksettings() 4527 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_link_ksettings() 4546 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_link_ksettings() 4841 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_pauseparam() [all …]
|
/linux-6.12.1/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 762 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media() 1156 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup() 1160 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup() 3103 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl() 3110 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl()
|
/linux-6.12.1/drivers/net/ethernet/sis/ |
D | sis190.c | 969 adv = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_phy_task() 1733 val = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_set_speed_auto() 1737 mdio_write(ioaddr, phy_id, MII_ADVERTISE, (val & ADVERTISE_SLCT) | in sis190_set_speed_auto()
|