Lines Matching refs:mac

64 	struct ixgbe_mac_info *mac = &hw->mac;  in ixgbe_init_mac_link_ops_82599()  local
72 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
74 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
76 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
78 mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
81 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
82 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
83 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
88 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
89 mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
90 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_82599()
93 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_82599()
100 mac->ops.setup_link = ixgbe_setup_mac_link_smartspeed; in ixgbe_init_mac_link_ops_82599()
102 mac->ops.setup_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
118 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local
153 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82599()
154 mac->ops.setup_link = ixgbe_setup_copper_link_82599; in ixgbe_init_phy_ops_82599()
155 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82599()
192 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
209 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
216 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
217 hw->mac.orig_autoc | IXGBE_AUTOC_LMS_10G_SERIAL, in ixgbe_setup_sfp_modules_82599()
233 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
258 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_read_82599()
293 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_write_82599()
309 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in prot_autoc_write_82599()
324 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_82599() local
339 mac->ops.reset_hw = ixgbe_reset_hw_82599; in ixgbe_init_ops_82599()
340 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2; in ixgbe_init_ops_82599()
341 mac->ops.get_media_type = ixgbe_get_media_type_82599; in ixgbe_init_ops_82599()
342 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_82599()
344 mac->ops.disable_sec_rx_path = ixgbe_disable_sec_rx_path_generic; in ixgbe_init_ops_82599()
345 mac->ops.enable_sec_rx_path = ixgbe_enable_sec_rx_path_generic; in ixgbe_init_ops_82599()
346 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82599; in ixgbe_init_ops_82599()
347 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82599; in ixgbe_init_ops_82599()
348 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82599; in ixgbe_init_ops_82599()
349 mac->ops.start_hw = ixgbe_start_hw_82599; in ixgbe_init_ops_82599()
350 mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic; in ixgbe_init_ops_82599()
351 mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic; in ixgbe_init_ops_82599()
352 mac->ops.get_device_caps = ixgbe_get_device_caps_generic; in ixgbe_init_ops_82599()
353 mac->ops.get_wwn_prefix = ixgbe_get_wwn_prefix_generic; in ixgbe_init_ops_82599()
354 mac->ops.get_fcoe_boot_status = ixgbe_get_fcoe_boot_status_generic; in ixgbe_init_ops_82599()
355 mac->ops.prot_autoc_read = prot_autoc_read_82599; in ixgbe_init_ops_82599()
356 mac->ops.prot_autoc_write = prot_autoc_write_82599; in ixgbe_init_ops_82599()
359 mac->ops.set_vmdq = ixgbe_set_vmdq_generic; in ixgbe_init_ops_82599()
360 mac->ops.set_vmdq_san_mac = ixgbe_set_vmdq_san_mac_generic; in ixgbe_init_ops_82599()
361 mac->ops.clear_vmdq = ixgbe_clear_vmdq_generic; in ixgbe_init_ops_82599()
362 mac->ops.insert_mac_addr = ixgbe_insert_mac_addr_generic; in ixgbe_init_ops_82599()
363 mac->rar_highwater = 1; in ixgbe_init_ops_82599()
364 mac->ops.set_vfta = ixgbe_set_vfta_generic; in ixgbe_init_ops_82599()
365 mac->ops.set_vlvf = ixgbe_set_vlvf_generic; in ixgbe_init_ops_82599()
366 mac->ops.clear_vfta = ixgbe_clear_vfta_generic; in ixgbe_init_ops_82599()
367 mac->ops.init_uta_tables = ixgbe_init_uta_tables_generic; in ixgbe_init_ops_82599()
368 mac->ops.setup_sfp = ixgbe_setup_sfp_modules_82599; in ixgbe_init_ops_82599()
369 mac->ops.set_mac_anti_spoofing = ixgbe_set_mac_anti_spoofing; in ixgbe_init_ops_82599()
370 mac->ops.set_vlan_anti_spoofing = ixgbe_set_vlan_anti_spoofing; in ixgbe_init_ops_82599()
373 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82599; in ixgbe_init_ops_82599()
374 mac->ops.check_link = ixgbe_check_mac_link_generic; in ixgbe_init_ops_82599()
375 mac->ops.setup_rxpba = ixgbe_set_rxpba_generic; in ixgbe_init_ops_82599()
378 mac->mcft_size = IXGBE_82599_MC_TBL_SIZE; in ixgbe_init_ops_82599()
379 mac->vft_size = IXGBE_82599_VFT_TBL_SIZE; in ixgbe_init_ops_82599()
380 mac->num_rar_entries = IXGBE_82599_RAR_ENTRIES; in ixgbe_init_ops_82599()
381 mac->rx_pb_size = IXGBE_82599_RX_PB_SIZE; in ixgbe_init_ops_82599()
382 mac->max_rx_queues = IXGBE_82599_MAX_RX_QUEUES; in ixgbe_init_ops_82599()
383 mac->max_tx_queues = IXGBE_82599_MAX_TX_QUEUES; in ixgbe_init_ops_82599()
384 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_init_ops_82599()
386 mac->arc_subsystem_valid = !!(IXGBE_READ_REG(hw, IXGBE_FWSM_BY_MAC(hw)) in ixgbe_init_ops_82599()
396 mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_generic; in ixgbe_init_ops_82599()
398 mac->ops.bypass_rw = ixgbe_bypass_rw_generic; in ixgbe_init_ops_82599()
399 mac->ops.bypass_valid_rd = ixgbe_bypass_valid_rd_generic; in ixgbe_init_ops_82599()
400 mac->ops.bypass_set = ixgbe_bypass_set_generic; in ixgbe_init_ops_82599()
401 mac->ops.bypass_rd_eep = ixgbe_bypass_rd_eep_generic; in ixgbe_init_ops_82599()
403 mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic; in ixgbe_init_ops_82599()
443 if (hw->mac.orig_link_settings_stored) in ixgbe_get_link_capabilities_82599()
444 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82599()
628 status = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_start_mac_link_82599()
640 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_start_mac_link_82599()
734 if (hw->mac.autotry_restart) { in ixgbe_flap_tx_laser_multispeed_fiber()
737 hw->mac.autotry_restart = FALSE; in ixgbe_flap_tx_laser_multispeed_fiber()
921 if (hw->mac.orig_link_settings_stored) in ixgbe_setup_mac_link_82599()
922 orig_autoc = hw->mac.orig_autoc; in ixgbe_setup_mac_link_82599()
967 status = hw->mac.ops.prot_autoc_write(hw, autoc, FALSE); in ixgbe_setup_mac_link_82599()
1045 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_82599()
1062 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_82599()
1085 hw->mac.ops.check_link(hw, &link_speed, &link_up, FALSE); in ixgbe_reset_hw_82599()
1114 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_82599()
1115 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_82599()
1134 if (hw->mac.orig_link_settings_stored == FALSE) { in ixgbe_reset_hw_82599()
1135 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82599()
1136 hw->mac.orig_autoc2 = autoc2; in ixgbe_reset_hw_82599()
1137 hw->mac.orig_link_settings_stored = TRUE; in ixgbe_reset_hw_82599()
1148 hw->mac.orig_autoc = in ixgbe_reset_hw_82599()
1149 (hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) | in ixgbe_reset_hw_82599()
1152 if (autoc != hw->mac.orig_autoc) { in ixgbe_reset_hw_82599()
1153 status = hw->mac.ops.prot_autoc_write(hw, in ixgbe_reset_hw_82599()
1154 hw->mac.orig_autoc, in ixgbe_reset_hw_82599()
1161 (hw->mac.orig_autoc2 & IXGBE_AUTOC2_UPPER_MASK)) { in ixgbe_reset_hw_82599()
1163 autoc2 |= (hw->mac.orig_autoc2 & in ixgbe_reset_hw_82599()
1170 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1177 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_82599()
1178 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82599()
1181 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1184 if (ixgbe_validate_mac_addr(hw->mac.san_addr) == 0) { in ixgbe_reset_hw_82599()
1186 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599()
1188 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1189 hw->mac.san_addr, 0, IXGBE_RAH_AV); in ixgbe_reset_hw_82599()
1192 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1196 hw->mac.num_rar_entries--; in ixgbe_reset_hw_82599()
1200 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_82599()
1201 &hw->mac.wwpn_prefix); in ixgbe_reset_hw_82599()
1421 if ((hw->mac.type == ixgbe_mac_X550) || in ixgbe_set_fdir_drop_queue_82599()
1422 (hw->mac.type == ixgbe_mac_X550EM_x) || in ixgbe_set_fdir_drop_queue_82599()
1423 (hw->mac.type == ixgbe_mac_X550EM_a)) in ixgbe_set_fdir_drop_queue_82599()
1833 switch (hw->mac.type) { in ixgbe_fdir_set_input_mask_82599()
1856 switch (hw->mac.type) { in ixgbe_fdir_set_input_mask_82599()
2137 hw->mac.autotry_restart = TRUE; in ixgbe_start_hw_82599()
2163 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper) in ixgbe_identify_phy_82599()
2288 hw->mac.ops.disable_sec_rx_path(hw); in ixgbe_enable_rx_dma_82599()
2295 hw->mac.ops.enable_sec_rx_path(hw); in ixgbe_enable_rx_dma_82599()