Lines Matching defs:status
183 * Returns status code
196 * Returns status code
209 * Returns status code
213 int32_t status = IXGBE_NOT_IMPLEMENTED;
216 status = hw->phy.ops.read_i2c_byte_unlocked(hw, reg, IXGBE_PE,
218 if (status != IXGBE_SUCCESS)
220 "port expander access failed with %d\n", status);
221 return status;
230 * Returns status code
234 int32_t status = IXGBE_NOT_IMPLEMENTED;
237 status = hw->phy.ops.write_i2c_byte_unlocked(hw, reg, IXGBE_PE,
239 if (status != IXGBE_SUCCESS)
241 "port expander access failed with %d\n", status);
242 return status;
254 int32_t status;
260 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®);
261 if (status != IXGBE_SUCCESS)
262 return status;
264 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
265 if (status != IXGBE_SUCCESS)
266 return status;
268 status = ixgbe_read_pe(hw, IXGBE_PE_CONFIG, ®);
269 if (status != IXGBE_SUCCESS)
270 return status;
272 status = ixgbe_write_pe(hw, IXGBE_PE_CONFIG, reg);
273 if (status != IXGBE_SUCCESS)
274 return status;
276 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®);
277 if (status != IXGBE_SUCCESS)
278 return status;
280 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
281 if (status != IXGBE_SUCCESS)
282 return status;
286 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®);
287 if (status != IXGBE_SUCCESS)
288 return status;
290 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg);
291 if (status != IXGBE_SUCCESS)
292 return status;
297 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EFUSE_STATUS,
299 if (status == IXGBE_SUCCESS &&
310 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EEPROM_STATUS, &value);
311 if (status != IXGBE_SUCCESS ||
327 int32_t status = IXGBE_SUCCESS;
333 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
334 if (status != IXGBE_SUCCESS) {
336 "semaphore failed with %d", status);
341 /* Get status of reset flow. */
342 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value);
344 if (status == IXGBE_SUCCESS &&
348 if (status != IXGBE_SUCCESS ||
359 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
360 if (status != IXGBE_SUCCESS) {
362 "semaphore failed with %d", status);
368 status = ixgbe_reset_cs4227(hw);
369 if (status != IXGBE_SUCCESS) {
371 "CS4227 reset failed: %d", status);
382 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
383 if (status != IXGBE_SUCCESS) {
385 "semaphore failed with %d", status);
390 status = ixgbe_write_cs4227(hw, IXGBE_CS4227_SCRATCH,
1063 * Returns failing status on timeout
1192 int32_t status;
1201 status = ixgbe_host_interface_command(hw, (uint32_t *)&token_cmd,
1205 if (status) {
1207 status);
1208 return status;
1230 int32_t status;
1239 status = ixgbe_host_interface_command(hw, (uint32_t *)&token_cmd,
1243 if (status)
1244 return status;
1264 int32_t status;
1275 status = ixgbe_host_interface_command(hw, (uint32_t *)&write_cmd,
1279 return status;
1296 int32_t status;
1306 status = ixgbe_host_interface_command(hw, (uint32_t *)&hic.cmd,
1313 return status;
1409 int32_t status;
1414 status = ixgbe_identify_module_generic(hw);
1416 if (status != IXGBE_SUCCESS)
1417 return status;
1420 status = ixgbe_supported_sfp_modules_X550em(hw, &linear);
1422 return status;
1431 int32_t status;
1437 status = ixgbe_supported_sfp_modules_X550em(hw, &linear);
1439 if (status != IXGBE_SUCCESS)
1440 return status;
1455 int32_t status;
1459 status = hw->mac.ops.read_iosf_sb_reg(hw,
1463 if (status) {
1465 return status;
1469 status = hw->mac.ops.write_iosf_sb_reg(hw,
1477 status = hw->mac.ops.read_iosf_sb_reg(hw,
1481 if (status) {
1483 return status;
1487 status = hw->mac.ops.write_iosf_sb_reg(hw,
1492 return status;
1773 * failure alarm or link status change.
1776 * failure alarm, else return PHY access status.
1780 uint32_t status;
1786 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
1790 if (status != IXGBE_SUCCESS ||
1792 return status;
1795 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG,
1799 if (status != IXGBE_SUCCESS ||
1802 return status;
1805 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1,
1809 if (status != IXGBE_SUCCESS)
1810 return status;
1819 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_FAULT_MSG,
1823 if (status != IXGBE_SUCCESS)
1824 return status;
1835 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG,
1838 if (status != IXGBE_SUCCESS ||
1840 return status;
1843 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2,
1846 if (status != IXGBE_SUCCESS)
1847 return status;
1860 * Enable link status change and temperature failure alarm for the external
1863 * Returns PHY access status
1867 uint32_t status;
1872 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc);
1874 /* Enable link status change alarm */
1885 status = hw->phy.ops.read_reg(hw,
1889 if (status != IXGBE_SUCCESS)
1890 return status;
1894 status = hw->phy.ops.write_reg(hw,
1898 if (status != IXGBE_SUCCESS)
1899 return status;
1903 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
1907 if (status != IXGBE_SUCCESS)
1908 return status;
1913 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK,
1917 if (status != IXGBE_SUCCESS)
1918 return status;
1921 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
1925 if (status != IXGBE_SUCCESS)
1926 return status;
1931 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK,
1935 if (status != IXGBE_SUCCESS)
1936 return status;
1939 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
1943 if (status != IXGBE_SUCCESS)
1944 return status;
1948 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK,
1952 return status;
1965 int32_t status;
1968 status = hw->mac.ops.read_iosf_sb_reg(hw,
1971 if (status)
1972 return status;
1986 status = hw->mac.ops.write_iosf_sb_reg(hw,
1992 status = hw->mac.ops.read_iosf_sb_reg(hw,
1996 if (status)
1997 return status;
2005 status = hw->mac.ops.write_iosf_sb_reg(hw,
2248 int32_t status;
2257 status = hw->mac.ops.stop_adapter(hw);
2258 if (status != IXGBE_SUCCESS) {
2259 DEBUGOUT1("Failed to stop adapter, STATUS = %d\n", status);
2260 return status;
2268 status = hw->phy.ops.init(hw);
2270 if (status)
2272 status);
2274 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED ||
2275 status == IXGBE_ERR_PHY_ADDR_INVALID) {
2277 return status;
2282 status = ixgbe_init_ext_t_x550em(hw);
2283 if (status) {
2285 status);
2286 return status;
2292 status = hw->mac.ops.setup_sfp(hw);
2296 if (status == IXGBE_ERR_SFP_NOT_SUPPORTED)
2297 return status;
2318 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
2319 if (status != IXGBE_SUCCESS) {
2321 "semaphore failed with %d", status);
2338 status = IXGBE_ERR_RESET_FAILED;
2368 if (status != IXGBE_SUCCESS)
2369 DEBUGOUT1("Reset HW failed, STATUS = %d\n", status);
2371 return status;
2380 uint32_t status;
2383 status = hw->phy.ops.read_reg(hw,
2388 if (status != IXGBE_SUCCESS)
2389 return status;
2395 status = hw->phy.ops.read_reg(hw,
2400 if (status != IXGBE_SUCCESS)
2401 return status;
2405 status = hw->phy.ops.write_reg(hw,
2410 if (status != IXGBE_SUCCESS)
2411 return status;
2414 return status;
2488 int32_t status;
2492 status = mac->ops.read_iosf_sb_reg(hw,
2495 if (status != IXGBE_SUCCESS)
2496 return status;
2516 status = mac->ops.write_iosf_sb_reg(hw,
2521 status = ixgbe_restart_an_internal_phy_x550em(hw);
2523 return status;
2638 int32_t status;
2642 status = mac->ops.read_iosf_sb_reg(hw,
2645 if (status != IXGBE_SUCCESS)
2646 return status;
2648 status = mac->ops.write_iosf_sb_reg(hw,
2651 if (status != IXGBE_SUCCESS)
2652 return status;
2655 status = mac->ops.read_iosf_sb_reg(hw,
2658 if (status != IXGBE_SUCCESS)
2659 return status;
2663 status = mac->ops.write_iosf_sb_reg(hw,
2666 if (status != IXGBE_SUCCESS)
2667 return status;
2668 status = mac->ops.read_iosf_sb_reg(hw,
2671 if (status != IXGBE_SUCCESS)
2672 return status;
2676 status = mac->ops.write_iosf_sb_reg(hw,
2679 if (status != IXGBE_SUCCESS)
2680 return status;
2683 status = mac->ops.read_iosf_sb_reg(hw,
2686 if (status != IXGBE_SUCCESS)
2687 return status;
2692 status = mac->ops.write_iosf_sb_reg(hw,
2695 return status;
2709 int32_t status;
2717 status = mac->ops.read_iosf_sb_reg(hw,
2720 if (status != IXGBE_SUCCESS)
2721 return status;
2739 status = mac->ops.write_iosf_sb_reg(hw,
2742 if (status != IXGBE_SUCCESS)
2743 return status;
2747 status = ixgbe_setup_ixfi_x550em_x(hw);
2748 if (status != IXGBE_SUCCESS)
2749 return status;
2753 status = ixgbe_restart_an_internal_phy_x550em(hw);
2755 return status;
2759 * ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status
2761 * @link_up: address of boolean to indicate link status
2763 * Returns error code if unable to get link status.
2772 /* read this twice back to back to indicate current status */
2795 * The driver will call this function when it gets a link status change
2806 uint32_t status;
2815 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
2816 if (status != IXGBE_SUCCESS)
2817 return status;
2822 status = hw->phy.ops.read_reg(hw,
2826 if (status != IXGBE_SUCCESS)
2827 return status;
2830 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
2831 if (status != IXGBE_SUCCESS)
2832 return status;
2867 int32_t status;
2871 status = hw->mac.ops.read_iosf_sb_reg(hw,
2874 if (status != IXGBE_SUCCESS)
2875 return status;
2879 status = hw->mac.ops.write_iosf_sb_reg(hw,
2882 if (status != IXGBE_SUCCESS)
2883 return status;
2886 status = hw->mac.ops.read_iosf_sb_reg(hw,
2889 if (status != IXGBE_SUCCESS)
2890 return status;
2893 status = hw->mac.ops.write_iosf_sb_reg(hw,
2896 if (status != IXGBE_SUCCESS)
2897 return status;
2900 status = hw->mac.ops.read_iosf_sb_reg(hw,
2903 if (status != IXGBE_SUCCESS)
2904 return status;
2906 status = hw->mac.ops.write_iosf_sb_reg(hw,
2909 if (status != IXGBE_SUCCESS)
2910 return status;
2913 status = hw->mac.ops.read_iosf_sb_reg(hw,
2916 if (status != IXGBE_SUCCESS)
2917 return status;
2919 status = hw->mac.ops.write_iosf_sb_reg(hw,
2923 return status;
2939 int32_t status;
2954 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
2955 if (status)
2956 return status;
2958 status = ixgbe_hic_unlocked(hw, (uint32_t *)&buffer, sizeof(buffer),
2960 if (!status) {
2966 return status;
2986 int32_t status;
2992 status = hw->mac.ops.acquire_swfw_sync(hw, mask);
2993 if (status) {
2995 return status;
3015 status = ixgbe_hic_unlocked(hw, (uint32_t *)&buffer, sizeof(buffer),
3018 if (status) {
3042 return status;
3056 int32_t status;
3071 status = ixgbe_host_interface_command(hw, (uint32_t *)&buffer,
3075 return status;
3089 int32_t status = IXGBE_SUCCESS;
3095 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data);
3099 status = IXGBE_ERR_SWFW_SYNC;
3102 return status;
3114 * Returns error status for any failure
3121 int32_t status;
3129 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf);
3130 if (status) {
3132 return status;
3165 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr,
3167 if (status) {
3169 return status;
3190 int32_t status;
3200 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0,
3203 if (status) {
3205 return status;
3250 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum,
3252 if (status)
3253 return status;
3282 int32_t status;
3292 status = hw->eeprom.ops.read(hw, 0, &checksum);
3293 if (status) {
3295 return status;
3298 status = hw->eeprom.ops.calc_checksum(hw);
3299 if (status < 0)
3300 return status;
3302 checksum = (uint16_t)(status & 0xffff);
3304 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM,
3306 if (status)
3307 return status;
3313 status = IXGBE_ERR_EEPROM_CHECKSUM;
3322 return status;
3335 int32_t status;
3344 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum);
3345 if (status) {
3347 return status;
3350 status = ixgbe_calc_eeprom_checksum_X550(hw);
3351 if (status < 0)
3352 return status;
3354 checksum = (uint16_t)(status & 0xffff);
3356 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM,
3358 if (status)
3359 return status;
3361 status = ixgbe_update_flash_X550(hw);
3363 return status;
3374 int32_t status = IXGBE_SUCCESS;
3384 status = ixgbe_host_interface_command(hw, (uint32_t *)&buffer,
3388 return status;
3492 int32_t status;
3513 status = ixgbe_host_interface_command(hw, (uint32_t *)&fw_cmd,
3518 if (status) {
3539 int32_t status;
3554 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3555 if (status != IXGBE_SUCCESS)
3556 return status;
3558 status = hw->eeprom.ops.read(hw, NVM_INIT_CTRL_3, &hw->eeprom.ctrl_word_3);
3559 if (status != IXGBE_SUCCESS)
3560 return status;
3570 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed);
3572 if (status != IXGBE_SUCCESS)
3573 return status;
3579 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT,
3583 if (status != IXGBE_SUCCESS)
3584 return status;
3587 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up);
3588 if (status != IXGBE_SUCCESS)
3599 return status;
3602 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM,
3606 if (status != IXGBE_SUCCESS)
3607 return status;
3609 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG,
3613 if (status != IXGBE_SUCCESS)
3614 return status;
3616 status = hw->phy.ops.read_reg(hw,
3621 if (status != IXGBE_SUCCESS)
3622 return status;
3627 status = hw->mac.ops.setup_link(hw, lcd_speed, FALSE);
3632 return status;
3645 int32_t status;
3650 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS,
3654 if (status != IXGBE_SUCCESS)
3655 return status;
3660 return status;
3666 return status;
3670 return status;
3772 int32_t status = IXGBE_ERR_FC_NOT_NEGOTIATED;
3794 status = hw->mac.ops.read_iosf_sb_reg(hw,
3798 if (status != IXGBE_SUCCESS ||
3801 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
3808 status = hw->mac.ops.read_iosf_sb_reg(hw,
3812 if (status != IXGBE_SUCCESS) {
3817 status = hw->mac.ops.read_iosf_sb_reg(hw,
3821 if (status != IXGBE_SUCCESS) {
3826 status = ixgbe_negotiate_fc(hw, an_cntl_1, lp_an_page_low,
3833 if (status == IXGBE_SUCCESS) {
3860 int32_t status = IXGBE_ERR_FC_NOT_NEGOTIATED;
3883 status = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_GET_LINK_INFO, &info);
3884 if (status != IXGBE_SUCCESS ||
3887 status = IXGBE_ERR_FC_NOT_NEGOTIATED;
3892 status = ixgbe_negotiate_fc(hw, info[0], info[0],
3899 if (status == IXGBE_SUCCESS) {
3915 int32_t status = IXGBE_SUCCESS;
3934 status = hw->mac.ops.read_iosf_sb_reg(hw,
3938 if (status != IXGBE_SUCCESS) {
3940 return status;
3985 status = hw->mac.ops.write_iosf_sb_reg(hw,
3990 status = ixgbe_restart_an_internal_phy_x550em(hw);
3992 return status;
4024 int32_t status;
4028 status = ixgbe_acquire_swfw_sync_X540(hw, mask);
4029 if (status)
4030 return status;
4066 int32_t status = IXGBE_SUCCESS;
4071 status = IXGBE_SUCCESS;
4073 status = ixgbe_acquire_swfw_sync_X540(hw, hmask);
4074 if (status) {
4076 status);
4077 return status;
4082 status = ixgbe_get_phy_token(hw);
4083 if (status == IXGBE_ERR_TOKEN_RETRY)
4085 status);
4087 if (status == IXGBE_SUCCESS)
4093 if (status != IXGBE_ERR_TOKEN_RETRY) {
4095 status);
4096 return status;
4102 return status;
4139 int32_t status;
4147 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data);
4151 return status;
4167 int32_t status;
4173 status = hw->phy.ops.write_reg_mdi(hw, reg_addr, device_type,
4177 status = IXGBE_ERR_SWFW_SYNC;
4180 return status;
4188 * failure alarm then return error, else if link status change
4192 * failure alarm, else return PHY access status.
4197 uint32_t status;
4199 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc);
4201 if (status != IXGBE_SUCCESS)
4202 return status;
4219 * Returns error status for any failure
4225 int32_t status;
4242 status = ixgbe_setup_ixfi_x550em(hw, &force_speed);
4244 if (status != IXGBE_SUCCESS)
4245 return status;
4252 * ixgbe_check_link_t_X550em - Determine link and speed status
4263 uint32_t status;
4269 status = ixgbe_check_mac_link_generic(hw, speed, link_up,
4273 if (status != IXGBE_SUCCESS || !(*link_up))
4274 return status;
4277 * X557 PHY. Link status is latching low, and can only be used to detect
4278 * link drop, and not the current status of the link without performing
4282 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS,
4286 if (status != IXGBE_SUCCESS)
4287 return status;
4303 int32_t status;
4305 status = ixgbe_reset_phy_generic(hw);
4307 if (status != IXGBE_SUCCESS)
4308 return status;