Home | History | Annotate | Download | only in ixgbe

Lines Matching defs:autoc

248  * prot_autoc_read_82599 - Hides MAC differences needed for AUTOC read
251 * @reg_val: Value we read from AUTOC
277 * prot_autoc_write_82599 - Hides MAC differences needed for AUTOC write
279 * @autoc: value to write to AUTOC
284 * AUTOC. Likewise after a write we need to do a pipeline reset.
286 s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 autoc, bool locked)
307 IXGBE_WRITE_REG(hw, IXGBE_AUTOC, autoc);
422 * Determines the link capabilities by reading the AUTOC register.
429 u32 autoc = 0;
447 * Determine link capabilities based on the stored value of AUTOC,
448 * which represents EEPROM defaults. If AUTOC value has not
452 autoc = hw->mac.orig_autoc;
454 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC);
456 switch (autoc & IXGBE_AUTOC_LMS_MASK) {
480 if (autoc & IXGBE_AUTOC_KR_SUPP)
482 if (autoc & IXGBE_AUTOC_KX4_SUPP)
484 if (autoc & IXGBE_AUTOC_KX_SUPP)
491 if (autoc & IXGBE_AUTOC_KR_SUPP)
493 if (autoc & IXGBE_AUTOC_KX4_SUPP)
495 if (autoc & IXGBE_AUTOC_KX_SUPP)
635 * AUTOC.
898 * Set the link speed in the AUTOC register and restarts link.
907 u32 current_autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); /* holds the value of AUTOC register at this current point in time */
908 u32 orig_autoc = 0; /* holds the cached value of AUTOC register */
909 u32 autoc = current_autoc; /* Temporary variable used for comparison purposes */
934 /* Use stored value (EEPROM defaults) of AUTOC to find KR/KX4 support*/
938 orig_autoc = autoc;
940 link_mode = autoc & IXGBE_AUTOC_LMS_MASK;
941 pma_pmd_1g = autoc & IXGBE_AUTOC_1G_PMA_PMD_MASK;
947 autoc &= ~(IXGBE_AUTOC_KX4_KX_SUPP_MASK | IXGBE_AUTOC_KR_SUPP);
950 autoc |= IXGBE_AUTOC_KX4_SUPP;
953 autoc |= IXGBE_AUTOC_KR_SUPP;
956 autoc |= IXGBE_AUTOC_KX_SUPP;
963 autoc &= ~IXGBE_AUTOC_LMS_MASK;
964 autoc |= IXGBE_AUTOC_LMS_10G_SERIAL;
971 autoc &= ~IXGBE_AUTOC_LMS_MASK;
973 autoc |= IXGBE_AUTOC_LMS_1G_AN;
975 autoc |= IXGBE_AUTOC_LMS_1G_LINK_NO_AN;
979 if (autoc != current_autoc) {
981 status = hw->mac.ops.prot_autoc_write(hw, autoc, FALSE);
1053 u32 i, autoc, autoc2;
1089 /* remember AUTOC from before we reset */
1136 * Store the original AUTOC/AUTOC2 values if they have not been
1140 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC);
1151 hw->mac.orig_autoc = autoc;
1168 if (autoc != hw->mac.orig_autoc) {
2209 u32 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC);
2212 u32 pma_pmd_10g_parallel = autoc & IXGBE_AUTOC_10G_PMA_PMD_MASK;
2213 u32 pma_pmd_1g = autoc & IXGBE_AUTOC_1G_PMA_PMD_MASK;
2236 switch (autoc & IXGBE_AUTOC_LMS_MASK) {
2265 if (autoc & IXGBE_AUTOC_KX_SUPP)
2267 if (autoc & IXGBE_AUTOC_KX4_SUPP)
2269 if (autoc & IXGBE_AUTOC_KR_SUPP)
2516 /* Write AUTOC register with toggled LMS[2] bit and Restart_AN */
2536 /* Write AUTOC register with original LMS field and Restart_AN */