Lines Matching refs:mac

91 	struct ixgbe_mac_info *mac = &hw->mac;  in ixgbe_init_mac_link_ops_82599()  local
96 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
98 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
100 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
102 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
104 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
105 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
106 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
111 mac->ops.setup_link = &ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
113 if ((mac->ops.get_media_type(hw) == in ixgbe_init_mac_link_ops_82599()
118 mac->ops.setup_link = &ixgbe_setup_mac_link_smartspeed; in ixgbe_init_mac_link_ops_82599()
120 mac->ops.setup_link = &ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
140 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
155 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
164 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
165 hw->mac.orig_autoc | IXGBE_AUTOC_LMS_10G_SERIAL, in ixgbe_setup_sfp_modules_82599()
178 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
207 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_read_82599()
242 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_write_82599()
258 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in prot_autoc_write_82599()
265 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82599() local
269 mac->mcft_size = IXGBE_82599_MC_TBL_SIZE; in ixgbe_get_invariants_82599()
270 mac->vft_size = IXGBE_82599_VFT_TBL_SIZE; in ixgbe_get_invariants_82599()
271 mac->num_rar_entries = IXGBE_82599_RAR_ENTRIES; in ixgbe_get_invariants_82599()
272 mac->rx_pb_size = IXGBE_82599_RX_PB_SIZE; in ixgbe_get_invariants_82599()
273 mac->max_rx_queues = IXGBE_82599_MAX_RX_QUEUES; in ixgbe_get_invariants_82599()
274 mac->max_tx_queues = IXGBE_82599_MAX_TX_QUEUES; in ixgbe_get_invariants_82599()
275 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_82599()
291 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local
321 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82599()
322 mac->ops.setup_link = &ixgbe_setup_copper_link_82599; in ixgbe_init_phy_ops_82599()
323 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82599()
373 if (hw->mac.orig_link_settings_stored) in ixgbe_get_link_capabilities_82599()
374 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82599()
542 status = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_start_mac_link_82599()
554 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_start_mac_link_82599()
645 if (hw->mac.autotry_restart) { in ixgbe_flap_tx_laser_multispeed_fiber()
648 hw->mac.autotry_restart = false; in ixgbe_flap_tx_laser_multispeed_fiber()
674 status = hw->mac.ops.get_link_capabilities(hw, &link_speed, in ixgbe_setup_mac_link_multispeed_fiber()
690 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
723 if (hw->mac.ops.flap_tx_laser) in ixgbe_setup_mac_link_multispeed_fiber()
724 hw->mac.ops.flap_tx_laser(hw); in ixgbe_setup_mac_link_multispeed_fiber()
736 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_multispeed_fiber()
752 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
786 if (hw->mac.ops.flap_tx_laser) in ixgbe_setup_mac_link_multispeed_fiber()
787 hw->mac.ops.flap_tx_laser(hw); in ixgbe_setup_mac_link_multispeed_fiber()
793 status = hw->mac.ops.check_link(hw, &link_speed, &link_up, in ixgbe_setup_mac_link_multispeed_fiber()
880 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_smartspeed()
915 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_smartspeed()
962 status = hw->mac.ops.get_link_capabilities(hw, &link_capabilities, in ixgbe_setup_mac_link_82599()
973 if (hw->mac.orig_link_settings_stored) in ixgbe_setup_mac_link_82599()
974 orig_autoc = hw->mac.orig_autoc; in ixgbe_setup_mac_link_82599()
1019 status = hw->mac.ops.prot_autoc_write(hw, autoc, false); in ixgbe_setup_mac_link_82599()
1091 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_82599()
1108 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_82599()
1131 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_82599()
1160 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_82599()
1161 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_82599()
1180 if (hw->mac.orig_link_settings_stored == false) { in ixgbe_reset_hw_82599()
1181 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82599()
1182 hw->mac.orig_autoc2 = autoc2; in ixgbe_reset_hw_82599()
1183 hw->mac.orig_link_settings_stored = true; in ixgbe_reset_hw_82599()
1194 hw->mac.orig_autoc = in ixgbe_reset_hw_82599()
1195 (hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) | in ixgbe_reset_hw_82599()
1198 if (autoc != hw->mac.orig_autoc) { in ixgbe_reset_hw_82599()
1199 status = hw->mac.ops.prot_autoc_write(hw, in ixgbe_reset_hw_82599()
1200 hw->mac.orig_autoc, in ixgbe_reset_hw_82599()
1207 (hw->mac.orig_autoc2 & IXGBE_AUTOC2_UPPER_MASK)) { in ixgbe_reset_hw_82599()
1209 autoc2 |= (hw->mac.orig_autoc2 & in ixgbe_reset_hw_82599()
1216 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1223 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_82599()
1224 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82599()
1227 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1230 if (is_valid_ether_addr(hw->mac.san_addr)) { in ixgbe_reset_hw_82599()
1231 hw->mac.ops.set_rar(hw, hw->mac.num_rar_entries - 1, in ixgbe_reset_hw_82599()
1232 hw->mac.san_addr, 0, IXGBE_RAH_AV); in ixgbe_reset_hw_82599()
1235 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599()
1238 hw->mac.num_rar_entries--; in ixgbe_reset_hw_82599()
1242 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_82599()
1243 &hw->mac.wwpn_prefix); in ixgbe_reset_hw_82599()
1921 hw->mac.autotry_restart = true; in ixgbe_start_hw_82599()
1945 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper) in ixgbe_identify_phy_82599()
1978 hw->mac.ops.disable_rx_buff(hw); in ixgbe_enable_rx_dma_82599()
1981 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx_dma_82599()
1983 hw->mac.ops.disable_rx(hw); in ixgbe_enable_rx_dma_82599()
1985 hw->mac.ops.enable_rx_buff(hw); in ixgbe_enable_rx_dma_82599()
2375 .mac = ixgbe_mac_82599EB,