/linux-4.1.27/drivers/net/ |
D | mii.c | 91 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()
|
D | sungem_phy.c | 324 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()
|
D | mdio.c | 395 case MII_ADVERTISE: in mdio_mii_ioctl() 400 if (addr == MII_ADVERTISE) in mdio_mii_ioctl()
|
/linux-4.1.27/drivers/net/ethernet/via/ |
D | via-velocity.c | 731 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode() 743 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode() 805 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 806 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 810 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 811 MII_REG_BITS_ON(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 815 MII_REG_BITS_ON(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 816 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 820 MII_REG_BITS_OFF(ADVERTISE_PAUSE_CAP, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() 821 MII_REG_BITS_OFF(ADVERTISE_PAUSE_ASYM, MII_ADVERTISE, vptr->mac_regs); in set_mii_flow_control() [all …]
|
/linux-4.1.27/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 128 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.1.27/include/uapi/linux/ |
D | mii.h | 19 #define MII_ADVERTISE 0x04 /* Advertisement control reg */ macro
|
/linux-4.1.27/drivers/net/phy/ |
D | at803x.c | 69 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save() 81 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore()
|
D | lxt.c | 177 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
|
D | phy_device.c | 760 adv = phy_read(phydev, MII_ADVERTISE); in genphy_config_advert() 770 err = phy_write(phydev, MII_ADVERTISE, adv); in genphy_config_advert() 998 adv = phy_read(phydev, MII_ADVERTISE); in genphy_read_status()
|
D | phy.c | 410 case MII_ADVERTISE: in phy_mii_ioctl()
|
D | marvell.c | 762 adv = phy_read(phydev, MII_ADVERTISE); in marvell_read_status()
|
/linux-4.1.27/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()
|
D | t3_hw.c | 414 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.1.27/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1417 negotiate = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_get_media() 1500 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media() 1515 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media() 1545 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media() 1644 anar = mii_read (dev, phy_addr, MII_ADVERTISE) & in mii_set_media_pcs() 1652 mii_write (dev, phy_addr, MII_ADVERTISE, anar); in mii_set_media_pcs() 1676 mii_write (dev, phy_addr, MII_ADVERTISE, 0); in mii_set_media_pcs()
|
D | sundance.c | 612 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.1.27/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 365 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()
|
D | atl1e_main.c | 2119 MII_ADVERTISE, mii_advertise_data) != 0) || in atl1e_suspend()
|
/linux-4.1.27/drivers/net/usb/ |
D | asix_devices.c | 250 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()
|
D | sr9700.c | 369 sr_mdio_write(netdev, mii->phy_id, MII_ADVERTISE, ADVERTISE_ALL | in sr9700_bind()
|
D | mcs7830.c | 271 ret = mcs7830_write_phy(dev, MII_ADVERTISE, MCS7830_MII_ADVERTISE); in mcs7830_set_autoneg()
|
D | dm9601.c | 428 dm9601_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in dm9601_bind()
|
D | sr9800.c | 566 sr_mdio_write(dev->net, dev->mii.phy_id, MII_ADVERTISE, in sr9800_set_default_mode()
|
D | smsc95xx.c | 574 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()
|
D | r8152.c | 2791 anar = r8152_mdio_read(tp, MII_ADVERTISE); in rtl8152_set_speed() 2856 r8152_mdio_write(tp, MII_ADVERTISE, anar); in rtl8152_set_speed() 3159 anar = r8152_mdio_read(tp, MII_ADVERTISE); in r8152b_enable_fc() 3161 r8152_mdio_write(tp, MII_ADVERTISE, anar); in r8152b_enable_fc()
|
D | smsc75xx.c | 651 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()
|
/linux-4.1.27/drivers/net/cris/ |
D | eth_v10.c | 643 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.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88e1xxx.c | 227 (void) simple_mdio_write(phy, MII_ADVERTISE, val); in mv88e1xxx_advertise()
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
D | smc911x.h | 876 #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 )
|
D | smc91x.c | 1116 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()
|
D | epic100.c | 455 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one()
|
D | smsc9420.c | 1100 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc9420_phy_update_flowcontrol()
|
D | smsc911x.c | 916 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
|
/linux-4.1.27/drivers/net/ethernet/adaptec/ |
D | starfire.c | 818 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.1.27/drivers/net/ethernet/sis/ |
D | sis190.c | 966 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.1.27/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 1426 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() 4297 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_get_settings() 4394 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_settings() 4408 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_settings() 4438 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_settings() 4457 mii_rw(dev, np->phyaddr, MII_ADVERTISE, adv); in nv_set_settings() 4734 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_set_pauseparam() [all …]
|
/linux-4.1.27/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 760 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() 3081 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl() 3088 if ((data->reg_num & 0x1f) == MII_ADVERTISE) in netdev_ioctl()
|
/linux-4.1.27/drivers/net/ethernet/dec/tulip/ |
D | media.c | 472 mii_advert = tulip_mdio_read (dev, phy, MII_ADVERTISE); in tulip_find_mii()
|
D | winbond-840.c | 450 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in w840_probe1()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
D | sunhme.c | 1057 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()
|
D | cassini.c | 936 cas_phy_write(cp, MII_ADVERTISE, in cas_phy_init() 937 cas_phy_read(cp, MII_ADVERTISE) | in cas_phy_init()
|
D | niu.c | 1109 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.1.27/drivers/net/ethernet/ |
D | jme.c | 119 MII_ADVERTISE, ADVERTISE_ALL | in jme_reset_phy_processor() 2558 val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); in jme_get_pauseparam() 2597 val = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_ADVERTISE); in jme_set_pauseparam() 2607 MII_ADVERTISE, val); in jme_set_pauseparam()
|
D | fealnx.c | 653 mdio_write(dev, np->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in fealnx_init_one()
|
/linux-4.1.27/drivers/net/ethernet/intel/ |
D | e100.c | 993 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.1.27/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_hw.c | 498 if (atl1c_write_phy_reg(hw, MII_ADVERTISE, mii_adv_data) != 0 || in atl1c_phy_setup_adv()
|
/linux-4.1.27/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 927 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open()
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
D | amd8111e.c | 199 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.1.27/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 945 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()
|
D | mac.c | 1073 ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_nway_adv_reg); in e1000e_config_fc_after_link_up()
|
D | netdev.c | 4814 ret_val |= e1e_rphy(hw, MII_ADVERTISE, &phy->advertise); in e1000_phy_read_status() 5878 case MII_ADVERTISE: in e1000_mii_ioctl()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
D | ks8851.c | 1287 case MII_ADVERTISE: in ks8851_phy_reg()
|
D | ks8851_mll.c | 1370 case MII_ADVERTISE: in ks_phy_reg()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | b44.c | 473 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()
|
D | tg3.c | 1673 if (!tg3_readphy(tp, MII_ADVERTISE, ®)) 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 …]
|
D | bcm63xx_enet.c | 2090 port->phy_id, MII_ADVERTISE); in swphy_poll_timer()
|
D | bnx2.c | 2172 bp->mii_adv = MII_ADVERTISE + 0x10; in bnx2_init_5709s_phy() 2383 bp->mii_adv = MII_ADVERTISE; in bnx2_init_phy()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/ |
D | atl2.c | 1067 atl2_write_phy_reg(hw, MII_ADVERTISE, hw->mii_autoneg_adv_reg); in atl2_phy_config() 2636 ret_val = atl2_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl2_phy_setup_autoneg_adv()
|
D | atl1.c | 772 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.1.27/drivers/net/ethernet/atheros/alx/ |
D | hw.c | 751 if (alx_write_phy_reg(hw, MII_ADVERTISE, adv) || in alx_setup_speed_duplex()
|
/linux-4.1.27/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 280 advert = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_ADVERTISE); in mii_speed()
|
/linux-4.1.27/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 756 hmp->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in hamachi_init_one()
|
/linux-4.1.27/drivers/net/ethernet/3com/ |
D | 3c59x.c | 1431 vp->advertising = mdio_read(dev, vp->phys[0], MII_ADVERTISE); in vortex_probe1()
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
D | r8169.c | 1912 auto_nego = rtl_readphy(tp, MII_ADVERTISE); in rtl8169_set_speed_xmii() 1945 rtl_writephy(tp, MII_ADVERTISE, auto_nego); in rtl8169_set_speed_xmii()
|
/linux-4.1.27/drivers/net/ethernet/freescale/ |
D | gianfar.c | 1789 phy_write(tbiphy, MII_ADVERTISE, in gfar_configure_serdes()
|
/linux-4.1.27/drivers/net/ethernet/agere/ |
D | et131x.c | 2839 et131x_mii_read(adapter, MII_ADVERTISE, &tmp); in et131x_get_regs()
|
/linux-4.1.27/drivers/s390/net/ |
D | qeth_core_main.c | 4488 case MII_ADVERTISE: /* Advertisement control reg */ in qeth_mdio_read()
|