• Home
  • Raw
  • Download

Lines Matching refs:mac

65 	struct ixgbe_mac_info *mac = &hw->mac;  in ixgbe_init_mac_link_ops_82599()  local
70 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
72 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
74 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
76 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
78 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
79 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
80 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
85 mac->ops.setup_link = &ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
86 mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
87 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_82599()
90 if ((mac->ops.get_media_type(hw) == in ixgbe_init_mac_link_ops_82599()
95 mac->ops.setup_link = &ixgbe_setup_mac_link_smartspeed; in ixgbe_init_mac_link_ops_82599()
97 mac->ops.setup_link = &ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
117 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
132 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_setup_sfp_modules_82599()
141 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
142 hw->mac.orig_autoc | IXGBE_AUTOC_LMS_10G_SERIAL, 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()
184 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_read_82599()
219 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_write_82599()
235 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in prot_autoc_write_82599()
242 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82599() local
246 mac->mcft_size = IXGBE_82599_MC_TBL_SIZE; in ixgbe_get_invariants_82599()
247 mac->vft_size = IXGBE_82599_VFT_TBL_SIZE; in ixgbe_get_invariants_82599()
248 mac->num_rar_entries = IXGBE_82599_RAR_ENTRIES; in ixgbe_get_invariants_82599()
249 mac->rx_pb_size = IXGBE_82599_RX_PB_SIZE; in ixgbe_get_invariants_82599()
250 mac->max_rx_queues = IXGBE_82599_MAX_RX_QUEUES; in ixgbe_get_invariants_82599()
251 mac->max_tx_queues = IXGBE_82599_MAX_TX_QUEUES; in ixgbe_get_invariants_82599()
252 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_82599()
268 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82599() local
298 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82599()
299 mac->ops.setup_link = &ixgbe_setup_copper_link_82599; in ixgbe_init_phy_ops_82599()
300 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82599()
348 if (hw->mac.orig_link_settings_stored) in ixgbe_get_link_capabilities_82599()
349 autoc = hw->mac.orig_autoc; in ixgbe_get_link_capabilities_82599()
513 status = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_start_mac_link_82599()
525 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM); in ixgbe_start_mac_link_82599()
616 if (hw->mac.autotry_restart) { in ixgbe_flap_tx_laser_multispeed_fiber()
619 hw->mac.autotry_restart = false; in ixgbe_flap_tx_laser_multispeed_fiber()
707 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_smartspeed()
742 status = hw->mac.ops.check_link(hw, &link_speed, in ixgbe_setup_mac_link_smartspeed()
789 status = hw->mac.ops.get_link_capabilities(hw, &link_capabilities, in ixgbe_setup_mac_link_82599()
800 if (hw->mac.orig_link_settings_stored) in ixgbe_setup_mac_link_82599()
801 orig_autoc = hw->mac.orig_autoc; in ixgbe_setup_mac_link_82599()
846 status = hw->mac.ops.prot_autoc_write(hw, autoc, false); in ixgbe_setup_mac_link_82599()
918 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_82599()
935 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_82599()
958 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_82599()
988 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_82599()
989 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_82599()
1008 if (hw->mac.orig_link_settings_stored == false) { in ixgbe_reset_hw_82599()
1009 hw->mac.orig_autoc = autoc; in ixgbe_reset_hw_82599()
1010 hw->mac.orig_autoc2 = autoc2; in ixgbe_reset_hw_82599()
1011 hw->mac.orig_link_settings_stored = true; in ixgbe_reset_hw_82599()
1022 hw->mac.orig_autoc = in ixgbe_reset_hw_82599()
1023 (hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) | in ixgbe_reset_hw_82599()
1026 if (autoc != hw->mac.orig_autoc) { in ixgbe_reset_hw_82599()
1027 status = hw->mac.ops.prot_autoc_write(hw, in ixgbe_reset_hw_82599()
1028 hw->mac.orig_autoc, in ixgbe_reset_hw_82599()
1035 (hw->mac.orig_autoc2 & IXGBE_AUTOC2_UPPER_MASK)) { in ixgbe_reset_hw_82599()
1037 autoc2 |= (hw->mac.orig_autoc2 & in ixgbe_reset_hw_82599()
1044 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1051 hw->mac.num_rar_entries = IXGBE_82599_RAR_ENTRIES; in ixgbe_reset_hw_82599()
1052 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82599()
1055 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1058 if (is_valid_ether_addr(hw->mac.san_addr)) { in ixgbe_reset_hw_82599()
1060 hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1; in ixgbe_reset_hw_82599()
1062 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1063 hw->mac.san_addr, 0, IXGBE_RAH_AV); in ixgbe_reset_hw_82599()
1066 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1070 hw->mac.num_rar_entries--; in ixgbe_reset_hw_82599()
1074 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_82599()
1075 &hw->mac.wwpn_prefix); in ixgbe_reset_hw_82599()
1611 switch (hw->mac.type) { in ixgbe_fdir_set_input_mask_82599()
1792 hw->mac.autotry_restart = true; in ixgbe_start_hw_82599()
1813 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper) in ixgbe_identify_phy_82599()
1846 hw->mac.ops.disable_rx_buff(hw); in ixgbe_enable_rx_dma_82599()
1849 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx_dma_82599()
1851 hw->mac.ops.disable_rx(hw); in ixgbe_enable_rx_dma_82599()
1853 hw->mac.ops.enable_rx_buff(hw); in ixgbe_enable_rx_dma_82599()
2249 .mac = ixgbe_mac_82599EB,