Lines Matching refs:status
98 s32 status; in ixgbe_check_cs4227_reg() local
103 status = ixgbe_write_cs4227(hw, reg, reg_val); in ixgbe_check_cs4227_reg()
104 if (status) in ixgbe_check_cs4227_reg()
105 return status; in ixgbe_check_cs4227_reg()
115 return status; in ixgbe_check_cs4227_reg()
131 s32 status; in ixgbe_get_cs4227_status() local
135 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value); in ixgbe_get_cs4227_status()
136 if (status) in ixgbe_get_cs4227_status()
137 return status; in ixgbe_get_cs4227_status()
142 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_LINE_SPARE24_LSB); in ixgbe_get_cs4227_status()
143 if (status) in ixgbe_get_cs4227_status()
144 return status; in ixgbe_get_cs4227_status()
146 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_HOST_SPARE24_LSB); in ixgbe_get_cs4227_status()
147 if (status) in ixgbe_get_cs4227_status()
148 return status; in ixgbe_get_cs4227_status()
151 status = ixgbe_check_cs4227_reg(hw, IXGBE_CS4227_LINE_SPARE24_LSB + in ixgbe_get_cs4227_status()
153 if (status) in ixgbe_get_cs4227_status()
154 return status; in ixgbe_get_cs4227_status()
170 s32 status; in ixgbe_read_pe() local
172 status = ixgbe_read_i2c_byte_generic_unlocked(hw, reg, IXGBE_PE, value); in ixgbe_read_pe()
173 if (status) in ixgbe_read_pe()
174 hw_err(hw, "port expander access failed with %d\n", status); in ixgbe_read_pe()
175 return status; in ixgbe_read_pe()
188 s32 status; in ixgbe_write_pe() local
190 status = ixgbe_write_i2c_byte_generic_unlocked(hw, reg, IXGBE_PE, in ixgbe_write_pe()
192 if (status) in ixgbe_write_pe()
193 hw_err(hw, "port expander access failed with %d\n", status); in ixgbe_write_pe()
194 return status; in ixgbe_write_pe()
206 s32 status; in ixgbe_reset_cs4227() local
212 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®); in ixgbe_reset_cs4227()
213 if (status) in ixgbe_reset_cs4227()
214 return status; in ixgbe_reset_cs4227()
216 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
217 if (status) in ixgbe_reset_cs4227()
218 return status; in ixgbe_reset_cs4227()
220 status = ixgbe_read_pe(hw, IXGBE_PE_CONFIG, ®); in ixgbe_reset_cs4227()
221 if (status) in ixgbe_reset_cs4227()
222 return status; in ixgbe_reset_cs4227()
224 status = ixgbe_write_pe(hw, IXGBE_PE_CONFIG, reg); in ixgbe_reset_cs4227()
225 if (status) in ixgbe_reset_cs4227()
226 return status; in ixgbe_reset_cs4227()
228 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®); in ixgbe_reset_cs4227()
229 if (status) in ixgbe_reset_cs4227()
230 return status; in ixgbe_reset_cs4227()
232 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
233 if (status) in ixgbe_reset_cs4227()
234 return status; in ixgbe_reset_cs4227()
238 status = ixgbe_read_pe(hw, IXGBE_PE_OUTPUT, ®); in ixgbe_reset_cs4227()
239 if (status) in ixgbe_reset_cs4227()
240 return status; in ixgbe_reset_cs4227()
242 status = ixgbe_write_pe(hw, IXGBE_PE_OUTPUT, reg); in ixgbe_reset_cs4227()
243 if (status) in ixgbe_reset_cs4227()
244 return status; in ixgbe_reset_cs4227()
249 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EFUSE_STATUS, in ixgbe_reset_cs4227()
251 if (!status && value == IXGBE_CS4227_EEPROM_LOAD_OK) in ixgbe_reset_cs4227()
260 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_EEPROM_STATUS, &value); in ixgbe_reset_cs4227()
261 if (status || !(value & IXGBE_CS4227_EEPROM_LOAD_OK)) { in ixgbe_reset_cs4227()
276 s32 status; in ixgbe_check_cs4227() local
281 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
282 if (status) { in ixgbe_check_cs4227()
283 hw_err(hw, "semaphore failed with %d\n", status); in ixgbe_check_cs4227()
289 status = ixgbe_read_cs4227(hw, IXGBE_CS4227_SCRATCH, &value); in ixgbe_check_cs4227()
290 if (!status && value == IXGBE_CS4227_RESET_COMPLETE) in ixgbe_check_cs4227()
293 if (status || value != IXGBE_CS4227_RESET_PENDING) in ixgbe_check_cs4227()
302 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
303 if (status) { in ixgbe_check_cs4227()
304 hw_err(hw, "semaphore failed with %d\n", status); in ixgbe_check_cs4227()
310 status = ixgbe_reset_cs4227(hw); in ixgbe_check_cs4227()
311 if (status) { in ixgbe_check_cs4227()
312 hw_err(hw, "CS4227 reset failed: %d", status); in ixgbe_check_cs4227()
323 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask); in ixgbe_check_cs4227()
324 if (status) { in ixgbe_check_cs4227()
325 hw_err(hw, "semaphore failed with %d", status); in ixgbe_check_cs4227()
330 status = ixgbe_get_cs4227_status(hw); in ixgbe_check_cs4227()
331 if (status) { in ixgbe_check_cs4227()
332 hw_err(hw, "CS4227 status failed: %d", status); in ixgbe_check_cs4227()
337 status = ixgbe_write_cs4227(hw, IXGBE_CS4227_SCRATCH, in ixgbe_check_cs4227()
504 s32 status; in ixgbe_read_ee_hostif_data_X550() local
517 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_read_ee_hostif_data_X550()
520 if (status) in ixgbe_read_ee_hostif_data_X550()
521 return status; in ixgbe_read_ee_hostif_data_X550()
543 s32 status; in ixgbe_read_ee_hostif_buffer_X550() local
547 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_buffer_X550()
548 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
550 return status; in ixgbe_read_ee_hostif_buffer_X550()
568 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_read_ee_hostif_buffer_X550()
572 if (status) { in ixgbe_read_ee_hostif_buffer_X550()
596 return status; in ixgbe_read_ee_hostif_buffer_X550()
612 s32 status; in ixgbe_checksum_ptr_x550() local
620 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
621 if (status) { in ixgbe_checksum_ptr_x550()
623 return status; in ixgbe_checksum_ptr_x550()
656 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, in ixgbe_checksum_ptr_x550()
658 if (status) { in ixgbe_checksum_ptr_x550()
660 return status; in ixgbe_checksum_ptr_x550()
680 s32 status; in ixgbe_calc_checksum_X550() local
688 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0, in ixgbe_calc_checksum_X550()
691 if (status) { in ixgbe_calc_checksum_X550()
693 return status; in ixgbe_calc_checksum_X550()
736 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum, in ixgbe_calc_checksum_X550()
738 if (status) in ixgbe_calc_checksum_X550()
739 return status; in ixgbe_calc_checksum_X550()
766 s32 status = 0; in ixgbe_read_ee_hostif_X550() local
769 status = ixgbe_read_ee_hostif_data_X550(hw, offset, data); in ixgbe_read_ee_hostif_X550()
772 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_read_ee_hostif_X550()
775 return status; in ixgbe_read_ee_hostif_X550()
788 s32 status; in ixgbe_validate_eeprom_checksum_X550() local
796 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X550()
797 if (status) { in ixgbe_validate_eeprom_checksum_X550()
799 return status; in ixgbe_validate_eeprom_checksum_X550()
802 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X550()
803 if (status < 0) in ixgbe_validate_eeprom_checksum_X550()
804 return status; in ixgbe_validate_eeprom_checksum_X550()
806 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X550()
808 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_validate_eeprom_checksum_X550()
810 if (status) in ixgbe_validate_eeprom_checksum_X550()
811 return status; in ixgbe_validate_eeprom_checksum_X550()
817 status = IXGBE_ERR_EEPROM_CHECKSUM; in ixgbe_validate_eeprom_checksum_X550()
825 return status; in ixgbe_validate_eeprom_checksum_X550()
838 s32 status; in ixgbe_write_ee_hostif_data_X550() local
851 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_write_ee_hostif_data_X550()
854 return status; in ixgbe_write_ee_hostif_data_X550()
866 s32 status = 0; in ixgbe_write_ee_hostif_X550() local
869 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data); in ixgbe_write_ee_hostif_X550()
873 status = IXGBE_ERR_SWFW_SYNC; in ixgbe_write_ee_hostif_X550()
876 return status; in ixgbe_write_ee_hostif_X550()
886 s32 status = 0; in ixgbe_update_flash_X550() local
894 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_update_flash_X550()
897 return status; in ixgbe_update_flash_X550()
925 s32 status; in ixgbe_disable_rx_x550() local
944 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, in ixgbe_disable_rx_x550()
949 if (status) { in ixgbe_disable_rx_x550()
968 s32 status; in ixgbe_update_eeprom_checksum_X550() local
975 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X550()
976 if (status) { in ixgbe_update_eeprom_checksum_X550()
978 return status; in ixgbe_update_eeprom_checksum_X550()
981 status = ixgbe_calc_eeprom_checksum_X550(hw); in ixgbe_update_eeprom_checksum_X550()
982 if (status < 0) in ixgbe_update_eeprom_checksum_X550()
983 return status; in ixgbe_update_eeprom_checksum_X550()
985 checksum = (u16)(status & 0xffff); in ixgbe_update_eeprom_checksum_X550()
987 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_update_eeprom_checksum_X550()
989 if (status) in ixgbe_update_eeprom_checksum_X550()
990 return status; in ixgbe_update_eeprom_checksum_X550()
992 status = ixgbe_update_flash_X550(hw); in ixgbe_update_eeprom_checksum_X550()
994 return status; in ixgbe_update_eeprom_checksum_X550()
1010 s32 status = 0; in ixgbe_write_ee_hostif_buffer_X550() local
1014 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
1015 if (status) { in ixgbe_write_ee_hostif_buffer_X550()
1017 return status; in ixgbe_write_ee_hostif_buffer_X550()
1021 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i, in ixgbe_write_ee_hostif_buffer_X550()
1023 if (status) { in ixgbe_write_ee_hostif_buffer_X550()
1031 return status; in ixgbe_write_ee_hostif_buffer_X550()
1089 s32 status; in ixgbe_setup_ixfi_x550em() local
1093 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1096 if (status) in ixgbe_setup_ixfi_x550em()
1097 return status; in ixgbe_setup_ixfi_x550em()
1115 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1118 if (status) in ixgbe_setup_ixfi_x550em()
1119 return status; in ixgbe_setup_ixfi_x550em()
1122 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1125 if (status) in ixgbe_setup_ixfi_x550em()
1126 return status; in ixgbe_setup_ixfi_x550em()
1129 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1132 if (status) in ixgbe_setup_ixfi_x550em()
1133 return status; in ixgbe_setup_ixfi_x550em()
1136 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1139 if (status) in ixgbe_setup_ixfi_x550em()
1140 return status; in ixgbe_setup_ixfi_x550em()
1145 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1148 if (status) in ixgbe_setup_ixfi_x550em()
1149 return status; in ixgbe_setup_ixfi_x550em()
1151 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1154 if (status) in ixgbe_setup_ixfi_x550em()
1155 return status; in ixgbe_setup_ixfi_x550em()
1160 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1163 if (status) in ixgbe_setup_ixfi_x550em()
1164 return status; in ixgbe_setup_ixfi_x550em()
1167 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1170 if (status) in ixgbe_setup_ixfi_x550em()
1171 return status; in ixgbe_setup_ixfi_x550em()
1177 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1180 if (status) in ixgbe_setup_ixfi_x550em()
1181 return status; in ixgbe_setup_ixfi_x550em()
1184 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1187 if (status) in ixgbe_setup_ixfi_x550em()
1188 return status; in ixgbe_setup_ixfi_x550em()
1191 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
1195 return status; in ixgbe_setup_ixfi_x550em()
1243 s32 status; in ixgbe_setup_mac_link_sfp_x550em() local
1248 status = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear); in ixgbe_setup_mac_link_sfp_x550em()
1254 if (status == IXGBE_ERR_SFP_NOT_PRESENT) in ixgbe_setup_mac_link_sfp_x550em()
1257 if (status) in ixgbe_setup_mac_link_sfp_x550em()
1258 return status; in ixgbe_setup_mac_link_sfp_x550em()
1263 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, in ixgbe_setup_mac_link_sfp_x550em()
1270 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, in ixgbe_setup_mac_link_sfp_x550em()
1278 status = ixgbe_write_i2c_combined_generic(hw, IXGBE_CS4227, slice, in ixgbe_setup_mac_link_sfp_x550em()
1283 status = ixgbe_setup_ixfi_x550em(hw, &speed); in ixgbe_setup_mac_link_sfp_x550em()
1285 return status; in ixgbe_setup_mac_link_sfp_x550em()
1303 s32 status; in ixgbe_setup_mac_link_t_X550em() local
1316 status = ixgbe_setup_ixfi_x550em(hw, &force_speed); in ixgbe_setup_mac_link_t_X550em()
1318 if (status) in ixgbe_setup_mac_link_t_X550em()
1319 return status; in ixgbe_setup_mac_link_t_X550em()
1338 u32 status; in ixgbe_check_link_t_X550em() local
1344 status = ixgbe_check_mac_link_generic(hw, speed, link_up, in ixgbe_check_link_t_X550em()
1348 if (status || !(*link_up)) in ixgbe_check_link_t_X550em()
1349 return status; in ixgbe_check_link_t_X550em()
1354 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_check_link_t_X550em()
1357 if (status) in ixgbe_check_link_t_X550em()
1358 return status; in ixgbe_check_link_t_X550em()
1401 s32 status; in ixgbe_setup_sfp_modules_X550em() local
1405 status = ixgbe_supported_sfp_modules_X550em(hw, &linear); in ixgbe_setup_sfp_modules_X550em()
1406 if (status) in ixgbe_setup_sfp_modules_X550em()
1407 return status; in ixgbe_setup_sfp_modules_X550em()
1463 u32 status; in ixgbe_get_lasi_ext_t_x550em() local
1469 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1473 if (status || !(reg & IXGBE_MDIO_GLOBAL_VEN_ALM_INT_EN)) in ixgbe_get_lasi_ext_t_x550em()
1474 return status; in ixgbe_get_lasi_ext_t_x550em()
1477 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1481 if (status || !(reg & (IXGBE_MDIO_GLOBAL_AN_VEN_ALM_INT_EN | in ixgbe_get_lasi_ext_t_x550em()
1483 return status; in ixgbe_get_lasi_ext_t_x550em()
1486 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_ALARM_1, in ixgbe_get_lasi_ext_t_x550em()
1490 if (status) in ixgbe_get_lasi_ext_t_x550em()
1491 return status; in ixgbe_get_lasi_ext_t_x550em()
1501 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, in ixgbe_get_lasi_ext_t_x550em()
1504 if (status || !(reg & IXGBE_MDIO_GLOBAL_STD_ALM2_INT)) in ixgbe_get_lasi_ext_t_x550em()
1505 return status; in ixgbe_get_lasi_ext_t_x550em()
1508 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, in ixgbe_get_lasi_ext_t_x550em()
1511 if (status) in ixgbe_get_lasi_ext_t_x550em()
1512 return status; in ixgbe_get_lasi_ext_t_x550em()
1532 u32 status; in ixgbe_enable_lasi_ext_t_x550em() local
1537 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_enable_lasi_ext_t_x550em()
1540 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1542 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1543 return status; in ixgbe_enable_lasi_ext_t_x550em()
1547 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1549 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1550 return status; in ixgbe_enable_lasi_ext_t_x550em()
1553 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1556 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1557 return status; in ixgbe_enable_lasi_ext_t_x550em()
1561 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1564 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1565 return status; in ixgbe_enable_lasi_ext_t_x550em()
1568 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1571 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1572 return status; in ixgbe_enable_lasi_ext_t_x550em()
1577 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1580 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1581 return status; in ixgbe_enable_lasi_ext_t_x550em()
1584 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1587 if (status) in ixgbe_enable_lasi_ext_t_x550em()
1588 return status; in ixgbe_enable_lasi_ext_t_x550em()
1592 status = hw->phy.ops.write_reg(hw, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, in ixgbe_enable_lasi_ext_t_x550em()
1596 return status; in ixgbe_enable_lasi_ext_t_x550em()
1614 u32 status; in ixgbe_handle_lasi_ext_t_x550em() local
1616 status = ixgbe_get_lasi_ext_t_x550em(hw, &lsc); in ixgbe_handle_lasi_ext_t_x550em()
1617 if (status) in ixgbe_handle_lasi_ext_t_x550em()
1618 return status; in ixgbe_handle_lasi_ext_t_x550em()
1636 s32 status; in ixgbe_setup_kr_speed_x550em() local
1639 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_kr_speed_x550em()
1642 if (status) in ixgbe_setup_kr_speed_x550em()
1643 return status; in ixgbe_setup_kr_speed_x550em()
1661 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_kr_speed_x550em()
1665 return status; in ixgbe_setup_kr_speed_x550em()
1675 s32 status; in ixgbe_setup_kx4_x550em() local
1678 status = ixgbe_read_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, in ixgbe_setup_kx4_x550em()
1681 if (status) in ixgbe_setup_kx4_x550em()
1682 return status; in ixgbe_setup_kx4_x550em()
1699 status = ixgbe_write_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, in ixgbe_setup_kx4_x550em()
1703 return status; in ixgbe_setup_kx4_x550em()
1762 u32 status; in ixgbe_setup_internal_phy_t_x550em() local
1769 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
1770 if (status) in ixgbe_setup_internal_phy_t_x550em()
1771 return status; in ixgbe_setup_internal_phy_t_x550em()
1776 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, in ixgbe_setup_internal_phy_t_x550em()
1779 if (status) in ixgbe_setup_internal_phy_t_x550em()
1780 return status; in ixgbe_setup_internal_phy_t_x550em()
1783 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_setup_internal_phy_t_x550em()
1784 if (status) in ixgbe_setup_internal_phy_t_x550em()
1785 return status; in ixgbe_setup_internal_phy_t_x550em()
1813 s32 status; in ixgbe_reset_phy_t_X550em() local
1815 status = ixgbe_reset_phy_generic(hw); in ixgbe_reset_phy_t_X550em()
1817 if (status) in ixgbe_reset_phy_t_X550em()
1818 return status; in ixgbe_reset_phy_t_X550em()
1834 s32 status; in ixgbe_get_lcd_t_x550em() local
1839 status = hw->phy.ops.read_reg(hw, IXGBE_AUTO_NEG_LP_STATUS, in ixgbe_get_lcd_t_x550em()
1842 if (status) in ixgbe_get_lcd_t_x550em()
1843 return status; in ixgbe_get_lcd_t_x550em()
1848 return status; in ixgbe_get_lcd_t_x550em()
1854 return status; in ixgbe_get_lcd_t_x550em()
1858 return status; in ixgbe_get_lcd_t_x550em()
1871 s32 status; in ixgbe_enter_lplu_t_x550em() local
1884 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
1885 if (status) in ixgbe_enter_lplu_t_x550em()
1886 return status; in ixgbe_enter_lplu_t_x550em()
1888 status = hw->eeprom.ops.read(hw, NVM_INIT_CTRL_3, in ixgbe_enter_lplu_t_x550em()
1890 if (status) in ixgbe_enter_lplu_t_x550em()
1891 return status; in ixgbe_enter_lplu_t_x550em()
1902 status = ixgbe_get_lcd_t_x550em(hw, &lcd_speed); in ixgbe_enter_lplu_t_x550em()
1903 if (status) in ixgbe_enter_lplu_t_x550em()
1904 return status; in ixgbe_enter_lplu_t_x550em()
1910 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, in ixgbe_enter_lplu_t_x550em()
1913 if (status) in ixgbe_enter_lplu_t_x550em()
1914 return status; in ixgbe_enter_lplu_t_x550em()
1917 status = ixgbe_ext_phy_t_x550em_get_link(hw, &link_up); in ixgbe_enter_lplu_t_x550em()
1918 if (status) in ixgbe_enter_lplu_t_x550em()
1929 return status; in ixgbe_enter_lplu_t_x550em()
1932 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM, in ixgbe_enter_lplu_t_x550em()
1935 if (status) in ixgbe_enter_lplu_t_x550em()
1936 return status; in ixgbe_enter_lplu_t_x550em()
1938 status = hw->phy.ops.read_reg(hw, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG, in ixgbe_enter_lplu_t_x550em()
1941 if (status) in ixgbe_enter_lplu_t_x550em()
1942 return status; in ixgbe_enter_lplu_t_x550em()
1944 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em()
1948 if (status) in ixgbe_enter_lplu_t_x550em()
1949 return status; in ixgbe_enter_lplu_t_x550em()
1954 status = hw->mac.ops.setup_link(hw, lcd_speed, false); in ixgbe_enter_lplu_t_x550em()
1959 return status; in ixgbe_enter_lplu_t_x550em()
2082 s32 status; in ixgbe_init_ext_t_x550em() local
2085 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2089 if (status) in ixgbe_init_ext_t_x550em()
2090 return status; in ixgbe_init_ext_t_x550em()
2096 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2100 if (status) in ixgbe_init_ext_t_x550em()
2101 return status; in ixgbe_init_ext_t_x550em()
2105 status = hw->phy.ops.write_reg(hw, in ixgbe_init_ext_t_x550em()
2109 if (status) in ixgbe_init_ext_t_x550em()
2110 return status; in ixgbe_init_ext_t_x550em()
2113 return status; in ixgbe_init_ext_t_x550em()
2126 s32 status; in ixgbe_reset_hw_X550em() local
2133 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
2134 if (status) in ixgbe_reset_hw_X550em()
2135 return status; in ixgbe_reset_hw_X550em()
2143 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_X550em()
2147 status = ixgbe_init_ext_t_x550em(hw); in ixgbe_reset_hw_X550em()
2148 if (status) in ixgbe_reset_hw_X550em()
2149 return status; in ixgbe_reset_hw_X550em()
2154 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
2189 status = IXGBE_ERR_RESET_FAILED; in ixgbe_reset_hw_X550em()
2223 return status; in ixgbe_reset_hw_X550em()
2304 s32 status; in ixgbe_acquire_swfw_sync_X550em() local
2306 status = ixgbe_acquire_swfw_sync_X540(hw, mask); in ixgbe_acquire_swfw_sync_X550em()
2307 if (status) in ixgbe_acquire_swfw_sync_X550em()
2308 return status; in ixgbe_acquire_swfw_sync_X550em()