/linux-6.3-rc2/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-6.3-rc2/drivers/net/pcs/ |
A D | pcs-altera-tse.c | 54 u16 bmcr; in tse_pcs_reset() local 57 bmcr = tse_pcs_read(tse_pcs, MII_BMCR); in tse_pcs_reset() 58 bmcr |= BMCR_RESET; in tse_pcs_reset() 59 tse_pcs_write(tse_pcs, MII_BMCR, bmcr); in tse_pcs_reset() 61 return read_poll_timeout(tse_pcs_read, bmcr, (bmcr & BMCR_RESET), in tse_pcs_reset() 121 u16 bmcr; in alt_tse_pcs_an_restart() local 123 bmcr = tse_pcs_read(tse_pcs, MII_BMCR); in alt_tse_pcs_an_restart() 124 bmcr |= BMCR_ANRESTART; in alt_tse_pcs_an_restart() 125 tse_pcs_write(tse_pcs, MII_BMCR, bmcr); in alt_tse_pcs_an_restart()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/net/dsa/mv88e6xxx/ |
A D | serdes.c | 146 u16 adv, bmcr, val; in mv88e6352_serdes_pcs_config() local 184 if (bmcr == val) in mv88e6352_serdes_pcs_config() 220 u16 bmcr; in mv88e6352_serdes_pcs_an_restart() local 233 u16 val, bmcr; in mv88e6352_serdes_pcs_link_up() local 246 bmcr |= BMCR_SPEED100; in mv88e6352_serdes_pcs_link_up() 255 if (bmcr == val) in mv88e6352_serdes_pcs_link_up() 863 u16 val, bmcr, adv; in mv88e6390_serdes_pcs_config() local 910 if (bmcr == val) in mv88e6390_serdes_pcs_config() 1032 u16 bmcr; in mv88e6390_serdes_pcs_an_restart() local 1048 u16 val, bmcr; in mv88e6390_serdes_pcs_link_up() local [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_sgmii.c | 42 unsigned int rgc3, sgm_mode, bmcr; in mtk_pcs_config() local 81 bmcr = SGMII_AN_RESTART | SGMII_AN_ENABLE; in mtk_pcs_config() 83 bmcr = 0; in mtk_pcs_config() 117 SGMII_AN_RESTART | SGMII_AN_ENABLE, bmcr); in mtk_pcs_config()
|
/linux-6.3-rc2/include/linux/ |
A D | mii.h | 559 u16 bmcr; in mii_bmcr_encode_fixed() local 564 bmcr = BMCR_SPEED1000; in mii_bmcr_encode_fixed() 568 bmcr = BMCR_SPEED100; in mii_bmcr_encode_fixed() 573 bmcr = BMCR_SPEED10; in mii_bmcr_encode_fixed() 578 bmcr |= BMCR_FULLDPLX; in mii_bmcr_encode_fixed() 580 return bmcr; in mii_bmcr_encode_fixed()
|
/linux-6.3-rc2/drivers/net/ethernet/dlink/ |
A D | dl2k.c | 1555 if (bmcr & BMCR_FULLDPLX) { in mii_get_media() 1577 __u16 bmcr; in mii_set_media() local 1625 bmcr |= BMCR_RESET; in mii_set_media() 1637 bmcr = BMCR_PDOWN; in mii_set_media() 1639 bmcr |= BMCR_SPEED100; in mii_set_media() 1645 bmcr |= BMCR_FULLDPLX; in mii_set_media() 1700 if (bmcr & BMCR_FULLDPLX) { in mii_get_media_pcs() 1721 __u16 bmcr; in mii_set_media_pcs() local 1751 bmcr = BMCR_RESET; in mii_set_media_pcs() 1755 bmcr = BMCR_FULLDPLX; in mii_set_media_pcs() [all …]
|
/linux-6.3-rc2/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 | dp83822.c | 387 int bmcr; in dp83822_config_init() local 443 bmcr = phy_read(phydev, MII_BMCR); in dp83822_config_init() 444 if (bmcr < 0) in dp83822_config_init() 445 return bmcr; in dp83822_config_init() 447 if (bmcr & BMCR_ANENABLE) { in dp83822_config_init()
|
A D | microchip_t1.c | 557 int bmcr, bmsr, ret; in microchip_cable_test_start_common() local 562 bmcr = phy_read(phydev, MII_BMCR); in microchip_cable_test_start_common() 563 if (bmcr < 0) in microchip_cable_test_start_common() 564 return bmcr; in microchip_cable_test_start_common() 571 if (bmcr & BMCR_ANENABLE) { in microchip_cable_test_start_common()
|
A D | phy_device.c | 2333 int status = 0, bmcr; in genphy_update_link() local 2336 if (bmcr < 0) in genphy_update_link() 2337 return bmcr; in genphy_update_link() 2342 if (bmcr & BMCR_ANRESTART) in genphy_update_link() 2434 if (bmcr < 0) in genphy_read_status_fixed() 2435 return bmcr; in genphy_read_status_fixed() 2437 if (bmcr & BMCR_FULLDPLX) in genphy_read_status_fixed() 2442 if (bmcr & BMCR_SPEED1000) in genphy_read_status_fixed() 2548 if (bmcr < 0) in genphy_c37_read_status() 2549 return bmcr; in genphy_c37_read_status() [all …]
|
A D | dp83869.c | 642 int bmcr; in dp83869_configure_fiber() local 662 bmcr = phy_read(phydev, MII_BMCR); in dp83869_configure_fiber() 663 if (bmcr < 0) in dp83869_configure_fiber() 664 return bmcr; in dp83869_configure_fiber() 670 if (bmcr & BMCR_ANENABLE) { in dp83869_configure_fiber()
|
A D | motorcomm.c | 1682 int bmcr; in yt8521_fiber_config_aneg() local 1699 bmcr = __phy_read(phydev, MII_BMCR); in yt8521_fiber_config_aneg() 1700 if (bmcr < 0) in yt8521_fiber_config_aneg() 1701 return bmcr; in yt8521_fiber_config_aneg() 1706 if (!(bmcr & BMCR_ANENABLE)) { in yt8521_fiber_config_aneg()
|
/linux-6.3-rc2/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-6.3-rc2/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() 1603 u32 bmcr; in jme_restart_an() local 1691 u32 bmcr; in jme_phy_on() local 1694 bmcr &= ~BMCR_PDOWN; in jme_phy_on() 1704 u32 bmcr; in jme_phy_off() local 1707 bmcr |= BMCR_PDOWN; in jme_phy_off() 1859 u32 bmcr, tmp; in jme_set_100m_half() local 1867 if (bmcr != tmp) in jme_set_100m_half() 2911 u16 bmcr, bmsr; in jme_init_one() local [all …]
|
/linux-6.3-rc2/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() 6094 u32 bmcr; in bnx2_5706_serdes_timer() local 6116 u32 bmcr; in bnx2_5706_serdes_timer() local 6161 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 | 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 8187 bmcr = BMCR_FULLDPLX; in tg3_phy_lpbk_set() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/smsc/ |
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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/intel/ |
A D | e100.c | 1437 u16 bmcr, stat, id_lo, id_hi, cong; in e100_phy_init() local 1442 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1445 if (!((bmcr == 0xFFFF) || ((stat == 0) && (bmcr == 0)))) in e100_phy_init() 1477 bmcr = mdio_read(netdev, addr, MII_BMCR); in e100_phy_init() 1479 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1489 bmcr & ~BMCR_ISOLATE); in e100_phy_init() 1512 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1513 bmcr |= BMCR_RESET; in e100_phy_init() 1514 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/amd/ |
A D | pcnet32.c | 2193 u16 bmcr; in pcnet32_open() local 2229 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_open() 2233 bmcr & ~BMCR_ISOLATE); in pcnet32_open() 2236 bmcr | BMCR_ISOLATE); in pcnet32_open() 2799 u16 bmcr; in pcnet32_check_otherphy() local 2813 bmcr = in pcnet32_check_otherphy() 2816 bmcr | BMCR_ISOLATE); in pcnet32_check_otherphy() 2819 bmcr = mdio_read(dev, i, MII_BMCR); in pcnet32_check_otherphy() 2821 bmcr & ~BMCR_ISOLATE); in pcnet32_check_otherphy()
|
/linux-6.3-rc2/drivers/net/ethernet/sun/ |
A D | niu.c | 1122 bmcr = err; in link_status_mii() 1204 if ((bmcr & BMCR_SPEED1000) && !(bmcr & BMCR_SPEED100)) in link_status_mii() 1676 u16 bmcr, bmsr, estat; in xcvr_init_1g_rgmii() local 1699 bmcr = 0; in xcvr_init_1g_rgmii() 1755 bmcr = 0; in mii_init_common() 1761 bmcr |= BMCR_LOOPBACK; in mii_init_common() 1765 bmcr |= BMCR_FULLDPLX; in mii_init_common() 1818 bmcr |= BMCR_FULLDPLX; in mii_init_common() 1836 bmcr |= BMCR_SPEED100; in mii_init_common() 1853 bmcr = err; in mii_init_common() [all …]
|