/linux/drivers/net/ |
A D | mii.c | 91 if (bmcr & BMCR_ANENABLE) { in mii_ethtool_gset() 176 if (bmcr & BMCR_ANENABLE) { in mii_ethtool_get_link_ksettings() 260 u32 bmcr, advert, tmp; in mii_ethtool_sset() local 297 u32 bmcr, tmp; in mii_ethtool_sset() local 312 if (bmcr != tmp) in mii_ethtool_sset() 352 u32 bmcr, advert, tmp; in mii_ethtool_set_link_ksettings() local 394 u32 bmcr, tmp; in mii_ethtool_set_link_ksettings() local 410 if (bmcr != tmp) in mii_ethtool_set_link_ksettings() 459 int bmcr; in mii_nway_restart() local 465 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | vsc8211.c | 133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local 136 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status() 154 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status() 155 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in vsc8211_get_link_status() 156 if (bmcr & BMCR_SPEED1000) in vsc8211_get_link_status() 158 else if (bmcr & BMCR_SPEED100) in vsc8211_get_link_status() 209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local 212 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status_fiber() 230 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status_fiber() 232 if (bmcr & BMCR_SPEED1000) in vsc8211_get_link_status_fiber() [all …]
|
/linux/drivers/net/dsa/mv88e6xxx/ |
A D | serdes.c | 147 u16 adv, bmcr, val; in mv88e6352_serdes_pcs_config() local 185 if (bmcr == val) in mv88e6352_serdes_pcs_config() 221 u16 bmcr; in mv88e6352_serdes_pcs_an_restart() local 234 u16 val, bmcr; in mv88e6352_serdes_pcs_link_up() local 247 bmcr |= BMCR_SPEED100; in mv88e6352_serdes_pcs_link_up() 256 if (bmcr == val) in mv88e6352_serdes_pcs_link_up() 861 u16 val, bmcr, adv; in mv88e6390_serdes_pcs_config() local 908 if (bmcr == val) in mv88e6390_serdes_pcs_config() 1030 u16 bmcr; in mv88e6390_serdes_pcs_an_restart() local 1046 u16 val, bmcr; in mv88e6390_serdes_pcs_link_up() local [all …]
|
/linux/drivers/net/ethernet/dlink/ |
A D | dl2k.c | 1557 if (bmcr & BMCR_FULLDPLX) { in mii_get_media() 1579 __u16 bmcr; in mii_set_media() local 1627 bmcr |= BMCR_RESET; in mii_set_media() 1639 bmcr = BMCR_PDOWN; in mii_set_media() 1641 bmcr |= BMCR_SPEED100; in mii_set_media() 1647 bmcr |= BMCR_FULLDPLX; in mii_set_media() 1702 if (bmcr & BMCR_FULLDPLX) { in mii_get_media_pcs() 1723 __u16 bmcr; in mii_set_media_pcs() local 1753 bmcr = BMCR_RESET; in mii_set_media_pcs() 1757 bmcr = BMCR_FULLDPLX; in mii_set_media_pcs() [all …]
|
/linux/drivers/net/phy/ |
A D | national.c | 123 int bmcr = phy_read(phydev, MII_BMCR); in ns_giga_speed_fallback() local 125 phy_write(phydev, MII_BMCR, (bmcr | BMCR_PDOWN)); in ns_giga_speed_fallback() 131 phy_write(phydev, MII_BMCR, (bmcr & ~BMCR_PDOWN)); in ns_giga_speed_fallback()
|
A D | microchip_t1.c | 281 int bmcr, bmsr, ret; in microchip_cable_test_start_common() local 286 bmcr = phy_read(phydev, MII_BMCR); in microchip_cable_test_start_common() 287 if (bmcr < 0) in microchip_cable_test_start_common() 288 return bmcr; in microchip_cable_test_start_common() 295 if (bmcr & BMCR_ANENABLE) { in microchip_cable_test_start_common()
|
A D | dp83822.c | 387 int bmcr; in dp83822_config_init() local 437 bmcr = phy_read(phydev, MII_BMCR); in dp83822_config_init() 438 if (bmcr < 0) in dp83822_config_init() 439 return bmcr; in dp83822_config_init() 441 if (bmcr & BMCR_ANENABLE) { in dp83822_config_init()
|
A D | phy_device.c | 2257 int status = 0, bmcr; in genphy_update_link() local 2260 if (bmcr < 0) in genphy_update_link() 2261 return bmcr; in genphy_update_link() 2266 if (bmcr & BMCR_ANRESTART) in genphy_update_link() 2358 if (bmcr < 0) in genphy_read_status_fixed() 2359 return bmcr; in genphy_read_status_fixed() 2361 if (bmcr & BMCR_FULLDPLX) in genphy_read_status_fixed() 2366 if (bmcr & BMCR_SPEED1000) in genphy_read_status_fixed() 2468 if (bmcr < 0) in genphy_c37_read_status() 2469 return bmcr; in genphy_c37_read_status() [all …]
|
A D | dp83869.c | 641 int bmcr; in dp83869_configure_fiber() local 661 bmcr = phy_read(phydev, MII_BMCR); in dp83869_configure_fiber() 662 if (bmcr < 0) in dp83869_configure_fiber() 663 return bmcr; in dp83869_configure_fiber() 669 if (bmcr & BMCR_ANENABLE) { in dp83869_configure_fiber()
|
/linux/drivers/net/ethernet/smsc/ |
A D | smc911x.c | 740 int bmcr; in smc911x_phy_fixed() local 746 bmcr |= BMCR_PDOWN; in smc911x_phy_fixed() 753 bmcr &= ~BMCR_ANENABLE; in smc911x_phy_fixed() 755 bmcr |= BMCR_FULLDPLX; in smc911x_phy_fixed() 758 bmcr |= BMCR_SPEED100; in smc911x_phy_fixed() 764 bmcr &= ~BMCR_PDOWN; in smc911x_phy_fixed() 826 unsigned int bmcr; in smc911x_phy_powerdown() local 830 bmcr |= BMCR_PDOWN; in smc911x_phy_powerdown() 846 unsigned int bmcr, cr; in smc911x_phy_check_media() local 856 bmcr |= BMCR_FULLDPLX; in smc911x_phy_check_media() [all …]
|
A D | smc91x.c | 906 int bmcr, cfg1; in smc_phy_fixed() local 919 bmcr = 0; in smc_phy_fixed() 922 bmcr |= BMCR_FULLDPLX; in smc_phy_fixed() 925 bmcr |= BMCR_SPEED100; in smc_phy_fixed() 928 smc_phy_write(dev, phyaddr, MII_BMCR, bmcr); in smc_phy_fixed() 954 unsigned int bmcr; in smc_phy_reset() local 964 bmcr = smc_phy_read(dev, phy, MII_BMCR); in smc_phy_reset() 965 if (!(bmcr & BMCR_RESET)) in smc_phy_reset() 969 return bmcr & BMCR_RESET; in smc_phy_reset() 981 unsigned int bmcr; in smc_phy_powerdown() local [all …]
|
/linux/drivers/net/ethernet/ibm/emac/ |
A D | phy.c | 259 int bmcr = phy_read(phy, MII_BMCR); in genmii_read_link() local 260 if (bmcr < 0) in genmii_read_link() 261 return bmcr; in genmii_read_link() 263 if (bmcr & BMCR_FULLDPLX) in genmii_read_link() 267 if (bmcr & BMCR_SPEED1000) in genmii_read_link() 269 else if (bmcr & BMCR_SPEED100) in genmii_read_link()
|
/linux/drivers/net/ethernet/ |
A D | jme.c | 432 bmcr = jme_mdio_read(jme->dev, in jme_check_link() 439 (bmcr & BMCR_SPEED100) ? in jme_check_link() 1602 u32 bmcr; in jme_restart_an() local 1690 u32 bmcr; in jme_phy_on() local 1693 bmcr &= ~BMCR_PDOWN; in jme_phy_on() 1703 u32 bmcr; in jme_phy_off() local 1706 bmcr |= BMCR_PDOWN; in jme_phy_off() 1858 u32 bmcr, tmp; in jme_set_100m_half() local 1866 if (bmcr != tmp) in jme_set_100m_half() 2910 u16 bmcr, bmsr; in jme_init_one() local [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
A D | bnx2.c | 1214 u32 bmcr; in bnx2_copper_linkup() local 1458 u32 bmcr; in bnx2_enable_forced_2g5() local 1492 bmcr &= ~BMCR_ANENABLE; in bnx2_enable_forced_2g5() 1502 u32 bmcr; in bnx2_disable_forced_2g5() local 1615 u32 bmcr; in bnx2_set_link() local 1759 u32 adv, bmcr; in bnx2_setup_serdes_phy() local 2128 if (new_bmcr != bmcr) { in bnx2_setup_copper_phy() 6093 u32 bmcr; in bnx2_5706_serdes_timer() local 6115 u32 bmcr; in bnx2_5706_serdes_timer() local 6160 u32 bmcr; in bnx2_5708_serdes_timer() local [all …]
|
A D | b44.c | 478 u32 bmcr; in b44_setup_phy() local 480 if ((err = b44_readphy(bp, MII_BMCR, &bmcr)) != 0) in b44_setup_phy() 482 bmcr &= ~(BMCR_FULLDPLX | BMCR_ANENABLE | BMCR_SPEED100); in b44_setup_phy() 484 bmcr |= BMCR_SPEED100; in b44_setup_phy() 486 bmcr |= BMCR_FULLDPLX; in b44_setup_phy() 487 if ((err = b44_writephy(bp, MII_BMCR, bmcr)) != 0) in b44_setup_phy() 1811 u32 bmcr; in b44_nway_reset() local 1815 b44_readphy(bp, MII_BMCR, &bmcr); in b44_nway_reset() 1816 b44_readphy(bp, MII_BMCR, &bmcr); in b44_nway_reset() 1818 if (bmcr & BMCR_ANENABLE) { in b44_nway_reset() [all …]
|
A D | tg3.c | 4450 u32 bmcr, orig_bmcr; in tg3_phy_copper_begin() local 4463 bmcr = 0; in tg3_phy_copper_begin() 4894 u32 aux_stat, bmcr; in tg3_setup_copper_phy() local 4908 bmcr = 0; in tg3_setup_copper_phy() 4913 if (bmcr && bmcr != 0x7fff) in tg3_setup_copper_phy() 5811 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local 5935 bmcr = new_bmcr; in tg3_setup_fiber_mii_phy() 6012 u32 bmcr; in tg3_serdes_parallel_detect() local 6050 u32 bmcr; in tg3_serdes_parallel_detect() local 8195 bmcr = BMCR_FULLDPLX; in tg3_phy_lpbk_set() [all …]
|
/linux/drivers/net/usb/ |
A D | rtl8150.c | 781 short lpa, bmcr; in rtl8150_get_link_ksettings() local 792 get_registers(dev, BMCR, 2, &bmcr); in rtl8150_get_link_ksettings() 794 if (bmcr & BMCR_ANENABLE) { in rtl8150_get_link_ksettings() 807 ecmd->base.speed = ((bmcr & BMCR_SPEED100) ? in rtl8150_get_link_ksettings() 809 ecmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in rtl8150_get_link_ksettings()
|
/linux/drivers/net/ethernet/xilinx/ |
A D | xilinx_emaclite.c | 929 u32 bmcr; in xemaclite_open() local 950 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open() 951 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART); in xemaclite_open() 952 phy_write(lp->phy_dev, MII_BMCR, bmcr); in xemaclite_open()
|
/linux/drivers/net/ethernet/nvidia/ |
A D | forcedeth.c | 3389 u32 bmcr; in nv_update_linkspeed() local 3399 if (bmcr & BMCR_LOOPBACK) { in nv_update_linkspeed() 4478 int adv, bmcr; in nv_set_link_ksettings() local 4511 bmcr |= BMCR_ANENABLE; in nv_set_link_ksettings() 4514 if (phy_reset(dev, bmcr)) { in nv_set_link_ksettings() 4523 int adv, bmcr; in nv_set_link_ksettings() local 4558 bmcr |= BMCR_FULLDPLX; in nv_set_link_ksettings() 4560 bmcr |= BMCR_SPEED100; in nv_set_link_ksettings() 4613 int bmcr; in nv_nway_reset() local 4631 bmcr |= BMCR_ANENABLE; in nv_nway_reset() [all …]
|
/linux/drivers/net/ethernet/intel/ |
A D | e100.c | 1438 u16 bmcr, stat, id_lo, id_hi, cong; in e100_phy_init() local 1443 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1446 if (!((bmcr == 0xFFFF) || ((stat == 0) && (bmcr == 0)))) in e100_phy_init() 1478 bmcr = mdio_read(netdev, addr, MII_BMCR); in e100_phy_init() 1480 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1490 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1513 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1514 bmcr |= BMCR_RESET; in e100_phy_init() 1515 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init()
|
/linux/drivers/net/ethernet/silan/ |
A D | sc92031.c | 1316 u16 bmcr; in sc92031_ethtool_nway_reset() local 1320 bmcr = _sc92031_mii_read(port_base, MII_BMCR); in sc92031_ethtool_nway_reset() 1321 if (!(bmcr & BMCR_ANENABLE)) { in sc92031_ethtool_nway_reset() 1326 _sc92031_mii_write(port_base, MII_BMCR, bmcr | BMCR_ANRESTART); in sc92031_ethtool_nway_reset()
|
/linux/drivers/net/ethernet/amd/ |
A D | pcnet32.c | 2188 u16 bmcr; in pcnet32_open() local 2224 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_open() 2228 bmcr & ~BMCR_ISOLATE); in pcnet32_open() 2231 bmcr | BMCR_ISOLATE); in pcnet32_open() 2794 u16 bmcr; in pcnet32_check_otherphy() local 2808 bmcr = in pcnet32_check_otherphy() 2811 bmcr | BMCR_ISOLATE); in pcnet32_check_otherphy() 2814 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_check_otherphy() 2816 bmcr & ~BMCR_ISOLATE); in pcnet32_check_otherphy()
|
A D | amd8111e.c | 182 u32 bmcr, advert, tmp; in amd8111e_set_ext_phy() local 211 bmcr = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_BMCR); in amd8111e_set_ext_phy() 212 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART); in amd8111e_set_ext_phy() 213 amd8111e_mdio_write(dev, lp->ext_phy_addr, MII_BMCR, bmcr); in amd8111e_set_ext_phy()
|
/linux/drivers/net/ethernet/sun/ |
A D | niu.c | 1103 bmcr = err; in link_status_mii() 1185 if ((bmcr & BMCR_SPEED1000) && !(bmcr & BMCR_SPEED100)) in link_status_mii() 1657 u16 bmcr, bmsr, estat; in xcvr_init_1g_rgmii() local 1680 bmcr = 0; in xcvr_init_1g_rgmii() 1736 bmcr = 0; in mii_init_common() 1742 bmcr |= BMCR_LOOPBACK; in mii_init_common() 1746 bmcr |= BMCR_FULLDPLX; in mii_init_common() 1799 bmcr |= BMCR_FULLDPLX; in mii_init_common() 1817 bmcr |= BMCR_SPEED100; in mii_init_common() 1834 bmcr = err; in mii_init_common() [all …]
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_main.c | 588 u16 bmcr, stat; in pch_gbe_init_phy() local 593 bmcr = pch_gbe_mdio_read(netdev, adapter->mii.phy_id, MII_BMCR); in pch_gbe_init_phy() 596 if (!((bmcr == 0xFFFF) || ((stat == 0) && (bmcr == 0)))) in pch_gbe_init_phy() 609 bmcr = pch_gbe_mdio_read(netdev, addr, MII_BMCR); in pch_gbe_init_phy() 611 bmcr & ~BMCR_ISOLATE); in pch_gbe_init_phy()
|