Lines Matching refs:mac
63 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local
71 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
73 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
75 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
77 mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
80 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
81 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
82 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
87 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
88 mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
89 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_82599()
92 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_82599()
99 mac->ops.setup_link = ixgbe_setup_mac_link_smartspeed; in ixgbe_init_mac_link_ops_82599()
101 mac->ops.setup_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
117 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local
152 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82599()
153 mac->ops.setup_link = ixgbe_setup_copper_link_82599; in ixgbe_init_phy_ops_82599()
154 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82599()
191 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
208 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
215 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
216 hw->mac.orig_autoc | IXGBE_AUTOC_LMS_10G_SERIAL, in ixgbe_setup_sfp_modules_82599()
232 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
257 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_read_82599()
292 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_write_82599()
308 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in prot_autoc_write_82599()
323 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_82599() local
338 mac->ops.reset_hw = ixgbe_reset_hw_82599; in ixgbe_init_ops_82599()
339 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2; in ixgbe_init_ops_82599()
340 mac->ops.get_media_type = ixgbe_get_media_type_82599; in ixgbe_init_ops_82599()
341 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_82599()
343 mac->ops.disable_sec_rx_path = ixgbe_disable_sec_rx_path_generic; in ixgbe_init_ops_82599()
344 mac->ops.enable_sec_rx_path = ixgbe_enable_sec_rx_path_generic; in ixgbe_init_ops_82599()
345 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82599; in ixgbe_init_ops_82599()
346 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82599; in ixgbe_init_ops_82599()
347 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82599; in ixgbe_init_ops_82599()
348 mac->ops.start_hw = ixgbe_start_hw_82599; in ixgbe_init_ops_82599()
349 mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic; in ixgbe_init_ops_82599()
350 mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic; in ixgbe_init_ops_82599()
351 mac->ops.get_device_caps = ixgbe_get_device_caps_generic; in ixgbe_init_ops_82599()
352 mac->ops.get_wwn_prefix = ixgbe_get_wwn_prefix_generic; in ixgbe_init_ops_82599()
353 mac->ops.get_fcoe_boot_status = ixgbe_get_fcoe_boot_status_generic; in ixgbe_init_ops_82599()
354 mac->ops.prot_autoc_read = prot_autoc_read_82599; in ixgbe_init_ops_82599()
355 mac->ops.prot_autoc_write = prot_autoc_write_82599; in ixgbe_init_ops_82599()
358 mac->ops.set_vmdq = ixgbe_set_vmdq_generic; in ixgbe_init_ops_82599()
359 mac->ops.set_vmdq_san_mac = ixgbe_set_vmdq_san_mac_generic; in ixgbe_init_ops_82599()
360 mac->ops.clear_vmdq = ixgbe_clear_vmdq_generic; in ixgbe_init_ops_82599()
361 mac->ops.insert_mac_addr = ixgbe_insert_mac_addr_generic; in ixgbe_init_ops_82599()
362 mac->rar_highwater = 1; in ixgbe_init_ops_82599()
363 mac->ops.set_vfta = ixgbe_set_vfta_generic; in ixgbe_init_ops_82599()
364 mac->ops.set_vlvf = ixgbe_set_vlvf_generic; in ixgbe_init_ops_82599()
365 mac->ops.clear_vfta = ixgbe_clear_vfta_generic; in ixgbe_init_ops_82599()
366 mac->ops.init_uta_tables = ixgbe_init_uta_tables_generic; in ixgbe_init_ops_82599()
367 mac->ops.setup_sfp = ixgbe_setup_sfp_modules_82599; in ixgbe_init_ops_82599()
368 mac->ops.set_mac_anti_spoofing = ixgbe_set_mac_anti_spoofing; in ixgbe_init_ops_82599()
369 mac->ops.set_vlan_anti_spoofing = ixgbe_set_vlan_anti_spoofing; in ixgbe_init_ops_82599()
372 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82599; in ixgbe_init_ops_82599()
373 mac->ops.check_link = ixgbe_check_mac_link_generic; in ixgbe_init_ops_82599()
374 mac->ops.setup_rxpba = ixgbe_set_rxpba_generic; in ixgbe_init_ops_82599()
377 mac->mcft_size = IXGBE_82599_MC_TBL_SIZE; in ixgbe_init_ops_82599()
378 mac->vft_size = IXGBE_82599_VFT_TBL_SIZE; in ixgbe_init_ops_82599()
379 mac->num_rar_entries = IXGBE_82599_RAR_ENTRIES; in ixgbe_init_ops_82599()
380 mac->rx_pb_size = IXGBE_82599_RX_PB_SIZE; in ixgbe_init_ops_82599()
381 mac->max_rx_queues = IXGBE_82599_MAX_RX_QUEUES; in ixgbe_init_ops_82599()
382 mac->max_tx_queues = IXGBE_82599_MAX_TX_QUEUES; in ixgbe_init_ops_82599()
383 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_init_ops_82599()
385 mac->arc_subsystem_valid = !!(IXGBE_READ_REG(hw, IXGBE_FWSM_BY_MAC(hw)) in ixgbe_init_ops_82599()
395 mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_generic; in ixgbe_init_ops_82599()
398 mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic; in ixgbe_init_ops_82599()
438 if (hw->mac.orig_link_settings_stored) in ixgbe_get_link_capabilities_82599()
439 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82599()
623 status = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_start_mac_link_82599()
635 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_start_mac_link_82599()
729 if (hw->mac.autotry_restart) { in ixgbe_flap_tx_laser_multispeed_fiber()
732 hw->mac.autotry_restart = FALSE; in ixgbe_flap_tx_laser_multispeed_fiber()
916 if (hw->mac.orig_link_settings_stored) in ixgbe_setup_mac_link_82599()
917 orig_autoc = hw->mac.orig_autoc; in ixgbe_setup_mac_link_82599()
962 status = hw->mac.ops.prot_autoc_write(hw, autoc, FALSE); in ixgbe_setup_mac_link_82599()
1040 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_82599()
1057 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_82599()
1080 hw->mac.ops.check_link(hw, &link_speed, &link_up, FALSE); in ixgbe_reset_hw_82599()
1109 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_82599()
1110 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_82599()
1129 if (hw->mac.orig_link_settings_stored == FALSE) { in ixgbe_reset_hw_82599()
1130 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82599()
1131 hw->mac.orig_autoc2 = autoc2; in ixgbe_reset_hw_82599()
1132 hw->mac.orig_link_settings_stored = TRUE; in ixgbe_reset_hw_82599()
1143 hw->mac.orig_autoc = in ixgbe_reset_hw_82599()
1144 (hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) | in ixgbe_reset_hw_82599()
1147 if (autoc != hw->mac.orig_autoc) { in ixgbe_reset_hw_82599()
1148 status = hw->mac.ops.prot_autoc_write(hw, in ixgbe_reset_hw_82599()
1149 hw->mac.orig_autoc, in ixgbe_reset_hw_82599()
1156 (hw->mac.orig_autoc2 & IXGBE_AUTOC2_UPPER_MASK)) { in ixgbe_reset_hw_82599()
1158 autoc2 |= (hw->mac.orig_autoc2 & in ixgbe_reset_hw_82599()
1165 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1172 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_82599()
1173 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82599()
1176 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1179 if (ixgbe_validate_mac_addr(hw->mac.san_addr) == 0) { in ixgbe_reset_hw_82599()
1180 hw->mac.ops.set_rar(hw, hw->mac.num_rar_entries - 1, in ixgbe_reset_hw_82599()
1181 hw->mac.san_addr, 0, IXGBE_RAH_AV); in ixgbe_reset_hw_82599()
1184 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599()
1187 hw->mac.num_rar_entries--; in ixgbe_reset_hw_82599()
1191 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_82599()
1192 &hw->mac.wwpn_prefix); in ixgbe_reset_hw_82599()
1384 if ((hw->mac.type == ixgbe_mac_X550) || in ixgbe_init_fdir_perfect_82599()
1385 (hw->mac.type == ixgbe_mac_X550EM_x)) in ixgbe_init_fdir_perfect_82599()
1414 if ((hw->mac.type == ixgbe_mac_X550) || in ixgbe_set_fdir_drop_queue_82599()
1415 (hw->mac.type == ixgbe_mac_X550EM_x)) in ixgbe_set_fdir_drop_queue_82599()
1834 switch (hw->mac.type) { in ixgbe_fdir_set_input_mask_82599()
2110 hw->mac.autotry_restart = TRUE; in ixgbe_start_hw_82599()
2136 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper) in ixgbe_identify_phy_82599()
2261 hw->mac.ops.disable_sec_rx_path(hw); in ixgbe_enable_rx_dma_82599()
2268 hw->mac.ops.enable_sec_rx_path(hw); in ixgbe_enable_rx_dma_82599()