• Home
  • Raw
  • Download

Lines Matching +full:auto +full:- +full:negotiation

11  * genphy_c45_setup_forced - configures a forced speed
19 if (phydev->duplex != DUPLEX_FULL) in genphy_c45_pma_setup_forced()
20 return -EINVAL; in genphy_c45_pma_setup_forced()
33 * in 802.3-2012 and 802.3-2015. in genphy_c45_pma_setup_forced()
37 switch (phydev->speed) { in genphy_c45_pma_setup_forced()
47 /* Assume 1000base-T */ in genphy_c45_pma_setup_forced()
52 /* Assume 10Gbase-T */ in genphy_c45_pma_setup_forced()
56 return -EINVAL; in genphy_c45_pma_setup_forced()
68 * genphy_c45_an_disable_aneg - disable auto-negotiation
71 * Disable auto-negotiation in the Clause 45 PHY. The link parameters
91 * genphy_c45_restart_aneg - Enable and restart auto-negotiation
94 * This assumes that the auto-negotiation MMD is present.
96 * Enable and restart auto-negotiation.
113 * genphy_c45_aneg_done - return auto-negotiation complete status
116 * This assumes that the auto-negotiation MMD is present.
118 * Reads the status register from the auto-negotiation MMD, returning:
119 * - positive if auto-negotiation is complete
120 * - negative errno code on error
121 * - zero otherwise
132 * genphy_c45_read_link - read the overall link status from the MMDs
150 * drops can be detected. Do not double-read the status in genphy_c45_read_link()
172 * genphy_c45_read_lpa - read the link partner advertisement and pause
177 * in @phydev. This assumes that the auto-negotiation MMD is present, and
190 phydev->lp_advertising = mii_lpa_to_ethtool_lpa_t(val); in genphy_c45_read_lpa()
191 phydev->pause = val & LPA_PAUSE_CAP ? 1 : 0; in genphy_c45_read_lpa()
192 phydev->asym_pause = val & LPA_PAUSE_ASYM ? 1 : 0; in genphy_c45_read_lpa()
200 phydev->lp_advertising |= ADVERTISED_10000baseT_Full; in genphy_c45_read_lpa()
207 * genphy_c45_read_pma - read link speed etc from PMA
220 phydev->speed = SPEED_10; in genphy_c45_read_pma()
223 phydev->speed = SPEED_100; in genphy_c45_read_pma()
226 phydev->speed = SPEED_1000; in genphy_c45_read_pma()
229 phydev->speed = SPEED_10000; in genphy_c45_read_pma()
232 phydev->speed = SPEED_UNKNOWN; in genphy_c45_read_pma()
236 phydev->duplex = DUPLEX_FULL; in genphy_c45_read_pma()
243 * genphy_c45_read_mdix - read mdix status from PMA
250 if (phydev->speed == SPEED_10000) { in genphy_c45_read_mdix()
258 phydev->mdix = ETH_TP_MDI; in genphy_c45_read_mdix()
262 phydev->mdix = ETH_TP_MDI_X; in genphy_c45_read_mdix()
266 phydev->mdix = ETH_TP_MDI_INVALID; in genphy_c45_read_mdix()
285 u32 mmd_mask = phydev->c45_ids.devices_in_package; in gen10g_read_status()
289 phydev->speed = SPEED_10000; in gen10g_read_status()
290 phydev->duplex = DUPLEX_FULL; in gen10g_read_status()
297 phydev->link = ret > 0 ? 1 : 0; in gen10g_read_status()
313 phydev->supported = SUPPORTED_10000baseT_Full; in gen10g_config_init()
314 phydev->advertising = SUPPORTED_10000baseT_Full; in gen10g_config_init()