Lines Matching full:status
111 * Returns status code
124 * Returns status code
137 * Returns status code
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()
156 * Returns status code
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, ®); 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, ®); 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, ®); 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, ®); 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()
265 /* Get status of reset flow. */ 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()
1094 * Returns failing status on timeout
1223 s32 status; in ixgbe_get_phy_token() local
1232 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd, in ixgbe_get_phy_token()
1236 if (status) { in ixgbe_get_phy_token()
1237 DEBUGOUT1("Issuing host interface command failed with Status = %d\n", in ixgbe_get_phy_token()
1238 status); in ixgbe_get_phy_token()
1239 return status; in ixgbe_get_phy_token()
1261 s32 status; in ixgbe_put_phy_token() local
1270 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd, in ixgbe_put_phy_token()
1274 if (status) in ixgbe_put_phy_token()
1275 return status; in ixgbe_put_phy_token()
1521 s32 status; in ixgbe_identify_sfp_module_X550em() local
1526 status = ixgbe_identify_module_generic(hw); in ixgbe_identify_sfp_module_X550em()
1528 if (status != IXGBE_SUCCESS) in ixgbe_identify_sfp_module_X550em()
1529 return status; in ixgbe_identify_sfp_module_X550em()
1532 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); in ixgbe_identify_sfp_module_X550em()
1534 return status; in ixgbe_identify_sfp_module_X550em()
1543 s32 status; in ixgbe_setup_sfp_modules_X550em() local
1549 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); in ixgbe_setup_sfp_modules_X550em()
1551 if (status != IXGBE_SUCCESS) in ixgbe_setup_sfp_modules_X550em()
1552 return status; in ixgbe_setup_sfp_modules_X550em()
1567 s32 status; in ixgbe_restart_an_internal_phy_x550em() local
1571 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1575 if (status) { in ixgbe_restart_an_internal_phy_x550em()
1577 return status; in ixgbe_restart_an_internal_phy_x550em()
1581 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1589 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1593 if (status) { in ixgbe_restart_an_internal_phy_x550em()
1595 return status; in ixgbe_restart_an_internal_phy_x550em()
1599 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_restart_an_internal_phy_x550em()
1604 return status; in ixgbe_restart_an_internal_phy_x550em()
1895 * failure alarm or link status change.
1898 * failure alarm, else return PHY access status.
1902 u32 status; in ixgbe_get_lasi_ext_t_x550em() local
1908 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1912 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
1914 return status; in ixgbe_get_lasi_ext_t_x550em()
1917 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1921 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
1924 return status; in ixgbe_get_lasi_ext_t_x550em()
1927 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1, in ixgbe_get_lasi_ext_t_x550em()
1931 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
1932 return status; in ixgbe_get_lasi_ext_t_x550em()
1941 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_FAULT_MSG, in ixgbe_get_lasi_ext_t_x550em()
1945 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
1946 return status; in ixgbe_get_lasi_ext_t_x550em()
1957 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1960 if (status != IXGBE_SUCCESS || in ixgbe_get_lasi_ext_t_x550em()
1962 return status; in ixgbe_get_lasi_ext_t_x550em()
1965 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, in ixgbe_get_lasi_ext_t_x550em()
1968 if (status != IXGBE_SUCCESS) in ixgbe_get_lasi_ext_t_x550em()
1969 return status; in ixgbe_get_lasi_ext_t_x550em()
1982 * Enable link status change and temperature failure alarm for the external
1985 * Returns PHY access status
1989 u32 status; in ixgbe_enable_lasi_ext_t_x550em() local
1994 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_enable_lasi_ext_t_x550em()
1996 /* Enable link status change alarm */ in ixgbe_enable_lasi_ext_t_x550em()
2007 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
2011 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2012 return status; in ixgbe_enable_lasi_ext_t_x550em()
2016 status = hw->phy.ops.write_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
2020 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2021 return status; in ixgbe_enable_lasi_ext_t_x550em()
2025 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2029 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2030 return status; in ixgbe_enable_lasi_ext_t_x550em()
2035 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2039 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2040 return status; in ixgbe_enable_lasi_ext_t_x550em()
2043 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2047 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2048 return status; in ixgbe_enable_lasi_ext_t_x550em()
2053 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2057 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2058 return status; in ixgbe_enable_lasi_ext_t_x550em()
2061 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2065 if (status != IXGBE_SUCCESS) in ixgbe_enable_lasi_ext_t_x550em()
2066 return status; in ixgbe_enable_lasi_ext_t_x550em()
2070 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
2074 return status; in ixgbe_enable_lasi_ext_t_x550em()
2087 s32 status; in ixgbe_setup_kr_speed_x550em() local
2090 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2093 if (status) in ixgbe_setup_kr_speed_x550em()
2094 return status; in ixgbe_setup_kr_speed_x550em()
2108 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2114 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2118 if (status) in ixgbe_setup_kr_speed_x550em()
2119 return status; in ixgbe_setup_kr_speed_x550em()
2127 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_kr_speed_x550em()
2370 s32 status; in ixgbe_reset_hw_X550em() local
2379 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
2380 if (status != IXGBE_SUCCESS) { in ixgbe_reset_hw_X550em()
2381 DEBUGOUT1("Failed to stop adapter, STATUS = %d\n", status); in ixgbe_reset_hw_X550em()
2382 return status; in ixgbe_reset_hw_X550em()
2390 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_X550em()
2392 if (status) in ixgbe_reset_hw_X550em()
2393 DEBUGOUT1("Failed to initialize PHY ops, STATUS = %d\n", in ixgbe_reset_hw_X550em()
2394 status); in ixgbe_reset_hw_X550em()
2396 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED || in ixgbe_reset_hw_X550em()
2397 status == IXGBE_ERR_PHY_ADDR_INVALID) { in ixgbe_reset_hw_X550em()
2399 return status; in ixgbe_reset_hw_X550em()
2404 status = ixgbe_init_ext_t_x550em(hw); in ixgbe_reset_hw_X550em()
2405 if (status) { in ixgbe_reset_hw_X550em()
2406 DEBUGOUT1("Failed to start the external PHY, STATUS = %d\n", in ixgbe_reset_hw_X550em()
2407 status); in ixgbe_reset_hw_X550em()
2408 return status; in ixgbe_reset_hw_X550em()
2414 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
2418 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED) in ixgbe_reset_hw_X550em()
2419 return status; in ixgbe_reset_hw_X550em()
2440 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X550em()
2441 if (status != IXGBE_SUCCESS) { in ixgbe_reset_hw_X550em()
2443 "semaphore failed with %d", status); in ixgbe_reset_hw_X550em()
2460 status = IXGBE_ERR_RESET_FAILED; in ixgbe_reset_hw_X550em()
2490 if (status != IXGBE_SUCCESS) in ixgbe_reset_hw_X550em()
2491 DEBUGOUT1("Reset HW failed, STATUS = %d\n", status); in ixgbe_reset_hw_X550em()
2493 return status; in ixgbe_reset_hw_X550em()
2502 u32 status; in ixgbe_init_ext_t_x550em() local
2505 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2510 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2511 return status; in ixgbe_init_ext_t_x550em()
2517 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2522 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2523 return status; in ixgbe_init_ext_t_x550em()
2527 status = hw->phy.ops.write_reg(hw, in ixgbe_init_ext_t_x550em()
2532 if (status != IXGBE_SUCCESS) in ixgbe_init_ext_t_x550em()
2533 return status; in ixgbe_init_ext_t_x550em()
2536 return status; in ixgbe_init_ext_t_x550em()
2611 s32 status; in ixgbe_setup_sfi_x550a() local
2615 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2618 if (status != IXGBE_SUCCESS) in ixgbe_setup_sfi_x550a()
2619 return status; in ixgbe_setup_sfi_x550a()
2639 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_sfi_x550a()
2644 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_sfi_x550a()
2646 return status; in ixgbe_setup_sfi_x550a()
2763 s32 status; in ixgbe_setup_ixfi_x550em_x() local
2767 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2770 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2771 return status; in ixgbe_setup_ixfi_x550em_x()
2773 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2776 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2777 return status; in ixgbe_setup_ixfi_x550em_x()
2780 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2783 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2784 return status; in ixgbe_setup_ixfi_x550em_x()
2788 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2791 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2792 return status; in ixgbe_setup_ixfi_x550em_x()
2793 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2796 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2797 return status; in ixgbe_setup_ixfi_x550em_x()
2801 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2804 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2805 return status; in ixgbe_setup_ixfi_x550em_x()
2808 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2811 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em_x()
2812 return status; in ixgbe_setup_ixfi_x550em_x()
2817 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em_x()
2820 return status; in ixgbe_setup_ixfi_x550em_x()
2834 s32 status; in ixgbe_setup_ixfi_x550em() local
2842 status = mac->ops.read_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2845 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2846 return status; in ixgbe_setup_ixfi_x550em()
2864 status = mac->ops.write_iosf_sb_reg(hw, in ixgbe_setup_ixfi_x550em()
2867 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2868 return status; in ixgbe_setup_ixfi_x550em()
2872 status = ixgbe_setup_ixfi_x550em_x(hw); in ixgbe_setup_ixfi_x550em()
2873 if (status != IXGBE_SUCCESS) in ixgbe_setup_ixfi_x550em()
2874 return status; in ixgbe_setup_ixfi_x550em()
2878 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_ixfi_x550em()
2880 return status; in ixgbe_setup_ixfi_x550em()
2884 * ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status
2886 * @link_up: address of boolean to indicate link status
2888 * Returns error code if unable to get link status.
2897 /* read this twice back to back to indicate current status */ in ixgbe_ext_phy_t_x550em_get_link()
2920 * The driver will call this function when it gets a link status change
2931 u32 status; in ixgbe_setup_internal_phy_t_x550em() local
2940 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
2941 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
2942 return status; in ixgbe_setup_internal_phy_t_x550em()
2947 status = hw->phy.ops.read_reg(hw, in ixgbe_setup_internal_phy_t_x550em()
2951 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
2952 return status; in ixgbe_setup_internal_phy_t_x550em()
2955 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
2956 if (status != IXGBE_SUCCESS) in ixgbe_setup_internal_phy_t_x550em()
2957 return status; in ixgbe_setup_internal_phy_t_x550em()
2992 s32 status; in ixgbe_setup_phy_loopback_x550em() local
2996 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
2999 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3000 return status; in ixgbe_setup_phy_loopback_x550em()
3004 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3007 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3008 return status; in ixgbe_setup_phy_loopback_x550em()
3011 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3014 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3015 return status; in ixgbe_setup_phy_loopback_x550em()
3018 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3021 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3022 return status; in ixgbe_setup_phy_loopback_x550em()
3025 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3028 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3029 return status; in ixgbe_setup_phy_loopback_x550em()
3031 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3034 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3035 return status; in ixgbe_setup_phy_loopback_x550em()
3038 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3041 if (status != IXGBE_SUCCESS) in ixgbe_setup_phy_loopback_x550em()
3042 return status; in ixgbe_setup_phy_loopback_x550em()
3044 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_phy_loopback_x550em()
3048 return status; in ixgbe_setup_phy_loopback_x550em()
3064 s32 status; in ixgbe_read_ee_hostif_X550() local
3080 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_X550()
3081 if (status) in ixgbe_read_ee_hostif_X550()
3082 return status; in ixgbe_read_ee_hostif_X550()
3084 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer), in ixgbe_read_ee_hostif_X550()
3086 if (!status) { in ixgbe_read_ee_hostif_X550()
3092 return status; in ixgbe_read_ee_hostif_X550()
3111 s32 status; in ixgbe_read_ee_hostif_buffer_X550() local
3117 status = hw->mac.ops.acquire_swfw_sync(hw, mask); in ixgbe_read_ee_hostif_buffer_X550()
3118 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
3120 return status; in ixgbe_read_ee_hostif_buffer_X550()
3141 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer), in ixgbe_read_ee_hostif_buffer_X550()
3144 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
3168 return status; in ixgbe_read_ee_hostif_buffer_X550()
3182 s32 status; in ixgbe_write_ee_hostif_data_X550() local
3197 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_write_ee_hostif_data_X550()
3200 if (status != IXGBE_SUCCESS) { in ixgbe_write_ee_hostif_data_X550()
3201 DEBUGOUT2("for offset %04x failed with status %d\n", in ixgbe_write_ee_hostif_data_X550()
3202 offset, status); in ixgbe_write_ee_hostif_data_X550()
3203 return status; in ixgbe_write_ee_hostif_data_X550()
3207 DEBUGOUT2("for offset %04x host interface return status %02x\n", in ixgbe_write_ee_hostif_data_X550()
3212 return status; in ixgbe_write_ee_hostif_data_X550()
3226 s32 status = IXGBE_SUCCESS; in ixgbe_write_ee_hostif_X550() local
3232 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data); in ixgbe_write_ee_hostif_X550()
3236 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_write_ee_hostif_X550()
3239 return status; in ixgbe_write_ee_hostif_X550()
3254 s32 status = IXGBE_SUCCESS; in ixgbe_write_ee_hostif_buffer_X550() local
3260 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
3261 if (status != IXGBE_SUCCESS) { in ixgbe_write_ee_hostif_buffer_X550()
3267 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i, in ixgbe_write_ee_hostif_buffer_X550()
3270 if (status != IXGBE_SUCCESS) { in ixgbe_write_ee_hostif_buffer_X550()
3279 return status; in ixgbe_write_ee_hostif_buffer_X550()
3291 * Returns error status for any failure
3298 s32 status; in ixgbe_checksum_ptr_x550() local
3306 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
3307 if (status) { in ixgbe_checksum_ptr_x550()
3309 return status; in ixgbe_checksum_ptr_x550()
3342 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, in ixgbe_checksum_ptr_x550()
3344 if (status) { in ixgbe_checksum_ptr_x550()
3346 return status; in ixgbe_checksum_ptr_x550()
3366 s32 status; in ixgbe_calc_checksum_X550() local
3376 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0, in ixgbe_calc_checksum_X550()
3379 if (status) { in ixgbe_calc_checksum_X550()
3381 return status; in ixgbe_calc_checksum_X550()
3426 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum, in ixgbe_calc_checksum_X550()
3428 if (status) in ixgbe_calc_checksum_X550()
3429 return status; in ixgbe_calc_checksum_X550()
3458 s32 status; in ixgbe_validate_eeprom_checksum_X550() local
3468 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X550()
3469 if (status) { in ixgbe_validate_eeprom_checksum_X550()
3471 return status; in ixgbe_validate_eeprom_checksum_X550()
3474 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X550()
3475 if (status < 0) in ixgbe_validate_eeprom_checksum_X550()
3476 return status; in ixgbe_validate_eeprom_checksum_X550()
3478 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X550()
3480 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_validate_eeprom_checksum_X550()
3482 if (status) in ixgbe_validate_eeprom_checksum_X550()
3483 return status; in ixgbe_validate_eeprom_checksum_X550()
3489 status = IXGBE_ERR_EEPROM_CHECKSUM; in ixgbe_validate_eeprom_checksum_X550()
3498 return status; in ixgbe_validate_eeprom_checksum_X550()
3511 s32 status; in ixgbe_update_eeprom_checksum_X550() local
3520 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X550()
3521 if (status) { in ixgbe_update_eeprom_checksum_X550()
3523 return status; in ixgbe_update_eeprom_checksum_X550()
3526 status = ixgbe_calc_eeprom_checksum_X550(hw); in ixgbe_update_eeprom_checksum_X550()
3527 if (status < 0) in ixgbe_update_eeprom_checksum_X550()
3528 return status; in ixgbe_update_eeprom_checksum_X550()
3530 checksum = (u16)(status & 0xffff); in ixgbe_update_eeprom_checksum_X550()
3532 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_update_eeprom_checksum_X550()
3534 if (status) in ixgbe_update_eeprom_checksum_X550()
3535 return status; in ixgbe_update_eeprom_checksum_X550()
3537 status = ixgbe_update_flash_X550(hw); in ixgbe_update_eeprom_checksum_X550()
3539 return status; in ixgbe_update_eeprom_checksum_X550()
3550 s32 status = IXGBE_SUCCESS; in ixgbe_update_flash_X550() local
3560 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_update_flash_X550()
3564 return status; in ixgbe_update_flash_X550()
3670 s32 status; in ixgbe_disable_rx_x550() local
3691 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, in ixgbe_disable_rx_x550()
3696 if (status) { in ixgbe_disable_rx_x550()
3717 s32 status; in ixgbe_enter_lplu_t_x550em() local
3732 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
3733 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3734 return status; in ixgbe_enter_lplu_t_x550em()
3736 status = ixgbe_read_eeprom(hw, NVM_INIT_CTRL_3, &hw->eeprom.ctrl_word_3); in ixgbe_enter_lplu_t_x550em()
3738 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3739 return status; in ixgbe_enter_lplu_t_x550em()
3749 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed); in ixgbe_enter_lplu_t_x550em()
3751 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3752 return status; in ixgbe_enter_lplu_t_x550em()
3758 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, in ixgbe_enter_lplu_t_x550em()
3762 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3763 return status; in ixgbe_enter_lplu_t_x550em()
3766 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
3767 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3778 return status; in ixgbe_enter_lplu_t_x550em()
3781 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM, in ixgbe_enter_lplu_t_x550em()
3785 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3786 return status; in ixgbe_enter_lplu_t_x550em()
3788 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG, in ixgbe_enter_lplu_t_x550em()
3792 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3793 return status; in ixgbe_enter_lplu_t_x550em()
3795 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em()
3800 if (status != IXGBE_SUCCESS) in ixgbe_enter_lplu_t_x550em()
3801 return status; in ixgbe_enter_lplu_t_x550em()
3806 status = hw->mac.ops.setup_link(hw, lcd_speed, false); in ixgbe_enter_lplu_t_x550em()
3811 return status; in ixgbe_enter_lplu_t_x550em()
3824 s32 status; in ixgbe_get_lcd_t_x550em() local
3829 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS, in ixgbe_get_lcd_t_x550em()
3833 if (status != IXGBE_SUCCESS) in ixgbe_get_lcd_t_x550em()
3834 return status; in ixgbe_get_lcd_t_x550em()
3839 return status; in ixgbe_get_lcd_t_x550em()
3845 return status; in ixgbe_get_lcd_t_x550em()
3849 return status; in ixgbe_get_lcd_t_x550em()
3951 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_backplane_x550em_a() local
3973 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
3977 if (status != IXGBE_SUCCESS || in ixgbe_fc_autoneg_backplane_x550em_a()
3980 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_backplane_x550em_a()
3987 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
3991 if (status != IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
3996 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_fc_autoneg_backplane_x550em_a()
4000 if (status != IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
4005 status = ixgbe_negotiate_fc(hw, an_cntl_1, lp_an_page_low, in ixgbe_fc_autoneg_backplane_x550em_a()
4012 if (status == IXGBE_SUCCESS) { in ixgbe_fc_autoneg_backplane_x550em_a()
4039 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_sgmii_x550em_a() local
4062 status = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &info); in ixgbe_fc_autoneg_sgmii_x550em_a()
4063 if (status != IXGBE_SUCCESS || in ixgbe_fc_autoneg_sgmii_x550em_a()
4066 status = IXGBE_ERR_FC_NOT_NEGOTIATED; in ixgbe_fc_autoneg_sgmii_x550em_a()
4071 status = ixgbe_negotiate_fc(hw, info[0], info[0], in ixgbe_fc_autoneg_sgmii_x550em_a()
4078 if (status == IXGBE_SUCCESS) { in ixgbe_fc_autoneg_sgmii_x550em_a()
4094 s32 status = IXGBE_SUCCESS; in ixgbe_setup_fc_backplane_x550em_a() local
4113 status = hw->mac.ops.read_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4117 if (status != IXGBE_SUCCESS) { in ixgbe_setup_fc_backplane_x550em_a()
4119 return status; in ixgbe_setup_fc_backplane_x550em_a()
4164 status = hw->mac.ops.write_iosf_sb_reg(hw, in ixgbe_setup_fc_backplane_x550em_a()
4169 status = ixgbe_restart_an_internal_phy_x550em(hw); in ixgbe_setup_fc_backplane_x550em_a()
4171 return status; in ixgbe_setup_fc_backplane_x550em_a()
4203 s32 status; in ixgbe_acquire_swfw_sync_X550em() local
4207 status = ixgbe_acquire_swfw_sync_X540(hw, mask); in ixgbe_acquire_swfw_sync_X550em()
4208 if (status) in ixgbe_acquire_swfw_sync_X550em()
4209 return status; in ixgbe_acquire_swfw_sync_X550em()
4245 s32 status = IXGBE_SUCCESS; in ixgbe_acquire_swfw_sync_X550a() local
4249 status = IXGBE_SUCCESS; in ixgbe_acquire_swfw_sync_X550a()
4251 status = ixgbe_acquire_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_X550a()
4253 if (status) { in ixgbe_acquire_swfw_sync_X550a()
4254 DEBUGOUT1("Could not acquire SWFW semaphore, Status = %d\n", status); in ixgbe_acquire_swfw_sync_X550a()
4255 return status; in ixgbe_acquire_swfw_sync_X550a()
4262 status = ixgbe_get_phy_token(hw); in ixgbe_acquire_swfw_sync_X550a()
4264 if (status == IXGBE_SUCCESS) in ixgbe_acquire_swfw_sync_X550a()
4267 if (status != IXGBE_ERR_TOKEN_RETRY) { in ixgbe_acquire_swfw_sync_X550a()
4268 DEBUGOUT1("Retry acquiring the PHY token failed, Status = %d\n", status); in ixgbe_acquire_swfw_sync_X550a()
4271 return status; in ixgbe_acquire_swfw_sync_X550a()
4274 if (status == IXGBE_ERR_TOKEN_RETRY) in ixgbe_acquire_swfw_sync_X550a()
4275 DEBUGOUT1("Could not acquire PHY token, Status = %d\n", in ixgbe_acquire_swfw_sync_X550a()
4276 status); in ixgbe_acquire_swfw_sync_X550a()
4284 return status; in ixgbe_acquire_swfw_sync_X550a()
4321 s32 status; in ixgbe_read_phy_reg_x550a() local
4329 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data); in ixgbe_read_phy_reg_x550a()
4333 return status; in ixgbe_read_phy_reg_x550a()
4349 s32 status; in ixgbe_write_phy_reg_x550a() local
4355 status = hw->phy.ops.write_reg_mdi(hw, reg_addr, device_type, in ixgbe_write_phy_reg_x550a()
4359 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_write_phy_reg_x550a()
4362 return status; in ixgbe_write_phy_reg_x550a()
4370 * failure alarm then return error, else if link status change
4374 * failure alarm, else return PHY access status.
4379 u32 status; in ixgbe_handle_lasi_ext_t_x550em() local
4381 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_handle_lasi_ext_t_x550em()
4383 if (status != IXGBE_SUCCESS) in ixgbe_handle_lasi_ext_t_x550em()
4384 return status; in ixgbe_handle_lasi_ext_t_x550em()
4401 * Returns error status for any failure
4407 s32 status; in ixgbe_setup_mac_link_t_X550em() local
4426 status = ixgbe_setup_ixfi_x550em(hw, &force_speed); in ixgbe_setup_mac_link_t_X550em()
4428 if (status != IXGBE_SUCCESS) in ixgbe_setup_mac_link_t_X550em()
4429 return status; in ixgbe_setup_mac_link_t_X550em()
4435 status = ixgbe_check_link(hw, &force_speed, &link_up, in ixgbe_setup_mac_link_t_X550em()
4437 if (status != IXGBE_SUCCESS) in ixgbe_setup_mac_link_t_X550em()
4438 return status; in ixgbe_setup_mac_link_t_X550em()
4449 * ixgbe_check_link_t_X550em - Determine link and speed status
4460 u32 status; in ixgbe_check_link_t_X550em() local
4466 status = ixgbe_check_mac_link_generic(hw, speed, link_up, in ixgbe_check_link_t_X550em()
4470 if (status != IXGBE_SUCCESS || !(*link_up)) in ixgbe_check_link_t_X550em()
4471 return status; in ixgbe_check_link_t_X550em()
4474 * X557 PHY. Link status is latching low, and can only be used to detect in ixgbe_check_link_t_X550em()
4475 * link drop, and not the current status of the link without performing in ixgbe_check_link_t_X550em()
4479 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_check_link_t_X550em()
4483 if (status != IXGBE_SUCCESS) in ixgbe_check_link_t_X550em()
4484 return status; in ixgbe_check_link_t_X550em()
4500 s32 status; in ixgbe_reset_phy_t_X550em() local
4502 status = ixgbe_reset_phy_generic(hw); in ixgbe_reset_phy_t_X550em()
4504 if (status != IXGBE_SUCCESS) in ixgbe_reset_phy_t_X550em()
4505 return status; in ixgbe_reset_phy_t_X550em()
4507 /* Configure Link Status Alarm and Temperature Threshold interrupts */ in ixgbe_reset_phy_t_X550em()