Lines Matching refs:status
1086 * phy_prepare_link - prepares the PHY layer to monitor link status
1088 * @handler: callback function for link status change notifications
1091 * gory details on monitoring link status (whether through
1093 * connected device driver when the link status changes.
1141 * the connected driver when the link status changes. If you
1425 * the attaching device, and given a callback for link status
2005 /* Per 802.3-2008, Section 22.2.4.2.16 Extended status all
2312 * genphy_aneg_done - return auto-negotiation status
2315 * Description: Reads the status register and returns 0 either if
2328 * genphy_update_link - update link status in @phydev
2333 * the status register twice, keeping the second value.
2337 int status = 0, bmcr;
2350 * drops can be detected. Do not double-read the status
2355 status = phy_read(phydev, MII_BMSR);
2356 if (status < 0)
2357 return status;
2358 else if (status & BMSR_LSTATUS)
2362 /* Read link and autonegotiation status */
2363 status = phy_read(phydev, MII_BMSR);
2364 if (status < 0)
2365 return status;
2367 phydev->link = status & BMSR_LSTATUS ? 1 : 0;
2368 phydev->autoneg_complete = status & BMSR_ANEGCOMPLETE ? 1 : 0;
2458 * genphy_read_status - check the link status and update current link state
2509 * genphy_c37_read_status - check the link status and update current link state