| /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() 263 u32 bmcr, advert, tmp; in mii_ethtool_sset() local 300 u32 bmcr, tmp; in mii_ethtool_sset() local 315 if (bmcr != tmp) in mii_ethtool_sset() 355 u32 bmcr, advert, tmp; in mii_ethtool_set_link_ksettings() local 397 u32 bmcr, tmp; in mii_ethtool_set_link_ksettings() local 413 if (bmcr != tmp) in mii_ethtool_set_link_ksettings() 462 int bmcr; in mii_nway_restart() local 468 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart() [all …]
|
| /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 …]
|
| /drivers/net/ethernet/dlink/ |
| A D | dl2k.c | 1570 if (bmcr & BMCR_FULLDPLX) { in mii_get_media() 1592 __u16 bmcr; in mii_set_media() local 1640 bmcr |= BMCR_RESET; in mii_set_media() 1652 bmcr = BMCR_PDOWN; in mii_set_media() 1654 bmcr |= BMCR_SPEED100; in mii_set_media() 1660 bmcr |= BMCR_FULLDPLX; in mii_set_media() 1715 if (bmcr & BMCR_FULLDPLX) { in mii_get_media_pcs() 1736 __u16 bmcr; in mii_set_media_pcs() local 1766 bmcr = BMCR_RESET; in mii_set_media_pcs() 1770 bmcr = BMCR_FULLDPLX; in mii_set_media_pcs() [all …]
|
| /drivers/net/dsa/mv88e6xxx/ |
| A D | pcs-6352.c | 193 u16 bmcr; in marvell_c22_pcs_config() local 199 bmcr = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : 0; in marvell_c22_pcs_config() 211 bmcr); in marvell_c22_pcs_config() 239 u16 bmcr; in marvell_c22_pcs_link_up() local 245 bmcr = mii_bmcr_encode_fixed(speed, duplex); in marvell_c22_pcs_link_up() 248 BMCR_FULLDPLX | BMCR_SPEED1000, bmcr); in marvell_c22_pcs_link_up()
|
| A D | pcs-639x.c | 306 u16 val, bmcr; in mv88e639x_sgmii_pcs_config() local 328 bmcr = val | BMCR_ANENABLE; in mv88e639x_sgmii_pcs_config() 330 bmcr = val & ~BMCR_ANENABLE; in mv88e639x_sgmii_pcs_config() 333 if (bmcr == val) in mv88e639x_sgmii_pcs_config() 336 return mv88e639x_write(mpcs, MV88E6390_SGMII_BMCR, bmcr); in mv88e639x_sgmii_pcs_config() 353 u16 bmcr; in mv88e639x_sgmii_pcs_link_up() local 359 bmcr = mii_bmcr_encode_fixed(speed, duplex); in mv88e639x_sgmii_pcs_link_up() 363 bmcr); in mv88e639x_sgmii_pcs_link_up()
|
| /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 | as21xxx.c | 636 static int as21xxx_read_link(struct phy_device *phydev, int *bmcr) in as21xxx_read_link() argument 643 *bmcr = phy_read_mmd(phydev, MDIO_MMD_AN, in as21xxx_read_link() 645 if (*bmcr < 0) in as21xxx_read_link() 646 return *bmcr; in as21xxx_read_link() 651 if (*bmcr & BMCR_ANRESTART) { in as21xxx_read_link() 699 int bmcr, old_link = phydev->link; in as21xxx_read_status() local 702 ret = as21xxx_read_link(phydev, &bmcr); in as21xxx_read_status() 750 if (bmcr & BMCR_FULLDPLX) in as21xxx_read_status()
|
| A D | phy_device.c | 2344 int status = 0, bmcr; in genphy_update_link() local 2347 if (bmcr < 0) in genphy_update_link() 2348 return bmcr; in genphy_update_link() 2353 if (bmcr & BMCR_ANRESTART) in genphy_update_link() 2445 if (bmcr < 0) in genphy_read_status_fixed() 2446 return bmcr; in genphy_read_status_fixed() 2448 if (bmcr & BMCR_FULLDPLX) in genphy_read_status_fixed() 2453 if (bmcr & BMCR_SPEED1000) in genphy_read_status_fixed() 2566 if (bmcr < 0) in genphy_c37_read_status() 2567 return bmcr; in genphy_c37_read_status() [all …]
|
| A D | dp83869.c | 652 int bmcr; in dp83869_configure_fiber() local 671 bmcr = phy_read(phydev, MII_BMCR); in dp83869_configure_fiber() 672 if (bmcr < 0) in dp83869_configure_fiber() 673 return bmcr; in dp83869_configure_fiber() 679 if (bmcr & BMCR_ANENABLE) { in dp83869_configure_fiber()
|
| A D | dp83822.c | 523 int bmcr; in dp83822_config_init() local 605 bmcr = phy_read(phydev, MII_BMCR); in dp83822_config_init() 606 if (bmcr < 0) in dp83822_config_init() 607 return bmcr; in dp83822_config_init() 609 if (bmcr & BMCR_ANENABLE) { in dp83822_config_init()
|
| A D | microchip_t1.c | 783 int bmcr, bmsr, ret; in microchip_cable_test_start_common() local 788 bmcr = phy_read(phydev, MII_BMCR); in microchip_cable_test_start_common() 789 if (bmcr < 0) in microchip_cable_test_start_common() 790 return bmcr; in microchip_cable_test_start_common() 797 if (bmcr & BMCR_ANENABLE) { in microchip_cable_test_start_common()
|
| A D | marvell.c | 736 u16 extsr, bmcr; in m88e1111_config_inband() local 749 bmcr = 0; in m88e1111_config_inband() 751 bmcr = BMCR_ANENABLE; in m88e1111_config_inband() 759 BMCR_ANENABLE, bmcr); in m88e1111_config_inband() 2327 int bmcr, bmsr, ret; in marvell_cable_test_start_common() local 2332 bmcr = phy_read(phydev, MII_BMCR); in marvell_cable_test_start_common() 2333 if (bmcr < 0) in marvell_cable_test_start_common() 2334 return bmcr; in marvell_cable_test_start_common() 2341 if (bmcr & BMCR_ANENABLE) { in marvell_cable_test_start_common()
|
| /drivers/net/pcs/ |
| A D | pcs-mtk-lynxi.c | 130 unsigned int rgc3, sgm_mode, bmcr; in mtk_pcs_lynxi_config() local 153 bmcr = BMCR_ANENABLE; in mtk_pcs_lynxi_config() 155 bmcr = 0; in mtk_pcs_lynxi_config() 204 BMCR_ANENABLE, bmcr); in mtk_pcs_lynxi_config()
|
| /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()
|
| /drivers/net/ethernet/ |
| A D | jme.c | 433 bmcr = jme_mdio_read(jme->dev, in jme_check_link() 440 (bmcr & BMCR_SPEED100) ? in jme_check_link() 1601 u32 bmcr; in jme_restart_an() local 1689 u32 bmcr; in jme_phy_on() local 1692 bmcr &= ~BMCR_PDOWN; in jme_phy_on() 1702 u32 bmcr; in jme_phy_off() local 1705 bmcr |= BMCR_PDOWN; in jme_phy_off() 1857 u32 bmcr, tmp; in jme_set_100m_half() local 1865 if (bmcr != tmp) in jme_set_100m_half() 2909 u16 bmcr, bmsr; in jme_init_one() local [all …]
|
| /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() 6078 u32 bmcr; in bnx2_5706_serdes_timer() local 6100 u32 bmcr; in bnx2_5706_serdes_timer() local 6145 u32 bmcr; in bnx2_5708_serdes_timer() local [all …]
|
| A D | b44.c | 456 u32 bmcr; in b44_setup_phy() local 458 if ((err = b44_readphy(bp, MII_BMCR, &bmcr)) != 0) in b44_setup_phy() 460 bmcr &= ~(BMCR_FULLDPLX | BMCR_ANENABLE | BMCR_SPEED100); in b44_setup_phy() 462 bmcr |= BMCR_SPEED100; in b44_setup_phy() 464 bmcr |= BMCR_FULLDPLX; in b44_setup_phy() 465 if ((err = b44_writephy(bp, MII_BMCR, bmcr)) != 0) in b44_setup_phy() 1789 u32 bmcr; in b44_nway_reset() local 1793 b44_readphy(bp, MII_BMCR, &bmcr); in b44_nway_reset() 1794 b44_readphy(bp, MII_BMCR, &bmcr); in b44_nway_reset() 1796 if (bmcr & BMCR_ANENABLE) in b44_nway_reset() [all …]
|
| A D | tg3.c | 4441 u32 bmcr, orig_bmcr; in tg3_phy_copper_begin() local 4454 bmcr = 0; in tg3_phy_copper_begin() 4885 u32 aux_stat, bmcr; in tg3_setup_copper_phy() local 4899 bmcr = 0; in tg3_setup_copper_phy() 4904 if (bmcr && bmcr != 0x7fff) in tg3_setup_copper_phy() 5802 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local 5926 bmcr = new_bmcr; in tg3_setup_fiber_mii_phy() 6003 u32 bmcr; in tg3_serdes_parallel_detect() local 6041 u32 bmcr; in tg3_serdes_parallel_detect() local 8301 bmcr = BMCR_FULLDPLX; in tg3_phy_lpbk_set() [all …]
|
| /drivers/net/ethernet/smsc/ |
| A D | smc91x.c | 907 int bmcr, cfg1; in smc_phy_fixed() local 920 bmcr = 0; in smc_phy_fixed() 923 bmcr |= BMCR_FULLDPLX; in smc_phy_fixed() 926 bmcr |= BMCR_SPEED100; in smc_phy_fixed() 929 smc_phy_write(dev, phyaddr, MII_BMCR, bmcr); in smc_phy_fixed() 955 unsigned int bmcr; in smc_phy_reset() local 965 bmcr = smc_phy_read(dev, phy, MII_BMCR); in smc_phy_reset() 966 if (!(bmcr & BMCR_RESET)) in smc_phy_reset() 970 return bmcr & BMCR_RESET; in smc_phy_reset() 982 unsigned int bmcr; in smc_phy_powerdown() local [all …]
|
| /drivers/net/usb/ |
| A D | rtl8150.c | 790 short bmcr = 0; in rtl8150_get_link_ksettings() local 801 get_registers(dev, BMCR, 2, &bmcr); in rtl8150_get_link_ksettings() 803 if (bmcr & BMCR_ANENABLE) { in rtl8150_get_link_ksettings() 816 ecmd->base.speed = ((bmcr & BMCR_SPEED100) ? in rtl8150_get_link_ksettings() 818 ecmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in rtl8150_get_link_ksettings()
|
| /drivers/net/ethernet/nvidia/ |
| A D | forcedeth.c | 3375 u32 bmcr; in nv_update_linkspeed() local 3385 if (bmcr & BMCR_LOOPBACK) { in nv_update_linkspeed() 4464 int adv, bmcr; in nv_set_link_ksettings() local 4497 bmcr |= BMCR_ANENABLE; in nv_set_link_ksettings() 4500 if (phy_reset(dev, bmcr)) { in nv_set_link_ksettings() 4509 int adv, bmcr; in nv_set_link_ksettings() local 4544 bmcr |= BMCR_FULLDPLX; in nv_set_link_ksettings() 4546 bmcr |= BMCR_SPEED100; in nv_set_link_ksettings() 4599 int bmcr; in nv_nway_reset() local 4617 bmcr |= BMCR_ANENABLE; in nv_nway_reset() [all …]
|
| /drivers/net/ethernet/intel/ |
| A D | e100.c | 1436 u16 bmcr, stat, id_lo, id_hi, cong; in e100_phy_init() local 1441 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1444 if (!((bmcr == 0xFFFF) || ((stat == 0) && (bmcr == 0)))) in e100_phy_init() 1476 bmcr = mdio_read(netdev, addr, MII_BMCR); in e100_phy_init() 1478 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1488 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1511 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1512 bmcr |= BMCR_RESET; in e100_phy_init() 1513 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init()
|
| /drivers/net/phy/qcom/ |
| A D | at803x.c | 170 u16 bmcr; member 240 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save() 252 phy_write(phydev, MII_BMCR, context->bmcr); in at803x_context_restore()
|
| /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()
|
| /drivers/net/ethernet/amd/ |
| A D | pcnet32.c | 2198 u16 bmcr; in pcnet32_open() local 2234 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_open() 2238 bmcr & ~BMCR_ISOLATE); in pcnet32_open() 2241 bmcr | BMCR_ISOLATE); in pcnet32_open() 2806 u16 bmcr; in pcnet32_check_otherphy() local 2820 bmcr = in pcnet32_check_otherphy() 2823 bmcr | BMCR_ISOLATE); in pcnet32_check_otherphy() 2826 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_check_otherphy() 2828 bmcr & ~BMCR_ISOLATE); in pcnet32_check_otherphy()
|