Lines Matching refs:mac
56 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() local
96 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_get_invariants_82598()
97 mac->ops.setup_link = &ixgbe_setup_copper_link_82598; in ixgbe_get_invariants_82598()
98 mac->ops.setup_link_speed = in ixgbe_get_invariants_82598()
100 mac->ops.get_link_capabilities = in ixgbe_get_invariants_82598()
104 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; in ixgbe_get_invariants_82598()
105 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; in ixgbe_get_invariants_82598()
106 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; in ixgbe_get_invariants_82598()
107 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES; in ixgbe_get_invariants_82598()
108 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES; in ixgbe_get_invariants_82598()
131 if (hw->mac.link_settings_loaded) { in ixgbe_get_link_capabilities_82598()
134 autoc_reg |= hw->mac.link_attach_type; in ixgbe_get_link_capabilities_82598()
135 autoc_reg |= hw->mac.link_mode_select; in ixgbe_get_link_capabilities_82598()
369 if (hw->mac.link_settings_loaded) { in ixgbe_setup_mac_link_82598()
372 autoc_reg |= hw->mac.link_attach_type; in ixgbe_setup_mac_link_82598()
373 autoc_reg |= hw->mac.link_mode_select; in ixgbe_setup_mac_link_82598()
386 if (hw->mac.link_mode_select == IXGBE_AUTOC_LMS_KX4_AN || in ixgbe_setup_mac_link_82598()
387 hw->mac.link_mode_select == IXGBE_AUTOC_LMS_KX4_AN_1G_AN) { in ixgbe_setup_mac_link_82598()
518 (!(hw->mac.link_attach_type & IXGBE_AUTOC_10G_KX4))) { in ixgbe_setup_mac_link_speed_82598()
519 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_10G_LINK_NO_AN; in ixgbe_setup_mac_link_speed_82598()
521 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_1G_LINK_NO_AN; in ixgbe_setup_mac_link_speed_82598()
524 if (!(hw->mac.link_attach_type & IXGBE_AUTOC_1G_PMA_PMD)) in ixgbe_setup_mac_link_speed_82598()
525 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_1G_AN; in ixgbe_setup_mac_link_speed_82598()
527 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_KX4_AN_1G_AN; in ixgbe_setup_mac_link_speed_82598()
535 hw->mac.link_settings_loaded = true; in ixgbe_setup_mac_link_speed_82598()
565 hw->mac.link_attach_type = (IXGBE_AUTOC_10G_KX4 | IXGBE_AUTOC_1G_KX); in ixgbe_setup_copper_link_82598()
566 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_KX4_AN; in ixgbe_setup_copper_link_82598()
595 hw->mac.link_attach_type = (IXGBE_AUTOC_10G_KX4 | IXGBE_AUTOC_1G_KX); in ixgbe_setup_copper_link_speed_82598()
596 hw->mac.link_mode_select = IXGBE_AUTOC_LMS_KX4_AN; in ixgbe_setup_copper_link_speed_82598()
622 hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_82598()
629 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK, &analog_val); in ixgbe_reset_hw_82598()
632 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK, in ixgbe_reset_hw_82598()
635 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK, in ixgbe_reset_hw_82598()
638 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_10G, in ixgbe_reset_hw_82598()
641 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_10G, in ixgbe_reset_hw_82598()
644 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_1G, in ixgbe_reset_hw_82598()
647 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_1G, in ixgbe_reset_hw_82598()
650 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_AN, in ixgbe_reset_hw_82598()
653 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_AN, in ixgbe_reset_hw_82598()
704 if (hw->mac.link_settings_loaded) { in ixgbe_reset_hw_82598()
707 autoc |= hw->mac.link_attach_type; in ixgbe_reset_hw_82598()
708 autoc |= hw->mac.link_mode_select; in ixgbe_reset_hw_82598()
711 hw->mac.link_attach_type = in ixgbe_reset_hw_82598()
713 hw->mac.link_mode_select = (autoc & IXGBE_AUTOC_LMS_MASK); in ixgbe_reset_hw_82598()
714 hw->mac.link_settings_loaded = true; in ixgbe_reset_hw_82598()
718 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82598()
749 u32 rar_entries = hw->mac.num_rar_entries; in ixgbe_clear_vmdq_82598()
823 for (offset = 0; offset < hw->mac.vft_size; offset++) in ixgbe_clear_vfta_82598()
827 for (offset = 0; offset < hw->mac.vft_size; offset++) in ixgbe_clear_vfta_82598()
850 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_blink_led_start_82598()
1103 .mac = ixgbe_mac_82598EB,