Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/
Dmii.c91 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset()
181 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_sset()
193 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_sset()
354 advertise = mii->mdio_read(mii->dev, mii->phy_id, MII_ADVERTISE); in mii_check_media()
437 case MII_ADVERTISE: in generic_mii_ioctl()
Dsungem_phy.c324 adv = sungem_phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
334 sungem_phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg()
479 adv = sungem_phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg()
493 sungem_phy_write(phy, MII_ADVERTISE, adv); in bcm54xx_setup_aneg()
732 sungem_phy_write(phy, MII_ADVERTISE, 0x01e0); in bcm5461_enable_fiber()
755 adv = sungem_phy_read(phy, MII_ADVERTISE); in marvell_setup_aneg()
769 sungem_phy_write(phy, MII_ADVERTISE, adv); in marvell_setup_aneg()
Dmdio.c395 case MII_ADVERTISE: in mdio_mii_ioctl()
400 if (addr == MII_ADVERTISE) in mdio_mii_ioctl()
/linux-4.4.14/drivers/net/ethernet/via/
Dvia-velocity.c723 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode()
735 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode()
797 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
798 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
802 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
803 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
807 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
808 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
812 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
813 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c128 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
145 phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg()
223 int lpa = phy_read(phy, MII_LPA) & phy_read(phy, MII_ADVERTISE); in genmii_read_link()
/linux-4.4.14/include/uapi/linux/
Dmii.h19 #define MII_ADVERTISE 0x04 /* Advertisement control reg */ macro
/linux-4.4.14/drivers/net/phy/
Dat803x.c69 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save()
81 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore()
Dlxt.c177 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
Dphy_device.c826 adv = phy_read(phydev, MII_ADVERTISE); in genphy_config_advert()
836 err = phy_write(phydev, MII_ADVERTISE, adv); in genphy_config_advert()
1064 adv = phy_read(phydev, MII_ADVERTISE); in genphy_read_status()
Dphy.c438 case MII_ADVERTISE: in phy_mii_ioctl()
Dmarvell.c810 adv = phy_read(phydev, MII_ADVERTISE); in marvell_read_status()
/linux-4.4.14/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()
Dt3_hw.c414 return t3_mdio_write(phy, MDIO_DEVAD_NONE, MII_ADVERTISE, val); in t3_phy_advertise()
437 return t3_mdio_write(phy, MDIO_DEVAD_NONE, MII_ADVERTISE, val); in t3_phy_advertise_fiber()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c365 ret_val = atl1e_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1e_phy_setup_autoneg_adv()
635 err = atl1e_write_phy_reg(hw, MII_ADVERTISE, hw->mii_autoneg_adv_reg); in atl1e_restart_autoneg()
Datl1e_main.c2119 MII_ADVERTISE, mii_advertise_data) != 0) || in atl1e_suspend()
/linux-4.4.14/drivers/net/ethernet/dlink/
Ddl2k.c1464 negotiate = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_get_media()
1547 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media()
1562 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media()
1592 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media()
1691 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media_pcs()
1699 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media_pcs()
1723 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media_pcs()
Dsundance.c612 np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE); in sundance_probe1()
673 mdio_write (dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising | 0x0400); in sundance_probe1()
1472 MII_ADVERTISE); in netdev_error()
/linux-4.4.14/drivers/net/usb/
Dasix_devices.c250 asix_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in ax88172_bind()
362 asix_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in ax88772_reset()
651 asix_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in ax88178_reset()
Dmcs7830.c271 ret = mcs7830_write_phy(dev, MII_ADVERTISE, MCS7830_MII_ADVERTISE); in mcs7830_set_autoneg()
Dsr9700.c369 sr_mdio_write(netdev, mii->phy_id, MII_ADVERTISE, ADVERTISE_ALL | in sr9700_bind()
Ddm9601.c427 dm9601_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in dm9601_bind()
Dsr9800.c562 sr_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in sr9800_set_default_mode()
Dsmsc95xx.c574 lcladv = smsc95xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc95xx_link_reset()
856 smsc95xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in smsc95xx_phy_initialize()
Dr8152.c2819 anar = r8152_mdio_read(tp, MII_ADVERTISE); in rtl8152_set_speed()
2884 r8152_mdio_write(tp, MII_ADVERTISE, anar); in rtl8152_set_speed()
3220 anar = r8152_mdio_read(tp, MII_ADVERTISE); in r8152b_enable_fc()
3222 r8152_mdio_write(tp, MII_ADVERTISE, anar); in r8152b_enable_fc()
Dsmsc75xx.c651 lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc75xx_link_reset()
843 smsc75xx_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in smsc75xx_phy_initialize()
Dlan78xx.c890 ladv = phy_read(phydev, MII_ADVERTISE); in lan78xx_link_reset()
/linux-4.4.14/drivers/net/cris/
Deth_v10.c643 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, MII_ADVERTISE); in generic_check_speed()
725 MII_ADVERTISE); in e100_negotiate()
766 e100_set_mdio_reg(dev, np->mii_if.phy_id, MII_ADVERTISE, data); in e100_negotiate()
838 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, MII_ADVERTISE); in generic_check_duplex()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dmv88e1xxx.c227 (void) simple_mdio_write(phy, MII_ADVERTISE, val); in mv88e1xxx_advertise()
/linux-4.4.14/drivers/net/ethernet/smsc/
Dsmc911x.h876 #define SMC_GET_PHY_MII_ADV(lp,phy,x) SMC_GET_MII( (lp), MII_ADVERTISE, phy, x )
877 #define SMC_SET_PHY_MII_ADV(lp,phy,x) SMC_SET_MII( (lp), MII_ADVERTISE, phy, x )
Dsmc91x.c1116 smc_phy_write(dev, phyaddr, MII_ADVERTISE, my_ad_caps); in smc_phy_configure()
1124 status = smc_phy_read(dev, phyaddr, MII_ADVERTISE); in smc_phy_configure()
Depic100.c455 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one()
Dsmsc9420.c1100 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc9420_phy_update_flowcontrol()
Dsmsc911x.c913 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
/linux-4.4.14/drivers/net/ethernet/adaptec/
Dstarfire.c818 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one()
998 np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_open()
1080 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex()
1603 reg4 = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_media_change()
/linux-4.4.14/drivers/net/ethernet/sis/
Dsis190.c966 adv = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_phy_task()
1721 val = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_set_speed_auto()
1725 mdio_write(ioaddr, phy_id, MII_ADVERTISE, (val & ADVERTISE_SLCT) | in sis190_set_speed_auto()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c1426 reg = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in phy_init()
1430 if (mii_rw(dev, np->phyaddr, MII_ADVERTISE, reg)) { in phy_init()
1516 mii_rw(dev, np->phyaddr, MII_ADVERTISE, reg); in phy_init()
3365 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_update_linkspeed()
4295 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_get_settings()
4392 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_settings()
4406 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_settings()
4436 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_settings()
4455 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_settings()
4732 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_pauseparam()
[all …]
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dnatsemi.c760 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media()
1153 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup()
1157 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup()
3093 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl()
3100 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dmedia.c472 mii_advert = tulip_mdio_read (dev, phy, MII_ADVERTISE); in tulip_find_mii()
Dwinbond-840.c450 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in w840_probe1()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunhme.c1057 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_tcvr_reset()
1311 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_begin_auto_negotiation()
1331 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_begin_auto_negotiation()
1741 hp->sw_advertise = happy_meal_tcvr_read(hp, tregs, MII_ADVERTISE); in happy_meal_set_initial_advertisement()
1763 happy_meal_tcvr_write(hp, tregs, MII_ADVERTISE, hp->sw_advertise); in happy_meal_set_initial_advertisement()
Dcassini.c936 cas_phy_write(cp, MII_ADVERTISE, in cas_phy_init()
937 cas_phy_read(cp, MII_ADVERTISE) | in cas_phy_init()
Dniu.c1109 err = mii_read(np, np->phy_addr, MII_ADVERTISE); in link_status_mii()
1229 err = mii_read(np, np->phy_addr, MII_ADVERTISE); in link_status_1g_rgmii()
1792 err = mii_write(np, np->phy_addr, MII_ADVERTISE, adv); in mii_init_common()
/linux-4.4.14/drivers/net/ethernet/
Djme.c119 MII_ADVERTISE, ADVERTISE_ALL | in jme_reset_phy_processor()
2560 val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); in jme_get_pauseparam()
2599 val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); in jme_set_pauseparam()
2609 MII_ADVERTISE, val); in jme_set_pauseparam()
Dfealnx.c653 mdio_write(dev, np->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in fealnx_init_one()
/linux-4.4.14/drivers/net/ethernet/intel/
De100.c993 MII_ADVERTISE); in mdio_ctrl_phy_82552_v()
1034 case MII_ADVERTISE: in mdio_ctrl_phy_mii_emulated()
1531 u16 advert = mdio_read(netdev, nic->mii.phy_id, MII_ADVERTISE); in e100_phy_init()
1538 mdio_write(netdev, nic->mii.phy_id, MII_ADVERTISE, advert); in e100_phy_init()
/linux-4.4.14/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c929 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c498 if (atl1c_write_phy_reg(hw, MII_ADVERTISE, mii_adv_data) != 0 || in atl1c_phy_setup_adv()
/linux-4.4.14/drivers/net/ethernet/amd/
Damd8111e.c199 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy()
223 amd8111e_mdio_write(dev, lp->ext_phy_addr, MII_ADVERTISE, tmp); in amd8111e_set_ext_phy()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dphy.c945 ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_autoneg_adv_reg); in e1000_phy_setup_autoneg()
1065 ret_val = e1e_wphy(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in e1000_phy_setup_autoneg()
Dmac.c1073 ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_nway_adv_reg); in e1000e_config_fc_after_link_up()
Dnetdev.c4963 ret_val |= e1e_rphy(hw, MII_ADVERTISE, &phy->advertise); in e1000_phy_read_status()
6027 case MII_ADVERTISE: in e1000_mii_ioctl()
/linux-4.4.14/drivers/net/ethernet/micrel/
Dks8851.c1287 case MII_ADVERTISE: in ks8851_phy_reg()
Dks8851_mll.c1370 case MII_ADVERTISE: in ks_phy_reg()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Db44.c473 if ((err = b44_writephy(bp, MII_ADVERTISE, adv)) != 0) in b44_setup_phy()
582 !b44_readphy(bp, MII_ADVERTISE, &local_adv) && in b44_check_phy()
Dtg3.c1673 if (!tg3_readphy(tp, MII_ADVERTISE, &reg)) in tg3_phy_gather_ump_data()
3090 tg3_writephy(tp, MII_ADVERTISE, 0); in tg3_power_down_phy()
4325 err = tg3_writephy(tp, MII_ADVERTISE, new_adv); in tg3_phy_autoneg_cfg()
4455 tg3_writephy(tp, MII_ADVERTISE, ADVERTISE_ALL); in tg3_phy_copper_begin()
4554 err = tg3_readphy(tp, MII_ADVERTISE, &val); in tg3_phy_pull_config()
4576 err = tg3_readphy(tp, MII_ADVERTISE, &val); in tg3_phy_pull_config()
4649 if (tg3_readphy(tp, MII_ADVERTISE, lcladv)) in tg3_phy_copper_an_config_ok()
5881 err |= tg3_readphy(tp, MII_ADVERTISE, &adv); in tg3_setup_fiber_mii_phy()
5891 tg3_writephy(tp, MII_ADVERTISE, newadv); in tg3_setup_fiber_mii_phy()
5920 err |= tg3_readphy(tp, MII_ADVERTISE, &adv); in tg3_setup_fiber_mii_phy()
[all …]
Dbcm63xx_enet.c2089 port->phy_id, MII_ADVERTISE); in swphy_poll_timer()
Dbnx2.c2190 bp->mii_adv = MII_ADVERTISE + 0x10; in bnx2_init_5709s_phy()
2401 bp->mii_adv = MII_ADVERTISE; in bnx2_init_phy()
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/
Datl2.c1067 atl2_write_phy_reg(hw, MII_ADVERTISE, hw->mii_autoneg_adv_reg); in atl2_phy_config()
2632 ret_val = atl2_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl2_phy_setup_autoneg_adv()
Datl1.c772 ret_val = atl1_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1_phy_setup_autoneg_adv()
2587 atl1_write_phy_reg(hw, MII_ADVERTISE, hw->mii_autoneg_adv_reg); in atl1_phy_config()
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
Dhw.c751 if (alx_write_phy_reg(hw, MII_ADVERTISE, adv) || in alx_setup_speed_duplex()
/linux-4.4.14/drivers/net/ethernet/tundra/
Dtsi108_eth.c280 advert = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_ADVERTISE); in mii_speed()
/linux-4.4.14/drivers/net/ethernet/packetengines/
Dhamachi.c756 hmp->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in hamachi_init_one()
/linux-4.4.14/drivers/net/ethernet/3com/
D3c59x.c1431 vp->advertising = mdio_read(dev, vp->phys[0], MII_ADVERTISE); in vortex_probe1()
/linux-4.4.14/drivers/net/ethernet/realtek/
Dr8169.c1924 auto_nego = rtl_readphy(tp, MII_ADVERTISE); in rtl8169_set_speed_xmii()
1957 rtl_writephy(tp, MII_ADVERTISE, auto_nego); in rtl8169_set_speed_xmii()
/linux-4.4.14/drivers/net/ethernet/agere/
Det131x.c2839 et131x_mii_read(adapter, MII_ADVERTISE, &tmp); in et131x_get_regs()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar.c1847 phy_write(tbiphy, MII_ADVERTISE, in gfar_configure_serdes()
/linux-4.4.14/drivers/s390/net/
Dqeth_core_main.c4440 case MII_ADVERTISE: /* Advertisement control reg */ in qeth_mdio_read()