Lines Matching defs:mii_lpa
717 int mii_lpa = mdio_read(dev, ep->phys[0], MII_LPA);
718 if (mii_lpa != 0xffff) {
719 if ((mii_lpa & LPA_100FULL) || (mii_lpa & 0x01C0) == LPA_10FULL)
721 else if (! (mii_lpa & LPA_LPACK))
727 ep->phys[0], mii_lpa);
843 int mii_lpa = ep->mii_phy_cnt ? mdio_read(dev, ep->phys[0], MII_LPA) : 0;
844 int negotiated = mii_lpa & ep->mii.advertising;
849 if (mii_lpa == 0xffff) /* Bogus read */
855 ep->mii.full_duplex ? "full" : "half", ep->phys[0], mii_lpa);