Lines Matching refs:anar
149 uint32_t anar = 0; in phy_mc_ksz8081_get_link() local
175 ret = phy_mc_ksz8081_read(dev, MII_ANAR, &anar); in phy_mc_ksz8081_get_link()
193 uint32_t mutual_capabilities = anar & anlpar; in phy_mc_ksz8081_get_link()
331 uint32_t anar; in phy_mc_ksz8081_cfg_link() local
350 ret = phy_mc_ksz8081_read(dev, MII_ANAR, &anar); in phy_mc_ksz8081_cfg_link()
358 anar |= MII_ADVERTISE_100_FULL; in phy_mc_ksz8081_cfg_link()
360 anar &= ~MII_ADVERTISE_100_FULL; in phy_mc_ksz8081_cfg_link()
363 anar |= MII_ADVERTISE_100_HALF; in phy_mc_ksz8081_cfg_link()
365 anar &= ~MII_ADVERTISE_100_HALF; in phy_mc_ksz8081_cfg_link()
368 anar |= MII_ADVERTISE_10_FULL; in phy_mc_ksz8081_cfg_link()
370 anar &= ~MII_ADVERTISE_10_FULL; in phy_mc_ksz8081_cfg_link()
373 anar |= MII_ADVERTISE_10_HALF; in phy_mc_ksz8081_cfg_link()
375 anar &= ~MII_ADVERTISE_10_HALF; in phy_mc_ksz8081_cfg_link()
379 ret = phy_mc_ksz8081_write(dev, MII_ANAR, anar); in phy_mc_ksz8081_cfg_link()