Lines Matching refs:mac

17 	struct ixgbe_mac_info *mac = &hw->mac;  in ixgbe_get_invariants_X550_x()  local
24 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_x()
46 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_a() local
52 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_a()
233 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
249 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
254 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
273 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
275 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
286 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
700 ret = hw->mac.ops.acquire_swfw_sync(hw, gssr); in ixgbe_read_iosf_sb_reg_x550()
727 hw->mac.ops.release_swfw_sync(hw, gssr); in ixgbe_read_iosf_sb_reg_x550()
865 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
914 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
1099 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
1110 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
1203 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == 0) { in ixgbe_write_ee_hostif_X550()
1205 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_X550()
1247 hw->mac.ops.set_lan_id(hw); in ixgbe_get_bus_info_X550em()
1282 hw->mac.set_lben = true; in ixgbe_disable_rx_x550()
1284 hw->mac.set_lben = false; in ixgbe_disable_rx_x550()
1362 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
1377 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
1397 ret = hw->mac.ops.acquire_swfw_sync(hw, gssr); in ixgbe_write_iosf_sb_reg_x550()
1423 hw->mac.ops.release_swfw_sync(hw, gssr); in ixgbe_write_iosf_sb_reg_x550()
1511 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1521 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1525 if (hw->mac.type == ixgbe_mac_x550em_a) { in ixgbe_restart_an_internal_phy_x550em()
1529 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1539 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1556 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_ixfi_x550em() local
1561 if (mac->type != ixgbe_mac_X550EM_x) in ixgbe_setup_ixfi_x550em()
1594 if (hw->mac.type == ixgbe_mac_X550EM_x) { in ixgbe_setup_ixfi_x550em()
1696 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sfi_x550a() local
1701 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
1725 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
1764 ret_val = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_mac_link_sfp_n()
1774 ret_val = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_mac_link_sfp_n()
1888 if (hw->mac.type == ixgbe_mac_X550EM_x && in ixgbe_setup_mac_link_t_X550em()
1915 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_check_link_t_X550em()
1955 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii() local
1959 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1970 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1976 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1984 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1990 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1996 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
2008 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
2027 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii_fw() local
2031 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2042 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2048 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2056 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2062 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2068 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2080 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
2112 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg_sgmii_x550em_a()
2144 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em_a() local
2146 switch (mac->ops.get_media_type(hw)) { in ixgbe_init_mac_link_ops_X550em_a()
2148 mac->ops.setup_fc = NULL; in ixgbe_init_mac_link_ops_X550em_a()
2149 mac->ops.fc_autoneg = ixgbe_fc_autoneg_fiber_x550em_a; in ixgbe_init_mac_link_ops_X550em_a()
2154 mac->ops.setup_link = ixgbe_setup_mac_link_t_X550em; in ixgbe_init_mac_link_ops_X550em_a()
2157 mac->ops.fc_autoneg = ixgbe_fc_autoneg_sgmii_x550em_a; in ixgbe_init_mac_link_ops_X550em_a()
2158 mac->ops.setup_fc = ixgbe_fc_autoneg_fw; in ixgbe_init_mac_link_ops_X550em_a()
2159 mac->ops.setup_link = ixgbe_setup_sgmii_fw; in ixgbe_init_mac_link_ops_X550em_a()
2160 mac->ops.check_link = ixgbe_check_mac_link_generic; in ixgbe_init_mac_link_ops_X550em_a()
2163 mac->ops.fc_autoneg = ixgbe_fc_autoneg_backplane_x550em_a; in ixgbe_init_mac_link_ops_X550em_a()
2164 mac->ops.setup_fc = ixgbe_setup_fc_backplane_x550em_a; in ixgbe_init_mac_link_ops_X550em_a()
2176 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em() local
2178 mac->ops.setup_fc = ixgbe_setup_fc_x550em; in ixgbe_init_mac_link_ops_X550em()
2180 switch (mac->ops.get_media_type(hw)) { in ixgbe_init_mac_link_ops_X550em()
2185 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
2186 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
2187 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
2188 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_X550em()
2191 mac->ops.setup_mac_link = ixgbe_setup_mac_link_sfp_n; in ixgbe_init_mac_link_ops_X550em()
2194 mac->ops.setup_mac_link = in ixgbe_init_mac_link_ops_X550em()
2198 mac->ops.setup_mac_link = in ixgbe_init_mac_link_ops_X550em()
2202 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_X550em()
2208 mac->ops.setup_link = ixgbe_setup_mac_link_t_X550em; in ixgbe_init_mac_link_ops_X550em()
2209 mac->ops.setup_fc = ixgbe_setup_fc_generic; in ixgbe_init_mac_link_ops_X550em()
2210 mac->ops.check_link = ixgbe_check_link_t_X550em; in ixgbe_init_mac_link_ops_X550em()
2215 mac->ops.setup_link = ixgbe_setup_sgmii; in ixgbe_init_mac_link_ops_X550em()
2222 if (hw->mac.type == ixgbe_mac_x550em_a) in ixgbe_init_mac_link_ops_X550em()
2295 if (hw->mac.type == ixgbe_mac_x550em_a) { in ixgbe_get_link_capabilities_X550em()
2435 if (hw->mac.type != ixgbe_mac_x550em_a) { in ixgbe_enable_lasi_ext_t_x550em()
2538 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2556 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2560 if (hw->mac.type == ixgbe_mac_x550em_a) { in ixgbe_setup_kr_speed_x550em()
2562 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2575 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2646 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_setup_internal_phy_t_x550em()
2649 if (!(hw->mac.type == ixgbe_mac_X550EM_x && in ixgbe_setup_internal_phy_t_x550em()
2905 rc = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_x550em()
2918 rc = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_x550em()
2956 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg_backplane_x550em_a()
2963 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
2976 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
2985 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
3108 status = hw->mac.ops.setup_link(hw, lcd_speed, false); in ixgbe_enter_lplu_t_x550em()
3178 if (hw->mac.type == ixgbe_mac_x550em_a && in ixgbe_read_mng_if_sel_x550em()
3197 hw->mac.ops.set_lan_id(hw); in ixgbe_init_phy_ops_X550em()
3201 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) { in ixgbe_init_phy_ops_X550em()
3247 if (hw->mac.type == ixgbe_mac_X550EM_x && in ixgbe_init_phy_ops_X550em()
3404 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
3428 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
3448 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_X550em()
3453 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
3462 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
3484 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_X550em()
3485 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_X550em()
3490 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em()
3496 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_X550em()
3497 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_X550em()
3580 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
3630 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
3766 if (hw->mac.ops.acquire_swfw_sync(hw, mask)) in ixgbe_read_phy_reg_x550a()
3771 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_phy_reg_x550a()
3792 if (hw->mac.ops.acquire_swfw_sync(hw, mask)) in ixgbe_write_phy_reg_x550a()
3796 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_write_phy_reg_x550a()
4054 .mac = ixgbe_mac_X550,
4064 .mac = ixgbe_mac_X550EM_x,
4075 .mac = ixgbe_mac_X550EM_x,
4085 .mac = ixgbe_mac_x550em_a,
4095 .mac = ixgbe_mac_x550em_a,