Searched refs:anar_reg (Results 1 – 2 of 2) sorted by relevance
148 uint16_t anar_reg = 0; in update_link_state() local182 if (phy_mii_reg_read(dev, MII_ANAR, &anar_reg) < 0) { in update_link_state()245 } else if ((anar_reg & anlpar_reg) & MII_ADVERTISE_100_FULL) { in update_link_state()247 } else if ((anar_reg & anlpar_reg) & MII_ADVERTISE_100_HALF) { in update_link_state()249 } else if ((anar_reg & anlpar_reg) & MII_ADVERTISE_10_FULL) { in update_link_state()318 uint16_t anar_reg; in phy_mii_cfg_link() local322 if (phy_mii_reg_read(dev, MII_ANAR, &anar_reg) < 0) { in phy_mii_cfg_link()337 anar_reg |= MII_ADVERTISE_10_FULL; in phy_mii_cfg_link()339 anar_reg &= ~MII_ADVERTISE_10_FULL; in phy_mii_cfg_link()343 anar_reg |= MII_ADVERTISE_10_HALF; in phy_mii_cfg_link()[all …]
258 uint32_t anar_reg; in qc_ar8031_cfg_link() local262 if (qc_ar8031_read(dev, MII_ANAR, &anar_reg) < 0) { in qc_ar8031_cfg_link()275 anar_reg |= MII_ADVERTISE_10_FULL; in qc_ar8031_cfg_link()277 anar_reg &= ~MII_ADVERTISE_10_FULL; in qc_ar8031_cfg_link()281 anar_reg |= MII_ADVERTISE_10_HALF; in qc_ar8031_cfg_link()283 anar_reg &= ~MII_ADVERTISE_10_HALF; in qc_ar8031_cfg_link()287 anar_reg |= MII_ADVERTISE_100_FULL; in qc_ar8031_cfg_link()289 anar_reg &= ~MII_ADVERTISE_100_FULL; in qc_ar8031_cfg_link()293 anar_reg |= MII_ADVERTISE_100_HALF; in qc_ar8031_cfg_link()295 anar_reg &= ~MII_ADVERTISE_100_HALF; in qc_ar8031_cfg_link()[all …]