Lines Matching refs:autoc

206 static s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 autoc, bool locked)  in prot_autoc_write_82599()  argument
227 IXGBE_WRITE_REG(hw, IXGBE_AUTOC, autoc); in prot_autoc_write_82599()
329 u32 autoc = 0; in ixgbe_get_link_capabilities_82599() local
349 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82599()
351 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_get_link_capabilities_82599()
353 switch (autoc & IXGBE_AUTOC_LMS_MASK) { in ixgbe_get_link_capabilities_82599()
377 if (autoc & IXGBE_AUTOC_KR_SUPP) in ixgbe_get_link_capabilities_82599()
379 if (autoc & IXGBE_AUTOC_KX4_SUPP) in ixgbe_get_link_capabilities_82599()
381 if (autoc & IXGBE_AUTOC_KX_SUPP) in ixgbe_get_link_capabilities_82599()
388 if (autoc & IXGBE_AUTOC_KR_SUPP) in ixgbe_get_link_capabilities_82599()
390 if (autoc & IXGBE_AUTOC_KX4_SUPP) in ixgbe_get_link_capabilities_82599()
392 if (autoc & IXGBE_AUTOC_KX_SUPP) in ixgbe_get_link_capabilities_82599()
786 u32 autoc = current_autoc; in ixgbe_setup_mac_link_82599() local
803 orig_autoc = autoc; in ixgbe_setup_mac_link_82599()
805 link_mode = autoc & IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82599()
806 pma_pmd_1g = autoc & IXGBE_AUTOC_1G_PMA_PMD_MASK; in ixgbe_setup_mac_link_82599()
812 autoc &= ~(IXGBE_AUTOC_KX4_KX_SUPP_MASK | IXGBE_AUTOC_KR_SUPP); in ixgbe_setup_mac_link_82599()
815 autoc |= IXGBE_AUTOC_KX4_SUPP; in ixgbe_setup_mac_link_82599()
818 autoc |= IXGBE_AUTOC_KR_SUPP; in ixgbe_setup_mac_link_82599()
821 autoc |= IXGBE_AUTOC_KX_SUPP; in ixgbe_setup_mac_link_82599()
828 autoc &= ~IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82599()
829 autoc |= IXGBE_AUTOC_LMS_10G_SERIAL; in ixgbe_setup_mac_link_82599()
836 autoc &= ~IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82599()
838 autoc |= IXGBE_AUTOC_LMS_1G_AN; in ixgbe_setup_mac_link_82599()
840 autoc |= IXGBE_AUTOC_LMS_1G_LINK_NO_AN; in ixgbe_setup_mac_link_82599()
844 if (autoc != current_autoc) { in ixgbe_setup_mac_link_82599()
846 status = hw->mac.ops.prot_autoc_write(hw, autoc, false); in ixgbe_setup_mac_link_82599()
913 u32 ctrl, i, autoc, autoc2; in ixgbe_reset_hw_82599() local
998 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_reset_hw_82599()
1009 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82599()
1026 if (autoc != hw->mac.orig_autoc) { in ixgbe_reset_hw_82599()