Home | History | Annotate | Download | only in ixgbe

Lines Matching refs:ops

72 	mac->ops.dmac_config = ixgbe_dmac_config_X550;
73 mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550;
74 mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550;
75 mac->ops.setup_eee = NULL;
76 mac->ops.set_source_address_pruning =
78 mac->ops.set_ethertype_anti_spoofing =
81 mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
82 eeprom->ops.init_params = ixgbe_init_eeprom_params_X550;
83 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
84 eeprom->ops.read = ixgbe_read_ee_hostif_X550;
85 eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
86 eeprom->ops.write = ixgbe_write_ee_hostif_X550;
87 eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
88 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
89 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;
91 mac->ops.disable_mdd = ixgbe_disable_mdd_X550;
92 mac->ops.enable_mdd = ixgbe_enable_mdd_X550;
93 mac->ops.mdd_event = ixgbe_mdd_event_X550;
94 mac->ops.restore_mdd_vf = ixgbe_restore_mdd_vf_X550;
95 mac->ops.fw_recovery_mode = ixgbe_fw_recovery_mode_X550;
96 mac->ops.disable_rx = ixgbe_disable_rx_x550;
98 mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550;
101 hw->mac.ops.led_on = NULL;
102 hw->mac.ops.led_off = NULL;
106 hw->mac.ops.led_on = ixgbe_led_on_t_X550em;
107 hw->mac.ops.led_off = ixgbe_led_off_t_X550em;
125 return hw->link.ops.read_link_unlocked(hw, hw->link.addr, reg, value);
138 return hw->link.ops.write_link_unlocked(hw, hw->link.addr, reg, value);
267 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
287 hw->mac.ops.release_swfw_sync(hw, swfw_mask);
293 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
314 hw->mac.ops.release_swfw_sync(hw, swfw_mask);
316 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
328 hw->mac.ops.release_swfw_sync(hw, swfw_mask);
449 hw->mac.ops.set_lan_id(hw);
610 hw->phy.ops.read_reg = NULL;
611 hw->phy.ops.write_reg = NULL;
731 mac->ops.bypass_rw = NULL;
732 mac->ops.bypass_valid_rd = NULL;
733 mac->ops.bypass_set = NULL;
734 mac->ops.bypass_rd_eep = NULL;
737 mac->ops.get_san_mac_addr = NULL;
738 mac->ops.set_san_mac_addr = NULL;
739 mac->ops.get_wwn_prefix = NULL;
740 mac->ops.get_fcoe_boot_status = NULL;
743 mac->ops.disable_sec_rx_path = NULL;
744 mac->ops.enable_sec_rx_path = NULL;
747 mac->ops.prot_autoc_read = NULL;
748 mac->ops.prot_autoc_write = NULL;
752 mac->ops.get_bus_info = ixgbe_get_bus_info_X550em;
755 mac->ops.get_media_type = ixgbe_get_media_type_X550em;
756 mac->ops.setup_sfp = ixgbe_setup_sfp_modules_X550em;
757 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_X550em;
758 mac->ops.reset_hw = ixgbe_reset_hw_X550em;
759 mac->ops.get_supported_physical_layer =
762 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
763 mac->ops.setup_fc = ixgbe_setup_fc_generic;
765 mac->ops.setup_fc = ixgbe_setup_fc_X550em;
768 phy->ops.init = ixgbe_init_phy_ops_X550em;
772 mac->ops.setup_fc = NULL;
773 phy->ops.identify = ixgbe_identify_phy_fw;
774 phy->ops.set_phy_power = NULL;
775 phy->ops.get_firmware_version = NULL;
778 mac->ops.setup_fc = NULL;
779 phy->ops.identify = ixgbe_identify_phy_x550em;
780 phy->ops.set_phy_power = NULL;
783 phy->ops.identify = ixgbe_identify_phy_x550em;
786 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper)
787 phy->ops.set_phy_power = NULL;
790 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540;
791 eeprom->ops.read = ixgbe_read_ee_hostif_X550;
792 eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550;
793 eeprom->ops.write = ixgbe_write_ee_hostif_X550;
794 eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550;
795 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550;
796 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550;
797 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550;
953 return hw->phy.ops.setup_link(hw);
975 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
976 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
978 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550a;
979 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550a;
981 mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550a;
982 mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550a;
984 switch (mac->ops.get_media_type(hw)) {
986 mac->ops.setup_fc = NULL;
987 mac->ops.fc_autoneg = ixgbe_fc_autoneg_fiber_x550em_a;
990 mac->ops.fc_autoneg = ixgbe_fc_autoneg_backplane_x550em_a;
991 mac->ops.setup_fc = ixgbe_setup_fc_backplane_x550em_a;
1000 mac->ops.fc_autoneg = ixgbe_fc_autoneg_sgmii_x550em_a;
1001 mac->ops.setup_fc = ixgbe_fc_autoneg_fw;
1002 mac->ops.setup_eee = ixgbe_setup_eee_fw;
1032 mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
1033 mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
1034 mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em;
1035 mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em;
1036 link->ops.read_link = ixgbe_read_i2c_combined_generic;
1037 link->ops.read_link_unlocked = ixgbe_read_i2c_combined_generic_unlocked;
1038 link->ops.write_link = ixgbe_write_i2c_combined_generic;
1039 link->ops.write_link_unlocked =
1044 mac->ops.setup_fc = NULL;
1045 mac->ops.setup_eee = NULL;
1046 mac->ops.init_led_link_act = NULL;
1780 * ixgbe_setup_sfp_modules_X550em - Setup MAC link ops
1797 hw->phy.ops.reset = NULL;
1813 status = hw->mac.ops.read_iosf_sb_reg(hw,
1823 status = hw->mac.ops.write_iosf_sb_reg(hw,
1831 status = hw->mac.ops.read_iosf_sb_reg(hw,
1841 status = hw->mac.ops.write_iosf_sb_reg(hw,
1862 rc = mac->ops.read_iosf_sb_reg(hw,
1873 rc = mac->ops.write_iosf_sb_reg(hw,
1879 rc = mac->ops.read_iosf_sb_reg(hw,
1887 rc = mac->ops.write_iosf_sb_reg(hw,
1893 rc = mac->ops.read_iosf_sb_reg(hw,
1905 rc = mac->ops.write_iosf_sb_reg(hw,
1915 return hw->phy.ops.setup_link_speed(hw, speed, autoneg_wait);
1931 rc = mac->ops.read_iosf_sb_reg(hw,
1942 rc = mac->ops.write_iosf_sb_reg(hw,
1948 rc = mac->ops.read_iosf_sb_reg(hw,
1956 rc = mac->ops.write_iosf_sb_reg(hw,
1962 rc = mac->ops.write_iosf_sb_reg(hw,
1968 rc = mac->ops.read_iosf_sb_reg(hw,
1980 rc = mac->ops.write_iosf_sb_reg(hw,
1988 return hw->phy.ops.setup_link_speed(hw, speed, autoneg_wait);
2001 switch (hw->mac.ops.get_media_type(hw)) {
2006 mac->ops.disable_tx_laser = NULL;
2007 mac->ops.enable_tx_laser = NULL;
2008 mac->ops.flap_tx_laser = NULL;
2009 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber;
2010 mac->ops.set_rate_select_speed =
2015 mac->ops.setup_mac_link =
2018 mac->ops.setup_mac_link =
2027 mac->ops.setup_link = ixgbe_setup_sgmii_fw;
2028 mac->ops.check_link =
2031 mac->ops.setup_link =
2035 mac->ops.setup_link = ixgbe_setup_mac_link_t_X550em;
2036 mac->ops.check_link = ixgbe_check_link_t_X550em;
2042 mac->ops.setup_link = ixgbe_setup_sgmii;
2145 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
2154 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG,
2164 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1,
2178 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_FAULT_MSG,
2194 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
2202 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2,
2244 status = hw->phy.ops.read_reg(hw,
2253 status = hw->phy.ops.write_reg(hw,
2262 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
2272 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
2280 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
2290 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
2298 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
2307 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
2327 status = hw->mac.ops.read_iosf_sb_reg(hw,
2345 status = hw->mac.ops.write_iosf_sb_reg(hw,
2351 status = hw->mac.ops.read_iosf_sb_reg(hw,
2364 status = hw->mac.ops.write_iosf_sb_reg(hw,
2458 hw->mac.ops.set_lan_id(hw);
2461 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) {
2464 phy->ops.identify_sfp = ixgbe_identify_sfp_module_X550em;
2470 phy->ops.read_reg_mdi = ixgbe_read_phy_reg_mdi_22;
2471 phy->ops.write_reg_mdi = ixgbe_write_phy_reg_mdi_22;
2472 hw->phy.ops.read_reg = ixgbe_read_phy_reg_x550a;
2473 hw->phy.ops.write_reg = ixgbe_write_phy_reg_x550a;
2474 phy->ops.check_overtemp = ixgbe_check_overtemp_fw;
2483 hw->phy.ops.read_reg = ixgbe_read_phy_reg_x550a;
2484 hw->phy.ops.write_reg = ixgbe_write_phy_reg_x550a;
2495 phy->ops.read_reg_mdi = NULL;
2496 phy->ops.write_reg_mdi = NULL;
2503 ret_val = phy->ops.identify(hw);
2511 phy->ops.reset = NULL;
2516 phy->ops.setup_link = NULL;
2517 phy->ops.read_reg = ixgbe_read_phy_reg_x550em;
2518 phy->ops.write_reg = ixgbe_write_phy_reg_x550em;
2521 phy->ops.setup_link = ixgbe_setup_kr_x550em;
2522 phy->ops.read_reg = ixgbe_read_phy_reg_x550em;
2523 phy->ops.write_reg = ixgbe_write_phy_reg_x550em;
2527 phy->ops.setup_link = NULL;
2528 phy->ops.reset = NULL;
2532 phy->ops.setup_link = NULL;
2533 phy->ops.read_reg = ixgbe_read_phy_reg_x550em;
2534 phy->ops.write_reg = ixgbe_write_phy_reg_x550em;
2540 phy->ops.setup_internal_link =
2547 phy->ops.enter_lplu = ixgbe_enter_lplu_t_x550em;
2549 phy->ops.handle_lasi = ixgbe_handle_lasi_ext_t_x550em;
2550 phy->ops.reset = ixgbe_reset_phy_t_X550em;
2553 phy->ops.setup_link = NULL;
2556 phy->ops.setup_link = ixgbe_setup_fw_link;
2557 phy->ops.reset = ixgbe_reset_phy_fw;
2618 status = hw->mac.ops.stop_adapter(hw);
2628 /* PHY ops must be identified and initialized prior to reset */
2629 phy_status = hw->phy.ops.init(hw);
2632 DEBUGOUT1("Failed to initialize PHY ops, STATUS = %d\n",
2653 phy_status = hw->mac.ops.setup_sfp(hw);
2661 if (!hw->phy.reset_disable && hw->phy.ops.reset) {
2662 if (hw->phy.ops.reset(hw) == IXGBE_ERR_OVERTEMP)
2674 hw->mac.ops.check_link(hw, &link_speed, &link_up, FALSE);
2679 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
2688 hw->mac.ops.release_swfw_sync(hw, swfw_mask);
2715 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
2722 hw->mac.ops.init_rx_addrs(hw);
2747 status = hw->phy.ops.read_reg(hw,
2759 status = hw->phy.ops.read_reg(hw,
2769 status = hw->phy.ops.write_reg(hw,
2837 ret_val = hw->link.ops.write_link(hw, hw->link.addr, reg_slice,
2857 status = mac->ops.read_iosf_sb_reg(hw,
2884 status = mac->ops.write_iosf_sb_reg(hw,
2927 ret_val = hw->mac.ops.read_iosf_sb_reg(hw,
2938 ret_val = hw->mac.ops.write_iosf_sb_reg(hw,
2958 ret_val = hw->phy.ops.read_reg(hw, IXGBE_CS4227_EFUSE_PDF_SKU,
2976 ret_val = hw->phy.ops.read_reg(hw, reg_slice,
2989 ret_val = hw->phy.ops.write_reg(hw, reg_slice,
2993 ret_val = hw->phy.ops.read_reg(hw, reg_slice,
3012 status = mac->ops.read_iosf_sb_reg(hw,
3018 status = mac->ops.write_iosf_sb_reg(hw,
3025 status = mac->ops.read_iosf_sb_reg(hw,
3033 status = mac->ops.write_iosf_sb_reg(hw,
3038 status = mac->ops.read_iosf_sb_reg(hw,
3046 status = mac->ops.write_iosf_sb_reg(hw,
3053 status = mac->ops.read_iosf_sb_reg(hw,
3062 status = mac->ops.write_iosf_sb_reg(hw,
3087 status = mac->ops.read_iosf_sb_reg(hw,
3109 status = mac->ops.write_iosf_sb_reg(hw,
3143 ret = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS,
3149 ret = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS,
3179 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
3192 status = hw->phy.ops.read_reg(hw,
3241 status = hw->mac.ops.read_iosf_sb_reg(hw,
3249 status = hw->mac.ops.write_iosf_sb_reg(hw,
3256 status = hw->mac.ops.read_iosf_sb_reg(hw,
3263 status = hw->mac.ops.write_iosf_sb_reg(hw,
3270 status = hw->mac.ops.read_iosf_sb_reg(hw,
3276 status = hw->mac.ops.write_iosf_sb_reg(hw,
3283 status = hw->mac.ops.read_iosf_sb_reg(hw,
3289 status = hw->mac.ops.write_iosf_sb_reg(hw,
3325 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
3336 hw->mac.ops.release_swfw_sync(hw, mask);
3362 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
3412 hw->mac.ops.release_swfw_sync(hw, mask);
3474 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
3477 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
3504 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
3520 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
3616 hw->eeprom.ops.init_params(hw);
3712 status = hw->eeprom.ops.read(hw, 0, &checksum);
3718 status = hw->eeprom.ops.calc_checksum(hw);
3824 hw->phy.ops.identify(hw);
3851 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY,
3877 if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber)
3898 hw->mac.ops.set_lan_id(hw);
4000 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT,
4023 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM,
4030 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG,
4037 status = hw->phy.ops.read_reg(hw,
4048 status = hw->mac.ops.setup_link(hw, lcd_speed, FALSE);
4071 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS,
4155 ret_val = hw->mac.ops.read_iosf_sb_reg(hw,
4166 ret_val = hw->mac.ops.write_iosf_sb_reg(hw,
4208 hw->mac.ops.check_link(hw, &speed, &link_up, FALSE);
4215 status = hw->mac.ops.read_iosf_sb_reg(hw,
4229 status = hw->mac.ops.read_iosf_sb_reg(hw,
4238 status = hw->mac.ops.read_iosf_sb_reg(hw,
4297 hw->mac.ops.check_link(hw, &speed, &link_up, FALSE);
4355 status = hw->mac.ops.read_iosf_sb_reg(hw,
4406 status = hw->mac.ops.write_iosf_sb_reg(hw,
4565 if (hw->mac.ops.acquire_swfw_sync(hw, mask))
4568 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data);
4570 hw->mac.ops.release_swfw_sync(hw, mask);
4593 if (hw->mac.ops.acquire_swfw_sync(hw, mask) == IXGBE_SUCCESS) {
4594 status = hw->phy.ops.write_reg_mdi(hw, reg_addr, device_type,
4596 hw->mac.ops.release_swfw_sync(hw, mask);
4669 return hw->phy.ops.setup_link_speed(hw, speed, autoneg_wait_to_complete);
4687 if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
4703 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS,