Lines Matching refs:status

111  * Returns status code
124 * Returns status code
137 * Returns status code
141 s32 status;
143 status = ixgbe_read_i2c_byte_unlocked(hw, reg, IXGBE_PE, value);
144 if (status != IXGBE_SUCCESS)
146 "port expander access failed with %d\n", status);
147 return status;
156 * Returns status code
160 s32 status;
162 status = ixgbe_write_i2c_byte_unlocked(hw, reg, IXGBE_PE, value);
163 if (status != IXGBE_SUCCESS)
165 "port expander access failed with %d\n", status);
166 return status;
178 s32 status;
184 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg);
185 if (status != IXGBE_SUCCESS)
186 return status;
188 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
189 if (status != IXGBE_SUCCESS)
190 return status;
192 status = ixgbe_read_pe(hw, IXGBE_PE_CONFIG, &reg);
193 if (status != IXGBE_SUCCESS)
194 return status;
196 status = ixgbe_write_pe(hw, IXGBE_PE_CONFIG, reg);
197 if (status != IXGBE_SUCCESS)
198 return status;
200 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg);
201 if (status != IXGBE_SUCCESS)
202 return status;
204 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
205 if (status != IXGBE_SUCCESS)
206 return status;
210 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, &reg);
211 if (status != IXGBE_SUCCESS)
212 return status;
214 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
215 if (status != IXGBE_SUCCESS)
216 return status;
221 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EFUSE_STATUS,
223 if (status == IXGBE_SUCCESS &&
234 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EEPROM_STATUS, &value);
235 if (status != IXGBE_SUCCESS ||
251 s32 status = IXGBE_SUCCESS;
257 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
258 if (status != IXGBE_SUCCESS) {
260 "semaphore failed with %d", status);
265 /* Get status of reset flow. */
266 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value);
268 if (status == IXGBE_SUCCESS &&
272 if (status != IXGBE_SUCCESS ||
283 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
284 if (status != IXGBE_SUCCESS) {
286 "semaphore failed with %d", status);
292 status = ixgbe_reset_cs4227(hw);
293 if (status != IXGBE_SUCCESS) {
295 "CS4227 reset failed: %d", status);
306 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
307 if (status != IXGBE_SUCCESS) {
309 "semaphore failed with %d", status);
314 status = ixgbe_write_cs4227(hw, IXGBE_CS4227_SCRATCH,
1193 * Returns failing status on timeout
1322 s32 status;
1331 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd,
1335 if (status) {
1337 status);
1338 return status;
1360 s32 status;
1369 status = ixgbe_host_interface_command(hw, (u32 *)&token_cmd,
1373 if (status)
1374 return status;
1394 s32 status;
1406 status = ixgbe_host_interface_command(hw, (u32 *)&write_cmd,
1410 return status;
1427 s32 status;
1438 status = ixgbe_host_interface_command(hw, (u32 *)&hic.cmd,
1445 return status;
1684 s32 status;
1689 status = ixgbe_identify_module_generic(hw);
1691 if (status != IXGBE_SUCCESS)
1692 return status;
1695 status = ixgbe_supported_sfp_modules_X550em(hw, &linear);
1697 return status;
1706 s32 status;
1712 status = ixgbe_supported_sfp_modules_X550em(hw, &linear);
1714 if (status != IXGBE_SUCCESS)
1715 return status;
1730 s32 status;
1734 status = hw->mac.ops.read_iosf_sb_reg(hw,
1738 if (status) {
1740 return status;
1744 status = hw->mac.ops.write_iosf_sb_reg(hw,
1752 status = hw->mac.ops.read_iosf_sb_reg(hw,
1756 if (status) {
1758 return status;
1762 status = hw->mac.ops.write_iosf_sb_reg(hw,
1767 return status;
2044 * failure alarm or link status change.
2047 * failure alarm, else return PHY access status.
2051 u32 status;
2057 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
2061 if (status != IXGBE_SUCCESS ||
2063 return status;
2066 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG,
2070 if (status != IXGBE_SUCCESS ||
2073 return status;
2076 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1,
2080 if (status != IXGBE_SUCCESS)
2081 return status;
2090 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_FAULT_MSG,
2094 if (status != IXGBE_SUCCESS)
2095 return status;
2106 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
2109 if (status != IXGBE_SUCCESS ||
2111 return status;
2114 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2,
2117 if (status != IXGBE_SUCCESS)
2118 return status;
2131 * Enable link status change and temperature failure alarm for the external
2134 * Returns PHY access status
2138 u32 status;
2143 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc);
2145 /* Enable link status change alarm */
2156 status = hw->phy.ops.read_reg(hw,
2160 if (status != IXGBE_SUCCESS)
2161 return status;
2165 status = hw->phy.ops.write_reg(hw,
2169 if (status != IXGBE_SUCCESS)
2170 return status;
2174 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
2178 if (status != IXGBE_SUCCESS)
2179 return status;
2184 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
2188 if (status != IXGBE_SUCCESS)
2189 return status;
2192 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
2196 if (status != IXGBE_SUCCESS)
2197 return status;
2202 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
2206 if (status != IXGBE_SUCCESS)
2207 return status;
2210 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
2214 if (status != IXGBE_SUCCESS)
2215 return status;
2219 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
2223 return status;
2236 s32 status;
2239 status = hw->mac.ops.read_iosf_sb_reg(hw,
2242 if (status)
2243 return status;
2257 status = hw->mac.ops.write_iosf_sb_reg(hw,
2263 status = hw->mac.ops.read_iosf_sb_reg(hw,
2267 if (status)
2268 return status;
2276 status = hw->mac.ops.write_iosf_sb_reg(hw,
2516 s32 status;
2525 status = hw->mac.ops.stop_adapter(hw);
2526 if (status != IXGBE_SUCCESS) {
2527 DEBUGOUT1("Failed to stop adapter, STATUS = %d\n", status);
2528 return status;
2536 status = hw->phy.ops.init(hw);
2538 if (status)
2540 status);
2542 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED) {
2544 return status;
2549 status = ixgbe_init_ext_t_x550em(hw);
2550 if (status) {
2552 status);
2553 return status;
2559 status = hw->mac.ops.setup_sfp(hw);
2563 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED)
2564 return status;
2585 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
2586 if (status != IXGBE_SUCCESS) {
2588 "semaphore failed with %d", status);
2605 status = IXGBE_ERR_RESET_FAILED;
2635 if (status != IXGBE_SUCCESS)
2636 DEBUGOUT1("Reset HW failed, STATUS = %d\n", status);
2638 return status;
2647 u32 status;
2650 status = hw->phy.ops.read_reg(hw,
2655 if (status != IXGBE_SUCCESS)
2656 return status;
2662 status = hw->phy.ops.read_reg(hw,
2667 if (status != IXGBE_SUCCESS)
2668 return status;
2672 status = hw->phy.ops.write_reg(hw,
2677 if (status != IXGBE_SUCCESS)
2678 return status;
2681 return status;
2754 s32 status;
2758 status = mac->ops.read_iosf_sb_reg(hw,
2761 if (status != IXGBE_SUCCESS)
2762 return status;
2782 status = mac->ops.write_iosf_sb_reg(hw,
2787 status = ixgbe_restart_an_internal_phy_x550em(hw);
2789 return status;
2904 s32 status;
2908 status = mac->ops.read_iosf_sb_reg(hw,
2911 if (status != IXGBE_SUCCESS)
2912 return status;
2914 status = mac->ops.write_iosf_sb_reg(hw,
2917 if (status != IXGBE_SUCCESS)
2918 return status;
2921 status = mac->ops.read_iosf_sb_reg(hw,
2924 if (status != IXGBE_SUCCESS)
2925 return status;
2929 status = mac->ops.write_iosf_sb_reg(hw,
2932 if (status != IXGBE_SUCCESS)
2933 return status;
2934 status = mac->ops.read_iosf_sb_reg(hw,
2937 if (status != IXGBE_SUCCESS)
2938 return status;
2942 status = mac->ops.write_iosf_sb_reg(hw,
2945 if (status != IXGBE_SUCCESS)
2946 return status;
2949 status = mac->ops.read_iosf_sb_reg(hw,
2952 if (status != IXGBE_SUCCESS)
2953 return status;
2958 status = mac->ops.write_iosf_sb_reg(hw,
2961 return status;
2975 s32 status;
2983 status = mac->ops.read_iosf_sb_reg(hw,
2986 if (status != IXGBE_SUCCESS)
2987 return status;
3005 status = mac->ops.write_iosf_sb_reg(hw,
3008 if (status != IXGBE_SUCCESS)
3009 return status;
3013 status = ixgbe_setup_ixfi_x550em_x(hw);
3014 if (status != IXGBE_SUCCESS)
3015 return status;
3019 status = ixgbe_restart_an_internal_phy_x550em(hw);
3021 return status;
3025 * ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status
3027 * @link_up: address of boolean to indicate link status
3029 * Returns error code if unable to get link status.
3038 /* read this twice back to back to indicate current status */
3061 * The driver will call this function when it gets a link status change
3072 u32 status;
3081 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3082 if (status != IXGBE_SUCCESS)
3083 return status;
3088 status = hw->phy.ops.read_reg(hw,
3092 if (status != IXGBE_SUCCESS)
3093 return status;
3096 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3097 if (status != IXGBE_SUCCESS)
3098 return status;
3133 s32 status;
3137 status = hw->mac.ops.read_iosf_sb_reg(hw,
3140 if (status != IXGBE_SUCCESS)
3141 return status;
3145 status = hw->mac.ops.write_iosf_sb_reg(hw,
3148 if (status != IXGBE_SUCCESS)
3149 return status;
3152 status = hw->mac.ops.read_iosf_sb_reg(hw,
3155 if (status != IXGBE_SUCCESS)
3156 return status;
3159 status = hw->mac.ops.write_iosf_sb_reg(hw,
3162 if (status != IXGBE_SUCCESS)
3163 return status;
3166 status = hw->mac.ops.read_iosf_sb_reg(hw,
3169 if (status != IXGBE_SUCCESS)
3170 return status;
3172 status = hw->mac.ops.write_iosf_sb_reg(hw,
3175 if (status != IXGBE_SUCCESS)
3176 return status;
3179 status = hw->mac.ops.read_iosf_sb_reg(hw,
3182 if (status != IXGBE_SUCCESS)
3183 return status;
3185 status = hw->mac.ops.write_iosf_sb_reg(hw,
3189 return status;
3205 s32 status;
3218 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
3219 if (status)
3220 return status;
3222 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer),
3224 if (!status) {
3230 return status;
3249 s32 status;
3255 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
3256 if (status) {
3258 return status;
3276 status = ixgbe_hic_unlocked(hw, (u32 *)&buffer, sizeof(buffer),
3279 if (status) {
3303 return status;
3317 s32 status;
3332 status = ixgbe_host_interface_command(hw, (u32 *)&buffer,
3336 return status;
3350 s32 status = IXGBE_SUCCESS;
3356 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data);
3360 status = IXGBE_ERR_SWFW_SYNC;
3363 return status;
3378 s32 status = IXGBE_SUCCESS;
3384 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
3385 if (status != IXGBE_SUCCESS) {
3391 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i,
3394 if (status != IXGBE_SUCCESS) {
3403 return status;
3413 * Returns error status for any failure
3420 s32 status;
3428 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf);
3429 if (status) {
3431 return status;
3464 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr,
3466 if (status) {
3468 return status;
3488 s32 status;
3498 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0,
3501 if (status) {
3503 return status;
3548 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum,
3550 if (status)
3551 return status;
3580 s32 status;
3590 status = hw->eeprom.ops.read(hw, 0, &checksum);
3591 if (status) {
3593 return status;
3596 status = hw->eeprom.ops.calc_checksum(hw);
3597 if (status < 0)
3598 return status;
3600 checksum = (u16)(status & 0xffff);
3602 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM,
3604 if (status)
3605 return status;
3611 status = IXGBE_ERR_EEPROM_CHECKSUM;
3620 return status;
3633 s32 status;
3642 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum);
3643 if (status) {
3645 return status;
3648 status = ixgbe_calc_eeprom_checksum_X550(hw);
3649 if (status < 0)
3650 return status;
3652 checksum = (u16)(status & 0xffff);
3654 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM,
3656 if (status)
3657 return status;
3659 status = ixgbe_update_flash_X550(hw);
3661 return status;
3672 s32 status = IXGBE_SUCCESS;
3682 status = ixgbe_host_interface_command(hw, (u32 *)&buffer,
3686 return status;
3789 s32 status;
3810 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd,
3815 if (status) {
3836 s32 status;
3851 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3852 if (status != IXGBE_SUCCESS)
3853 return status;
3855 status = ixgbe_read_eeprom(hw, NVM_INIT_CTRL_3, &hw->eeprom.ctrl_word_3);
3857 if (status != IXGBE_SUCCESS)
3858 return status;
3868 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed);
3870 if (status != IXGBE_SUCCESS)
3871 return status;
3877 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT,
3881 if (status != IXGBE_SUCCESS)
3882 return status;
3885 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3886 if (status != IXGBE_SUCCESS)
3897 return status;
3900 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM,
3904 if (status != IXGBE_SUCCESS)
3905 return status;
3907 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG,
3911 if (status != IXGBE_SUCCESS)
3912 return status;
3914 status = hw->phy.ops.read_reg(hw,
3919 if (status != IXGBE_SUCCESS)
3920 return status;
3925 status = hw->mac.ops.setup_link(hw, lcd_speed, FALSE);
3930 return status;
3943 s32 status;
3948 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS,
3952 if (status != IXGBE_SUCCESS)
3953 return status;
3958 return status;
3964 return status;
3968 return status;
4070 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
4092 status = hw->mac.ops.read_iosf_sb_reg(hw,
4096 if (status != IXGBE_SUCCESS ||
4099 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
4106 status = hw->mac.ops.read_iosf_sb_reg(hw,
4110 if (status != IXGBE_SUCCESS) {
4115 status = hw->mac.ops.read_iosf_sb_reg(hw,
4119 if (status != IXGBE_SUCCESS) {
4124 status = ixgbe_negotiate_fc(hw, an_cntl_1, lp_an_page_low,
4131 if (status == IXGBE_SUCCESS) {
4158 s32 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
4181 status = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &info);
4182 if (status != IXGBE_SUCCESS ||
4185 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
4190 status = ixgbe_negotiate_fc(hw, info[0], info[0],
4197 if (status == IXGBE_SUCCESS) {
4213 s32 status = IXGBE_SUCCESS;
4232 status = hw->mac.ops.read_iosf_sb_reg(hw,
4236 if (status != IXGBE_SUCCESS) {
4238 return status;
4283 status = hw->mac.ops.write_iosf_sb_reg(hw,
4288 status = ixgbe_restart_an_internal_phy_x550em(hw);
4290 return status;
4322 s32 status;
4326 status = ixgbe_acquire_swfw_sync_X540(hw, mask);
4327 if (status)
4328 return status;
4364 s32 status = IXGBE_SUCCESS;
4369 status = IXGBE_SUCCESS;
4371 status = ixgbe_acquire_swfw_sync_X540(hw, hmask);
4372 if (status) {
4374 status);
4375 return status;
4380 status = ixgbe_get_phy_token(hw);
4381 if (status == IXGBE_ERR_TOKEN_RETRY)
4383 status);
4385 if (status == IXGBE_SUCCESS)
4391 if (status != IXGBE_ERR_TOKEN_RETRY) {
4393 status);
4394 return status;
4400 return status;
4436 s32 status;
4444 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data);
4448 return status;
4464 s32 status;
4470 status = hw->phy.ops.write_reg_mdi(hw, reg_addr, device_type,
4474 status = IXGBE_ERR_SWFW_SYNC;
4477 return status;
4485 * failure alarm then return error, else if link status change
4489 * failure alarm, else return PHY access status.
4494 u32 status;
4496 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc);
4498 if (status != IXGBE_SUCCESS)
4499 return status;
4516 * Returns error status for any failure
4522 s32 status;
4539 status = ixgbe_setup_ixfi_x550em(hw, &force_speed);
4541 if (status != IXGBE_SUCCESS)
4542 return status;
4549 * ixgbe_check_link_t_X550em - Determine link and speed status
4560 u32 status;
4566 status = ixgbe_check_mac_link_generic(hw, speed, link_up,
4570 if (status != IXGBE_SUCCESS || !(*link_up))
4571 return status;
4574 * X557 PHY. Link status is latching low, and can only be used to detect
4575 * link drop, and not the current status of the link without performing
4579 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS,
4583 if (status != IXGBE_SUCCESS)
4584 return status;
4600 s32 status;
4602 status = ixgbe_reset_phy_generic(hw);
4604 if (status != IXGBE_SUCCESS)
4605 return status;