Home
last modified time | relevance | path

Searched refs:MII_ADVERTISE (Results 1 – 25 of 74) sorted by relevance

123

/linux-6.12.1/drivers/net/
Dmii.c86 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()
Dsungem_phy.c321 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()
Dmdio.c570 case MII_ADVERTISE: in mdio_mii_ioctl()
575 if (addr == MII_ADVERTISE) in mdio_mii_ioctl()
/linux-6.12.1/drivers/net/ethernet/via/
Dvia-velocity.c725 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/
Dphy.c129 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/
Dat803x.c194 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/
Dvsc8211.c182 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/
Dmii.h20 #define MII_ADVERTISE 0x04 /* Advertisement control reg */ macro
/linux-6.12.1/drivers/net/ethernet/dlink/
Ddl2k.c1505 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/
Datl1e_hw.c352 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/
Dserdes.h64 #define MV88E6390_SGMII_ADVERTISE (0x2000 + MII_ADVERTISE)
Dpcs-6352.c204 err = __mdiodev_modify_changed(&mpcs->mdio, MII_ADVERTISE, 0xffff, adv); in marvell_c22_pcs_config()
/linux-6.12.1/drivers/net/phy/
Dlxt.c233 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
Dmarvell-88x2222.c43 #define MV_1GBX_ADVERTISE (0x2000 + MII_ADVERTISE)
Dphylink.c2929 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/
Dpcs-lynx.c164 return mdiobus_c45_write(bus, addr, MDIO_MMD_VEND2, MII_ADVERTISE, in lynx_pcs_config_usxgmii()
Dpcs-xpcs.c786 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/
Dmv88e1xxx.c228 (void) simple_mdio_write(phy, MII_ADVERTISE, val); in mv88e1xxx_advertise()
/linux-6.12.1/drivers/net/ethernet/adaptec/
Dstarfire.c796 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/
Dsunhme.c620 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/
Dsr9700.c380 sr_mdio_write(netdev, mii->phy_id, MII_ADVERTISE, ADVERTISE_ALL | in sr9700_bind()
Dmcs7830.c267 ret = mcs7830_write_phy(dev, MII_ADVERTISE, MCS7830_MII_ADVERTISE); in mcs7830_set_autoneg()
/linux-6.12.1/drivers/net/ethernet/nvidia/
Dforcedeth.c1428 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/
Dnatsemi.c762 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/
Dsis190.c969 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()

123