Home
last modified time | relevance | path

Searched refs:bmcr_reg (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/ethernet/phy/
Dphy_mii.c149 uint16_t bmcr_reg = 0; in update_link_state() local
187 if (phy_mii_reg_read(dev, MII_BMCR, &bmcr_reg) < 0) { in update_link_state()
191 bmcr_reg |= MII_BMCR_AUTONEG_ENABLE | MII_BMCR_AUTONEG_RESTART; in update_link_state()
192 bmcr_reg &= ~MII_BMCR_ISOLATE; /* Don't isolate the PHY */ in update_link_state()
194 if (phy_mii_reg_write(dev, MII_BMCR, bmcr_reg) < 0) { in update_link_state()
319 uint16_t bmcr_reg; in phy_mii_cfg_link() local
326 if (phy_mii_reg_read(dev, MII_BMCR, &bmcr_reg) < 0) { in phy_mii_cfg_link()
378 bmcr_reg |= MII_BMCR_AUTONEG_ENABLE; in phy_mii_cfg_link()
384 if (phy_mii_reg_write(dev, MII_BMCR, bmcr_reg) < 0) { in phy_mii_cfg_link()
Dphy_qualcomm_ar8031.c259 uint32_t bmcr_reg; in qc_ar8031_cfg_link() local
266 if (qc_ar8031_read(dev, MII_BMCR, &bmcr_reg) < 0) { in qc_ar8031_cfg_link()
314 bmcr_reg |= MII_BMCR_AUTONEG_ENABLE | MII_BMCR_AUTONEG_RESTART; in qc_ar8031_cfg_link()
320 if (qc_ar8031_write(dev, MII_BMCR, bmcr_reg) < 0) { in qc_ar8031_cfg_link()