Home
last modified time | relevance | path

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

123

/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/include/uapi/linux/
Dmii.h20 #define MII_ADVERTISE 0x04 /* Advertisement control reg */ macro
/linux-5.19.10/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-5.19.10/drivers/net/ethernet/dlink/
Ddl2k.c1508 negotiate = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_get_media()
1591 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media()
1606 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media()
1636 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media()
1735 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media_pcs()
1743 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media_pcs()
1767 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media_pcs()
/linux-5.19.10/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-5.19.10/drivers/net/phy/
Dlxt.c233 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
Dat803x.c414 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save()
426 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore()
1060 return phy_modify(phydev, MII_ADVERTISE, MDIO_AN_CTRL1_XNP, 0); in at803x_config_init()
1577 phy_write(phydev, MII_ADVERTISE, ADVERTISE_CSMA); in at803x_cable_test_start()
Dphylink.c2318 case MII_ADVERTISE: in phylink_phy_read()
2323 if (reg == MII_ADVERTISE) in phylink_phy_read()
2360 case MII_ADVERTISE: in phylink_phy_write()
2365 if (reg == MII_ADVERTISE) in phylink_phy_write()
3025 MII_ADVERTISE, 0xffff, adv); in phylink_mii_c22_pcs_config()
Dmarvell-88x2222.c46 #define MV_1GBX_ADVERTISE (0x2000 + MII_ADVERTISE)
Ddp83822.c458 err = phy_modify_changed(phydev, MII_ADVERTISE, in dp83822_config_init()
/linux-5.19.10/drivers/net/dsa/mv88e6xxx/
Dserdes.h54 #define MV88E6390_SGMII_ADVERTISE (0x2000 + MII_ADVERTISE)
/linux-5.19.10/drivers/net/pcs/
Dpcs-lynx.c192 return mdiobus_c45_write(bus, addr, MDIO_MMD_VEND2, MII_ADVERTISE, in lynx_pcs_config_usxgmii()
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb/
Dmv88e1xxx.c228 (void) simple_mdio_write(phy, MII_ADVERTISE, val); in mv88e1xxx_advertise()
/linux-5.19.10/drivers/net/ethernet/smsc/
Dsmc911x.h854 #define SMC_GET_PHY_MII_ADV(lp,phy,x) SMC_GET_MII( (lp), MII_ADVERTISE, phy, x )
855 #define SMC_SET_PHY_MII_ADV(lp,phy,x) SMC_SET_MII( (lp), MII_ADVERTISE, phy, x )
/linux-5.19.10/drivers/net/ethernet/adaptec/
Dstarfire.c804 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one()
986 np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_open()
1068 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex()
1635 reg4 = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_media_change()
/linux-5.19.10/drivers/net/usb/
Dsr9700.c373 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-5.19.10/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-5.19.10/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-5.19.10/drivers/net/ethernet/sun/
Dsunhme.c1014 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_tcvr_reset()
1269 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_begin_auto_negotiation()
1289 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_begin_auto_negotiation()
1697 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_set_initial_advertisement()
1719 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_set_initial_advertisement()
/linux-5.19.10/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