Lines Matching refs:status

141 	s32 status;  in ixgbe_read_pe()  local
143 status = ixgbe_read_i2c_byte_unlocked(hw, reg, IXGBE_PE, value); in ixgbe_read_pe()
144 if (status != IXGBE_SUCCESS) in ixgbe_read_pe()
146 "port expander access failed with %d\n", status); in ixgbe_read_pe()
147 return status; in ixgbe_read_pe()
160 s32 status; in ixgbe_write_pe() local
162 status = ixgbe_write_i2c_byte_unlocked(hw, reg, IXGBE_PE, value); in ixgbe_write_pe()
163 if (status != IXGBE_SUCCESS) in ixgbe_write_pe()
165 "port expander access failed with %d\n", status); in ixgbe_write_pe()
166 return status; in ixgbe_write_pe()
178 s32 status; in ixgbe_reset_cs4227() local
184 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); in ixgbe_reset_cs4227()
185 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
186 return status; in ixgbe_reset_cs4227()
188 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
189 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
190 return status; in ixgbe_reset_cs4227()
192 status = ixgbe_read_pe(hw, IXGBE_PE_CONFIG, &reg); in ixgbe_reset_cs4227()
193 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
194 return status; in ixgbe_reset_cs4227()
196 status = ixgbe_write_pe(hw, IXGBE_PE_CONFIG, reg); in ixgbe_reset_cs4227()
197 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
198 return status; in ixgbe_reset_cs4227()
200 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); in ixgbe_reset_cs4227()
201 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
202 return status; in ixgbe_reset_cs4227()
204 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
205 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
206 return status; in ixgbe_reset_cs4227()
210 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg); in ixgbe_reset_cs4227()
211 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
212 return status; in ixgbe_reset_cs4227()
214 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
215 if (status != IXGBE_SUCCESS) in ixgbe_reset_cs4227()
216 return status; in ixgbe_reset_cs4227()
221 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EFUSE_STATUS, in ixgbe_reset_cs4227()
223 if (status == IXGBE_SUCCESS && in ixgbe_reset_cs4227()
234 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EEPROM_STATUS, &value); in ixgbe_reset_cs4227()
235 if (status != IXGBE_SUCCESS || in ixgbe_reset_cs4227()
251 s32 status = IXGBE_SUCCESS; in ixgbe_check_cs4227() local
257 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
258 if (status != IXGBE_SUCCESS) { in ixgbe_check_cs4227()
260 "semaphore failed with %d", status); in ixgbe_check_cs4227()
266 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value); in ixgbe_check_cs4227()
268 if (status == IXGBE_SUCCESS && in ixgbe_check_cs4227()
272 if (status != IXGBE_SUCCESS || in ixgbe_check_cs4227()
283 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
284 if (status != IXGBE_SUCCESS) { in ixgbe_check_cs4227()
286 "semaphore failed with %d", status); in ixgbe_check_cs4227()
292 status = ixgbe_reset_cs4227(hw); in ixgbe_check_cs4227()
293 if (status != IXGBE_SUCCESS) { in ixgbe_check_cs4227()
295 "CS4227 reset failed: %d", status); in ixgbe_check_cs4227()
306 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
307 if (status != IXGBE_SUCCESS) { in ixgbe_check_cs4227()
309 "semaphore failed with %d", status); in ixgbe_check_cs4227()
314 status = ixgbe_write_cs4227(hw, IXGBE_CS4227_SCRATCH, in ixgbe_check_cs4227()
1226 s32 status; in ixgbe_get_phy_token() local
1235 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd, in ixgbe_get_phy_token()
1239 if (status) { in ixgbe_get_phy_token()
1241 status); in ixgbe_get_phy_token()
1242 return status; in ixgbe_get_phy_token()
1264 s32 status; in ixgbe_put_phy_token() local
1273 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd, in ixgbe_put_phy_token()
1277 if (status) in ixgbe_put_phy_token()
1278 return status; in ixgbe_put_phy_token()
1298 s32 status; in ixgbe_write_iosf_sb_reg_x550a() local
1310 status = ixgbe_host_interface_command(hw, (u32 *)&write_cmd, in ixgbe_write_iosf_sb_reg_x550a()
1314 return status; in ixgbe_write_iosf_sb_reg_x550a()
1331 s32 status; in ixgbe_read_iosf_sb_reg_x550a() local
1342 status = ixgbe_host_interface_command(hw, (u32 *)&hic.cmd, in ixgbe_read_iosf_sb_reg_x550a()
1349 return status; in ixgbe_read_iosf_sb_reg_x550a()
1588 s32 status; in ixgbe_identify_sfp_module_X550em() local
1593 status = ixgbe_identify_module_generic(hw); in ixgbe_identify_sfp_module_X550em()
1595 if (status != IXGBE_SUCCESS) in ixgbe_identify_sfp_module_X550em()
1596 return status; in ixgbe_identify_sfp_module_X550em()
1599 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); in ixgbe_identify_sfp_module_X550em()
1601 return status; in ixgbe_identify_sfp_module_X550em()
1610 s32 status; in ixgbe_setup_sfp_modules_X550em() local
1616 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); in ixgbe_setup_sfp_modules_X550em()
1618 if (status != IXGBE_SUCCESS) in ixgbe_setup_sfp_modules_X550em()
1619 return status; in ixgbe_setup_sfp_modules_X550em()
1634 s32 status; in ixgbe_restart_an_internal_phy_x550em() local
1638 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1642 if (status) { in ixgbe_restart_an_internal_phy_x550em()
1644 return status; in ixgbe_restart_an_internal_phy_x550em()
1648 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1656 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1660 if (status) { in ixgbe_restart_an_internal_phy_x550em()
1662 return status; in ixgbe_restart_an_internal_phy_x550em()
1666 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1671 return status; in ixgbe_restart_an_internal_phy_x550em()
1959 u32 status; in ixgbe_get_lasi_ext_t_x550em() local
1965 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1969 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
1971 return status; in ixgbe_get_lasi_ext_t_x550em()
1974 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1978 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
1981 return status; in ixgbe_get_lasi_ext_t_x550em()
1984 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1, in ixgbe_get_lasi_ext_t_x550em()
1988 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
1989 return status; in ixgbe_get_lasi_ext_t_x550em()
1998 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_FAULT_MSG, in ixgbe_get_lasi_ext_t_x550em()
2002 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
2003 return status; in ixgbe_get_lasi_ext_t_x550em()
2014 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
2017 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
2019 return status; in ixgbe_get_lasi_ext_t_x550em()
2022 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, in ixgbe_get_lasi_ext_t_x550em()
2025 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
2026 return status; in ixgbe_get_lasi_ext_t_x550em()
2046 u32 status; in ixgbe_enable_lasi_ext_t_x550em() local
2051 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_enable_lasi_ext_t_x550em()
2064 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
2068 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2069 return status; in ixgbe_enable_lasi_ext_t_x550em()
2073 status = hw->phy.ops.write_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
2077 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2078 return status; in ixgbe_enable_lasi_ext_t_x550em()
2082 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2086 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2087 return status; in ixgbe_enable_lasi_ext_t_x550em()
2092 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2096 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2097 return status; in ixgbe_enable_lasi_ext_t_x550em()
2100 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2104 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2105 return status; in ixgbe_enable_lasi_ext_t_x550em()
2110 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2114 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2115 return status; in ixgbe_enable_lasi_ext_t_x550em()
2118 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2122 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2123 return status; in ixgbe_enable_lasi_ext_t_x550em()
2127 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2131 return status; in ixgbe_enable_lasi_ext_t_x550em()
2144 s32 status; in ixgbe_setup_kr_speed_x550em() local
2147 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2150 if (status) in ixgbe_setup_kr_speed_x550em()
2151 return status; in ixgbe_setup_kr_speed_x550em()
2165 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2171 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2175 if (status) in ixgbe_setup_kr_speed_x550em()
2176 return status; in ixgbe_setup_kr_speed_x550em()
2184 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2427 s32 status; in ixgbe_reset_hw_X550em() local
2436 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
2437 if (status != IXGBE_SUCCESS) { in ixgbe_reset_hw_X550em()
2438 DEBUGOUT1("Failed to stop adapter, STATUS = %d\n", status); in ixgbe_reset_hw_X550em()
2439 return status; in ixgbe_reset_hw_X550em()
2447 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_X550em()
2449 if (status) in ixgbe_reset_hw_X550em()
2451 status); in ixgbe_reset_hw_X550em()
2453 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED || in ixgbe_reset_hw_X550em()
2454 status == IXGBE_ERR_PHY_ADDR_INVALID) { in ixgbe_reset_hw_X550em()
2456 return status; in ixgbe_reset_hw_X550em()
2461 status = ixgbe_init_ext_t_x550em(hw); in ixgbe_reset_hw_X550em()
2462 if (status) { in ixgbe_reset_hw_X550em()
2464 status); in ixgbe_reset_hw_X550em()
2465 return status; in ixgbe_reset_hw_X550em()
2471 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
2475 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_X550em()
2476 return status; in ixgbe_reset_hw_X550em()
2497 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
2498 if (status != IXGBE_SUCCESS) { in ixgbe_reset_hw_X550em()
2500 "semaphore failed with %d", status); in ixgbe_reset_hw_X550em()
2517 status = IXGBE_ERR_RESET_FAILED; in ixgbe_reset_hw_X550em()
2547 if (status != IXGBE_SUCCESS) in ixgbe_reset_hw_X550em()
2548 DEBUGOUT1("Reset HW failed, STATUS = %d\n", status); in ixgbe_reset_hw_X550em()
2550 return status; in ixgbe_reset_hw_X550em()
2559 u32 status; in ixgbe_init_ext_t_x550em() local
2562 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2567 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2568 return status; in ixgbe_init_ext_t_x550em()
2574 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2579 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2580 return status; in ixgbe_init_ext_t_x550em()
2584 status = hw->phy.ops.write_reg(hw, in ixgbe_init_ext_t_x550em()
2589 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2590 return status; in ixgbe_init_ext_t_x550em()
2593 return status; in ixgbe_init_ext_t_x550em()
2668 s32 status; in ixgbe_setup_sfi_x550a() local
2672 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2675 if (status != IXGBE_SUCCESS) in ixgbe_setup_sfi_x550a()
2676 return status; in ixgbe_setup_sfi_x550a()
2696 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2701 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_sfi_x550a()
2703 return status; in ixgbe_setup_sfi_x550a()
2820 s32 status; in ixgbe_setup_ixfi_x550em_x() local
2824 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2827 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2828 return status; in ixgbe_setup_ixfi_x550em_x()
2830 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2833 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2834 return status; in ixgbe_setup_ixfi_x550em_x()
2837 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2840 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2841 return status; in ixgbe_setup_ixfi_x550em_x()
2845 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2848 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2849 return status; in ixgbe_setup_ixfi_x550em_x()
2850 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2853 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2854 return status; in ixgbe_setup_ixfi_x550em_x()
2858 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2861 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2862 return status; in ixgbe_setup_ixfi_x550em_x()
2865 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2868 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2869 return status; in ixgbe_setup_ixfi_x550em_x()
2874 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2877 return status; in ixgbe_setup_ixfi_x550em_x()
2891 s32 status; in ixgbe_setup_ixfi_x550em() local
2899 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2902 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2903 return status; in ixgbe_setup_ixfi_x550em()
2921 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2924 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2925 return status; in ixgbe_setup_ixfi_x550em()
2929 status = ixgbe_setup_ixfi_x550em_x(hw); in ixgbe_setup_ixfi_x550em()
2930 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2931 return status; in ixgbe_setup_ixfi_x550em()
2935 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_ixfi_x550em()
2937 return status; in ixgbe_setup_ixfi_x550em()
2988 u32 status; in ixgbe_setup_internal_phy_t_x550em() local
2997 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
2998 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
2999 return status; in ixgbe_setup_internal_phy_t_x550em()
3004 status = hw->phy.ops.read_reg(hw, in ixgbe_setup_internal_phy_t_x550em()
3008 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
3009 return status; in ixgbe_setup_internal_phy_t_x550em()
3012 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
3013 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
3014 return status; in ixgbe_setup_internal_phy_t_x550em()
3049 s32 status; in ixgbe_setup_phy_loopback_x550em() local
3053 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3056 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3057 return status; in ixgbe_setup_phy_loopback_x550em()
3061 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3064 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3065 return status; in ixgbe_setup_phy_loopback_x550em()
3068 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3071 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3072 return status; in ixgbe_setup_phy_loopback_x550em()
3075 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3078 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3079 return status; in ixgbe_setup_phy_loopback_x550em()
3082 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3085 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3086 return status; in ixgbe_setup_phy_loopback_x550em()
3088 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3091 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3092 return status; in ixgbe_setup_phy_loopback_x550em()
3095 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3098 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3099 return status; in ixgbe_setup_phy_loopback_x550em()
3101 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3105 return status; in ixgbe_setup_phy_loopback_x550em()
3121 s32 status; in ixgbe_read_ee_hostif_X550() local
3136 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
3137 if (status) in ixgbe_read_ee_hostif_X550()
3138 return status; in ixgbe_read_ee_hostif_X550()
3140 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer), in ixgbe_read_ee_hostif_X550()
3142 if (!status) { in ixgbe_read_ee_hostif_X550()
3148 return status; in ixgbe_read_ee_hostif_X550()
3167 s32 status; in ixgbe_read_ee_hostif_buffer_X550() local
3173 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
3174 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
3176 return status; in ixgbe_read_ee_hostif_buffer_X550()
3196 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer), in ixgbe_read_ee_hostif_buffer_X550()
3199 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
3223 return status; in ixgbe_read_ee_hostif_buffer_X550()
3237 s32 status; in ixgbe_write_ee_hostif_data_X550() local
3252 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_write_ee_hostif_data_X550()
3256 return status; in ixgbe_write_ee_hostif_data_X550()
3270 s32 status = IXGBE_SUCCESS; in ixgbe_write_ee_hostif_X550() local
3276 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data); in ixgbe_write_ee_hostif_X550()
3280 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_write_ee_hostif_X550()
3283 return status; in ixgbe_write_ee_hostif_X550()
3298 s32 status = IXGBE_SUCCESS; in ixgbe_write_ee_hostif_buffer_X550() local
3304 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
3305 if (status != IXGBE_SUCCESS) { in ixgbe_write_ee_hostif_buffer_X550()
3311 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i, in ixgbe_write_ee_hostif_buffer_X550()
3314 if (status != IXGBE_SUCCESS) { in ixgbe_write_ee_hostif_buffer_X550()
3323 return status; in ixgbe_write_ee_hostif_buffer_X550()
3342 s32 status; in ixgbe_checksum_ptr_x550() local
3350 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
3351 if (status) { in ixgbe_checksum_ptr_x550()
3353 return status; in ixgbe_checksum_ptr_x550()
3386 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, in ixgbe_checksum_ptr_x550()
3388 if (status) { in ixgbe_checksum_ptr_x550()
3390 return status; in ixgbe_checksum_ptr_x550()
3410 s32 status; in ixgbe_calc_checksum_X550() local
3420 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0, in ixgbe_calc_checksum_X550()
3423 if (status) { in ixgbe_calc_checksum_X550()
3425 return status; in ixgbe_calc_checksum_X550()
3470 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum, in ixgbe_calc_checksum_X550()
3472 if (status) in ixgbe_calc_checksum_X550()
3473 return status; in ixgbe_calc_checksum_X550()
3502 s32 status; in ixgbe_validate_eeprom_checksum_X550() local
3512 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X550()
3513 if (status) { in ixgbe_validate_eeprom_checksum_X550()
3515 return status; in ixgbe_validate_eeprom_checksum_X550()
3518 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X550()
3519 if (status < 0) in ixgbe_validate_eeprom_checksum_X550()
3520 return status; in ixgbe_validate_eeprom_checksum_X550()
3522 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X550()
3524 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_validate_eeprom_checksum_X550()
3526 if (status) in ixgbe_validate_eeprom_checksum_X550()
3527 return status; in ixgbe_validate_eeprom_checksum_X550()
3533 status = IXGBE_ERR_EEPROM_CHECKSUM; in ixgbe_validate_eeprom_checksum_X550()
3542 return status; in ixgbe_validate_eeprom_checksum_X550()
3555 s32 status; in ixgbe_update_eeprom_checksum_X550() local
3564 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X550()
3565 if (status) { in ixgbe_update_eeprom_checksum_X550()
3567 return status; in ixgbe_update_eeprom_checksum_X550()
3570 status = ixgbe_calc_eeprom_checksum_X550(hw); in ixgbe_update_eeprom_checksum_X550()
3571 if (status < 0) in ixgbe_update_eeprom_checksum_X550()
3572 return status; in ixgbe_update_eeprom_checksum_X550()
3574 checksum = (u16)(status & 0xffff); in ixgbe_update_eeprom_checksum_X550()
3576 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_update_eeprom_checksum_X550()
3578 if (status) in ixgbe_update_eeprom_checksum_X550()
3579 return status; in ixgbe_update_eeprom_checksum_X550()
3581 status = ixgbe_update_flash_X550(hw); in ixgbe_update_eeprom_checksum_X550()
3583 return status; in ixgbe_update_eeprom_checksum_X550()
3594 s32 status = IXGBE_SUCCESS; in ixgbe_update_flash_X550() local
3604 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_update_flash_X550()
3608 return status; in ixgbe_update_flash_X550()
3712 s32 status; in ixgbe_disable_rx_x550() local
3733 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, in ixgbe_disable_rx_x550()
3738 if (status) { in ixgbe_disable_rx_x550()
3759 s32 status; in ixgbe_enter_lplu_t_x550em() local
3774 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
3775 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3776 return status; in ixgbe_enter_lplu_t_x550em()
3778 status = ixgbe_read_eeprom(hw, NVM_INIT_CTRL_3, &hw->eeprom.ctrl_word_3); in ixgbe_enter_lplu_t_x550em()
3780 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3781 return status; in ixgbe_enter_lplu_t_x550em()
3791 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed); in ixgbe_enter_lplu_t_x550em()
3793 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3794 return status; in ixgbe_enter_lplu_t_x550em()
3800 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, in ixgbe_enter_lplu_t_x550em()
3804 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3805 return status; in ixgbe_enter_lplu_t_x550em()
3808 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
3809 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3820 return status; in ixgbe_enter_lplu_t_x550em()
3823 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM, in ixgbe_enter_lplu_t_x550em()
3827 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3828 return status; in ixgbe_enter_lplu_t_x550em()
3830 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG, in ixgbe_enter_lplu_t_x550em()
3834 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3835 return status; in ixgbe_enter_lplu_t_x550em()
3837 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em()
3842 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3843 return status; in ixgbe_enter_lplu_t_x550em()
3848 status = hw->mac.ops.setup_link(hw, lcd_speed, FALSE); in ixgbe_enter_lplu_t_x550em()
3853 return status; in ixgbe_enter_lplu_t_x550em()
3866 s32 status; in ixgbe_get_lcd_t_x550em() local
3871 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS, in ixgbe_get_lcd_t_x550em()
3875 if (status != IXGBE_SUCCESS) in ixgbe_get_lcd_t_x550em()
3876 return status; in ixgbe_get_lcd_t_x550em()
3881 return status; in ixgbe_get_lcd_t_x550em()
3887 return status; in ixgbe_get_lcd_t_x550em()
3891 return status; in ixgbe_get_lcd_t_x550em()
3993 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_backplane_x550em_a() local
4015 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4019 if (status != IXGBE_SUCCESS || in ixgbe_fc_autoneg_backplane_x550em_a()
4022 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_backplane_x550em_a()
4029 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4033 if (status != IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
4038 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4042 if (status != IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
4047 status = ixgbe_negotiate_fc(hw, an_cntl_1, lp_an_page_low, in ixgbe_fc_autoneg_backplane_x550em_a()
4054 if (status == IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
4081 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_sgmii_x550em_a() local
4104 status = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &info); in ixgbe_fc_autoneg_sgmii_x550em_a()
4105 if (status != IXGBE_SUCCESS || in ixgbe_fc_autoneg_sgmii_x550em_a()
4108 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_sgmii_x550em_a()
4113 status = ixgbe_negotiate_fc(hw, info[0], info[0], in ixgbe_fc_autoneg_sgmii_x550em_a()
4120 if (status == IXGBE_SUCCESS) { in ixgbe_fc_autoneg_sgmii_x550em_a()
4136 s32 status = IXGBE_SUCCESS; in ixgbe_setup_fc_backplane_x550em_a() local
4155 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4159 if (status != IXGBE_SUCCESS) { in ixgbe_setup_fc_backplane_x550em_a()
4161 return status; in ixgbe_setup_fc_backplane_x550em_a()
4206 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4211 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_fc_backplane_x550em_a()
4213 return status; in ixgbe_setup_fc_backplane_x550em_a()
4245 s32 status; in ixgbe_acquire_swfw_sync_X550em() local
4249 status = ixgbe_acquire_swfw_sync_X540(hw, mask); in ixgbe_acquire_swfw_sync_X550em()
4250 if (status) in ixgbe_acquire_swfw_sync_X550em()
4251 return status; in ixgbe_acquire_swfw_sync_X550em()
4287 s32 status = IXGBE_SUCCESS; in ixgbe_acquire_swfw_sync_X550a() local
4292 status = IXGBE_SUCCESS; in ixgbe_acquire_swfw_sync_X550a()
4294 status = ixgbe_acquire_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_X550a()
4295 if (status) { in ixgbe_acquire_swfw_sync_X550a()
4297 status); in ixgbe_acquire_swfw_sync_X550a()
4298 return status; in ixgbe_acquire_swfw_sync_X550a()
4303 status = ixgbe_get_phy_token(hw); in ixgbe_acquire_swfw_sync_X550a()
4304 if (status == IXGBE_ERR_TOKEN_RETRY) in ixgbe_acquire_swfw_sync_X550a()
4306 status); in ixgbe_acquire_swfw_sync_X550a()
4308 if (status == IXGBE_SUCCESS) in ixgbe_acquire_swfw_sync_X550a()
4314 if (status != IXGBE_ERR_TOKEN_RETRY) { in ixgbe_acquire_swfw_sync_X550a()
4316 status); in ixgbe_acquire_swfw_sync_X550a()
4317 return status; in ixgbe_acquire_swfw_sync_X550a()
4323 return status; in ixgbe_acquire_swfw_sync_X550a()
4360 s32 status; in ixgbe_read_phy_reg_x550a() local
4368 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data); in ixgbe_read_phy_reg_x550a()
4372 return status; in ixgbe_read_phy_reg_x550a()
4388 s32 status; in ixgbe_write_phy_reg_x550a() local
4394 status = hw->phy.ops.write_reg_mdi(hw, reg_addr, device_type, in ixgbe_write_phy_reg_x550a()
4398 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_write_phy_reg_x550a()
4401 return status; in ixgbe_write_phy_reg_x550a()
4418 u32 status; in ixgbe_handle_lasi_ext_t_x550em() local
4420 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_handle_lasi_ext_t_x550em()
4422 if (status != IXGBE_SUCCESS) in ixgbe_handle_lasi_ext_t_x550em()
4423 return status; in ixgbe_handle_lasi_ext_t_x550em()
4446 s32 status; in ixgbe_setup_mac_link_t_X550em() local
4463 status = ixgbe_setup_ixfi_x550em(hw, &force_speed); in ixgbe_setup_mac_link_t_X550em()
4465 if (status != IXGBE_SUCCESS) in ixgbe_setup_mac_link_t_X550em()
4466 return status; in ixgbe_setup_mac_link_t_X550em()
4484 u32 status; in ixgbe_check_link_t_X550em() local
4490 status = ixgbe_check_mac_link_generic(hw, speed, link_up, in ixgbe_check_link_t_X550em()
4494 if (status != IXGBE_SUCCESS || !(*link_up)) in ixgbe_check_link_t_X550em()
4495 return status; in ixgbe_check_link_t_X550em()
4503 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_check_link_t_X550em()
4507 if (status != IXGBE_SUCCESS) in ixgbe_check_link_t_X550em()
4508 return status; in ixgbe_check_link_t_X550em()
4524 s32 status; in ixgbe_reset_phy_t_X550em() local
4526 status = ixgbe_reset_phy_generic(hw); in ixgbe_reset_phy_t_X550em()
4528 if (status != IXGBE_SUCCESS) in ixgbe_reset_phy_t_X550em()
4529 return status; in ixgbe_reset_phy_t_X550em()