Lines Matching refs:mac

56 	struct ixgbe_mac_info *mac = &hw->mac;  in ixgbe_init_ops_X550()  local
63 mac->ops.dmac_config = ixgbe_dmac_config_X550; in ixgbe_init_ops_X550()
64 mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550; in ixgbe_init_ops_X550()
65 mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550; in ixgbe_init_ops_X550()
66 mac->ops.setup_eee = NULL; in ixgbe_init_ops_X550()
67 mac->ops.set_source_address_pruning = in ixgbe_init_ops_X550()
69 mac->ops.set_ethertype_anti_spoofing = in ixgbe_init_ops_X550()
72 mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic; in ixgbe_init_ops_X550()
82 mac->ops.disable_mdd = ixgbe_disable_mdd_X550; in ixgbe_init_ops_X550()
83 mac->ops.enable_mdd = ixgbe_enable_mdd_X550; in ixgbe_init_ops_X550()
84 mac->ops.mdd_event = ixgbe_mdd_event_X550; in ixgbe_init_ops_X550()
85 mac->ops.restore_mdd_vf = ixgbe_restore_mdd_vf_X550; in ixgbe_init_ops_X550()
86 mac->ops.disable_rx = ixgbe_disable_rx_x550; in ixgbe_init_ops_X550()
88 mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550; in ixgbe_init_ops_X550()
91 hw->mac.ops.led_on = NULL; in ixgbe_init_ops_X550()
92 hw->mac.ops.led_off = NULL; in ixgbe_init_ops_X550()
96 hw->mac.ops.led_on = ixgbe_led_on_t_X550em; in ixgbe_init_ops_X550()
97 hw->mac.ops.led_off = ixgbe_led_off_t_X550em; in ixgbe_init_ops_X550()
257 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
277 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
283 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
304 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
306 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
318 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
347 hw->mac.ops.set_lan_id(hw); in ixgbe_identify_phy_x550em()
606 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM() local
623 mac->ops.bypass_rw = NULL; in ixgbe_init_ops_X550EM()
624 mac->ops.bypass_valid_rd = NULL; in ixgbe_init_ops_X550EM()
625 mac->ops.bypass_set = NULL; in ixgbe_init_ops_X550EM()
626 mac->ops.bypass_rd_eep = NULL; in ixgbe_init_ops_X550EM()
629 mac->ops.get_san_mac_addr = NULL; in ixgbe_init_ops_X550EM()
630 mac->ops.set_san_mac_addr = NULL; in ixgbe_init_ops_X550EM()
631 mac->ops.get_wwn_prefix = NULL; in ixgbe_init_ops_X550EM()
632 mac->ops.get_fcoe_boot_status = NULL; in ixgbe_init_ops_X550EM()
635 mac->ops.disable_sec_rx_path = NULL; in ixgbe_init_ops_X550EM()
636 mac->ops.enable_sec_rx_path = NULL; in ixgbe_init_ops_X550EM()
639 mac->ops.prot_autoc_read = NULL; in ixgbe_init_ops_X550EM()
640 mac->ops.prot_autoc_write = NULL; in ixgbe_init_ops_X550EM()
644 mac->ops.get_bus_info = ixgbe_get_bus_info_X550em; in ixgbe_init_ops_X550EM()
647 mac->ops.get_media_type = ixgbe_get_media_type_X550em; in ixgbe_init_ops_X550EM()
648 mac->ops.setup_sfp = ixgbe_setup_sfp_modules_X550em; in ixgbe_init_ops_X550EM()
649 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_X550em; in ixgbe_init_ops_X550EM()
650 mac->ops.reset_hw = ixgbe_reset_hw_X550em; in ixgbe_init_ops_X550EM()
651 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_X550EM()
654 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) in ixgbe_init_ops_X550EM()
655 mac->ops.setup_fc = ixgbe_setup_fc_generic; in ixgbe_init_ops_X550EM()
657 mac->ops.setup_fc = ixgbe_setup_fc_X550em; in ixgbe_init_ops_X550EM()
664 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM()
670 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM()
678 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_init_ops_X550EM()
790 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM_a() local
800 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550; in ixgbe_init_ops_X550EM_a()
801 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550; in ixgbe_init_ops_X550EM_a()
803 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550a; in ixgbe_init_ops_X550EM_a()
804 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550a; in ixgbe_init_ops_X550EM_a()
806 mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550a; in ixgbe_init_ops_X550EM_a()
807 mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550a; in ixgbe_init_ops_X550EM_a()
809 switch (mac->ops.get_media_type(hw)) { in ixgbe_init_ops_X550EM_a()
811 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM_a()
812 mac->ops.fc_autoneg = ixgbe_fc_autoneg_fiber_x550em_a; in ixgbe_init_ops_X550EM_a()
815 mac->ops.fc_autoneg = ixgbe_fc_autoneg_backplane_x550em_a; in ixgbe_init_ops_X550EM_a()
816 mac->ops.setup_fc = ixgbe_setup_fc_backplane_x550em_a; in ixgbe_init_ops_X550EM_a()
825 mac->ops.fc_autoneg = ixgbe_fc_autoneg_sgmii_x550em_a; in ixgbe_init_ops_X550EM_a()
826 mac->ops.setup_fc = ixgbe_fc_autoneg_fw; in ixgbe_init_ops_X550EM_a()
827 mac->ops.setup_eee = ixgbe_setup_eee_fw; in ixgbe_init_ops_X550EM_a()
848 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550EM_x() local
857 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550; in ixgbe_init_ops_X550EM_x()
858 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550; in ixgbe_init_ops_X550EM_x()
859 mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em; in ixgbe_init_ops_X550EM_x()
860 mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em; in ixgbe_init_ops_X550EM_x()
869 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM_x()
870 mac->ops.setup_eee = NULL; in ixgbe_init_ops_X550EM_x()
871 mac->ops.init_led_link_act = NULL; in ixgbe_init_ops_X550EM_x()
896 if (!hw->mac.dmac_config.watchdog_timer) in ixgbe_dmac_config_X550()
906 reg |= (hw->mac.dmac_config.watchdog_timer * 100) / 4096; in ixgbe_dmac_config_X550()
910 if (hw->mac.dmac_config.fcoe_en) { in ixgbe_dmac_config_X550()
911 high_pri_tc = 1 << hw->mac.dmac_config.fcoe_tc; in ixgbe_dmac_config_X550()
939 switch (hw->mac.dmac_config.link_speed) { in ixgbe_dmac_config_tcs_X550()
960 if (tc < hw->mac.dmac_config.num_tcs) { in ixgbe_dmac_config_tcs_X550()
1638 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1648 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1652 if (hw->mac.type == ixgbe_mac_X550EM_a) { in ixgbe_restart_an_internal_phy_x550em()
1656 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1666 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1683 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii() local
1687 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1698 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1704 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1712 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1718 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1730 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii()
1752 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sgmii_fw() local
1756 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1767 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1773 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1781 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1787 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1793 rc = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1805 rc = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sgmii_fw()
1822 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em() local
1826 switch (hw->mac.ops.get_media_type(hw)) { in ixgbe_init_mac_link_ops_X550em()
1831 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
1832 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
1833 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_X550em()
1834 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_X550em()
1835 mac->ops.set_rate_select_speed = in ixgbe_init_mac_link_ops_X550em()
1840 mac->ops.setup_mac_link = in ixgbe_init_mac_link_ops_X550em()
1843 mac->ops.setup_mac_link = in ixgbe_init_mac_link_ops_X550em()
1849 if (hw->mac.type == ixgbe_mac_X550EM_a) { in ixgbe_init_mac_link_ops_X550em()
1852 mac->ops.setup_link = ixgbe_setup_sgmii_fw; in ixgbe_init_mac_link_ops_X550em()
1853 mac->ops.check_link = in ixgbe_init_mac_link_ops_X550em()
1856 mac->ops.setup_link = in ixgbe_init_mac_link_ops_X550em()
1860 mac->ops.setup_link = ixgbe_setup_mac_link_t_X550em; in ixgbe_init_mac_link_ops_X550em()
1861 mac->ops.check_link = ixgbe_check_link_t_X550em; in ixgbe_init_mac_link_ops_X550em()
1867 mac->ops.setup_link = ixgbe_setup_sgmii; in ixgbe_init_mac_link_ops_X550em()
1921 if (hw->mac.type == ixgbe_mac_X550EM_a) { in ixgbe_get_link_capabilities_X550em()
2063 if (hw->mac.type != ixgbe_mac_X550EM_a) { in ixgbe_enable_lasi_ext_t_x550em()
2147 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2165 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2169 if (hw->mac.type == ixgbe_mac_X550EM_a) { in ixgbe_setup_kr_speed_x550em()
2171 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2184 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2253 if (hw->mac.type == ixgbe_mac_X550EM_a && in ixgbe_read_mng_if_sel_x550em()
2278 hw->mac.ops.set_lan_id(hw); in ixgbe_init_phy_ops_X550em()
2281 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) { in ixgbe_init_phy_ops_X550em()
2363 if ((hw->mac.type == ixgbe_mac_X550EM_x) && in ixgbe_init_phy_ops_X550em()
2436 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
2471 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
2492 hw->mac.ops.check_link(hw, &link_speed, &link_up, FALSE); in ixgbe_reset_hw_X550em()
2497 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
2506 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
2527 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_X550em()
2528 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_X550em()
2533 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em()
2539 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_X550em()
2540 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_X550em()
2667 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_sfi_x550a() local
2672 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2696 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2739 ret_val = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_mac_link_sfp_x550a()
2750 ret_val = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_mac_link_sfp_x550a()
2819 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_ixfi_x550em_x() local
2824 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2830 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2837 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2845 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2850 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2858 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2865 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2874 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2890 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_setup_ixfi_x550em() local
2895 if (mac->type != ixgbe_mac_X550EM_x) in ixgbe_setup_ixfi_x550em()
2899 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2921 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2928 if (hw->mac.type == ixgbe_mac_X550EM_x) { in ixgbe_setup_ixfi_x550em()
2991 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_setup_internal_phy_t_x550em()
2994 if (hw->mac.type == ixgbe_mac_X550EM_x && in ixgbe_setup_internal_phy_t_x550em()
3053 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3061 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3068 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3075 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3082 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3088 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3095 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3101 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3136 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
3147 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
3173 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
3222 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
3274 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == in ixgbe_write_ee_hostif_X550()
3277 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_X550()
3304 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
3320 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
3628 if (hw->mac.type == ixgbe_mac_X550EM_a) { in ixgbe_get_supported_physical_layer_X550em()
3677 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) in ixgbe_get_supported_physical_layer_X550em()
3698 hw->mac.ops.set_lan_id(hw); in ixgbe_get_bus_info_X550em()
3723 hw->mac.set_lben = TRUE; in ixgbe_disable_rx_x550()
3725 hw->mac.set_lben = FALSE; in ixgbe_disable_rx_x550()
3765 if ((hw->mac.type == ixgbe_mac_X550EM_x) && in ixgbe_enter_lplu_t_x550em()
3848 status = hw->mac.ops.setup_link(hw, lcd_speed, FALSE); in ixgbe_enter_lplu_t_x550em()
3955 ret_val = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_X550em()
3966 ret_val = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_X550em()
4008 hw->mac.ops.check_link(hw, &speed, &link_up, FALSE); in ixgbe_fc_autoneg_backplane_x550em_a()
4015 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4029 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4038 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4097 hw->mac.ops.check_link(hw, &speed, &link_up, FALSE); in ixgbe_fc_autoneg_sgmii_x550em_a()
4155 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4206 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4365 if (hw->mac.ops.acquire_swfw_sync(hw, mask)) in ixgbe_read_phy_reg_x550a()
4370 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_read_phy_reg_x550a()
4393 if (hw->mac.ops.acquire_swfw_sync(hw, mask) == IXGBE_SUCCESS) { in ixgbe_write_phy_reg_x550a()
4396 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_write_phy_reg_x550a()
4461 if (hw->mac.type == ixgbe_mac_X550EM_x && in ixgbe_setup_mac_link_t_X550em()
4487 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_check_link_t_X550em()