Lines Matching refs:ret_val

48 	s32 ret_val;  in e1000_init_phy_params_82571()  local
83 ret_val = e1000_get_phy_id_82571(hw); in e1000_init_phy_params_82571()
84 if (ret_val) { in e1000_init_phy_params_82571()
86 return ret_val; in e1000_init_phy_params_82571()
94 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
98 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
103 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
106 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
110 if (ret_val) in e1000_init_phy_params_82571()
113 return ret_val; in e1000_init_phy_params_82571()
390 s32 ret_val; in e1000_get_phy_id_82571() local
407 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000_get_phy_id_82571()
408 if (ret_val) in e1000_get_phy_id_82571()
409 return ret_val; in e1000_get_phy_id_82571()
413 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000_get_phy_id_82571()
414 if (ret_val) in e1000_get_phy_id_82571()
415 return ret_val; in e1000_get_phy_id_82571()
563 s32 ret_val; in e1000_get_hw_semaphore_82574() local
566 ret_val = e1000_get_hw_semaphore_82573(hw); in e1000_get_hw_semaphore_82574()
567 if (ret_val) in e1000_get_hw_semaphore_82574()
569 return ret_val; in e1000_get_hw_semaphore_82574()
648 s32 ret_val; in e1000_acquire_nvm_82571() local
650 ret_val = e1000_get_hw_semaphore_82571(hw); in e1000_acquire_nvm_82571()
651 if (ret_val) in e1000_acquire_nvm_82571()
652 return ret_val; in e1000_acquire_nvm_82571()
658 ret_val = e1000e_acquire_nvm(hw); in e1000_acquire_nvm_82571()
662 if (ret_val) in e1000_acquire_nvm_82571()
665 return ret_val; in e1000_acquire_nvm_82571()
695 s32 ret_val; in e1000_write_nvm_82571() local
701 ret_val = e1000_write_nvm_eewr_82571(hw, offset, words, data); in e1000_write_nvm_82571()
705 ret_val = e1000e_write_nvm_spi(hw, offset, words, data); in e1000_write_nvm_82571()
708 ret_val = -E1000_ERR_NVM; in e1000_write_nvm_82571()
712 return ret_val; in e1000_write_nvm_82571()
726 s32 ret_val; in e1000_update_nvm_checksum_82571() local
729 ret_val = e1000e_update_nvm_checksum_generic(hw); in e1000_update_nvm_checksum_82571()
730 if (ret_val) in e1000_update_nvm_checksum_82571()
731 return ret_val; in e1000_update_nvm_checksum_82571()
809 s32 ret_val = 0; in e1000_write_nvm_eewr_82571() local
825 ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_WRITE); in e1000_write_nvm_eewr_82571()
826 if (ret_val) in e1000_write_nvm_eewr_82571()
831 ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_WRITE); in e1000_write_nvm_eewr_82571()
832 if (ret_val) in e1000_write_nvm_eewr_82571()
836 return ret_val; in e1000_write_nvm_eewr_82571()
877 s32 ret_val; in e1000_set_d0_lplu_state_82571() local
880 ret_val = e1e_rphy(hw, IGP02E1000_PHY_POWER_MGMT, &data); in e1000_set_d0_lplu_state_82571()
881 if (ret_val) in e1000_set_d0_lplu_state_82571()
882 return ret_val; in e1000_set_d0_lplu_state_82571()
886 ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); in e1000_set_d0_lplu_state_82571()
887 if (ret_val) in e1000_set_d0_lplu_state_82571()
888 return ret_val; in e1000_set_d0_lplu_state_82571()
891 ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, &data); in e1000_set_d0_lplu_state_82571()
892 if (ret_val) in e1000_set_d0_lplu_state_82571()
893 return ret_val; in e1000_set_d0_lplu_state_82571()
895 ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, data); in e1000_set_d0_lplu_state_82571()
896 if (ret_val) in e1000_set_d0_lplu_state_82571()
897 return ret_val; in e1000_set_d0_lplu_state_82571()
900 ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); in e1000_set_d0_lplu_state_82571()
901 if (ret_val) in e1000_set_d0_lplu_state_82571()
902 return ret_val; in e1000_set_d0_lplu_state_82571()
909 ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571()
911 if (ret_val) in e1000_set_d0_lplu_state_82571()
912 return ret_val; in e1000_set_d0_lplu_state_82571()
915 ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571()
917 if (ret_val) in e1000_set_d0_lplu_state_82571()
918 return ret_val; in e1000_set_d0_lplu_state_82571()
920 ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571()
922 if (ret_val) in e1000_set_d0_lplu_state_82571()
923 return ret_val; in e1000_set_d0_lplu_state_82571()
926 ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571()
928 if (ret_val) in e1000_set_d0_lplu_state_82571()
929 return ret_val; in e1000_set_d0_lplu_state_82571()
945 s32 ret_val; in e1000_reset_hw_82571() local
950 ret_val = e1000e_disable_pcie_master(hw); in e1000_reset_hw_82571()
951 if (ret_val) in e1000_reset_hw_82571()
970 ret_val = e1000_get_hw_semaphore_82573(hw); in e1000_reset_hw_82571()
974 ret_val = e1000_get_hw_semaphore_82574(hw); in e1000_reset_hw_82571()
989 if (!ret_val) in e1000_reset_hw_82571()
995 if (!ret_val) in e1000_reset_hw_82571()
1010 ret_val = e1000e_get_auto_rd_done(hw); in e1000_reset_hw_82571()
1011 if (ret_val) in e1000_reset_hw_82571()
1013 return ret_val; in e1000_reset_hw_82571()
1045 ret_val = e1000_check_alt_mac_addr_generic(hw); in e1000_reset_hw_82571()
1046 if (ret_val) in e1000_reset_hw_82571()
1047 return ret_val; in e1000_reset_hw_82571()
1069 s32 ret_val; in e1000_init_hw_82571() local
1075 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_82571()
1077 if (ret_val) in e1000_init_hw_82571()
1099 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_82571()
1134 return ret_val; in e1000_init_hw_82571()
1363 s32 ret_val; in e1000_check_phy_82574() local
1368 ret_val = e1e_rphy(hw, E1000_RECEIVE_ERROR_COUNTER, &receive_errors); in e1000_check_phy_82574()
1369 if (ret_val) in e1000_check_phy_82574()
1372 ret_val = e1e_rphy(hw, E1000_BASE1000T_STATUS, &status_1kbt); in e1000_check_phy_82574()
1373 if (ret_val) in e1000_check_phy_82574()
1424 s32 ret_val; in e1000_setup_copper_link_82571() local
1434 ret_val = e1000e_copper_link_setup_m88(hw); in e1000_setup_copper_link_82571()
1437 ret_val = e1000e_copper_link_setup_igp(hw); in e1000_setup_copper_link_82571()
1443 if (ret_val) in e1000_setup_copper_link_82571()
1444 return ret_val; in e1000_setup_copper_link_82571()
1503 s32 ret_val = 0; in e1000_check_for_serdes_link_82571() local
1575 ret_val = e1000e_config_fc_after_link_up(hw); in e1000_check_for_serdes_link_82571()
1576 if (ret_val) { in e1000_check_for_serdes_link_82571()
1639 return ret_val; in e1000_check_for_serdes_link_82571()
1652 s32 ret_val; in e1000_valid_led_default_82571() local
1654 ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); in e1000_valid_led_default_82571()
1655 if (ret_val) { in e1000_valid_led_default_82571()
1657 return ret_val; in e1000_valid_led_default_82571()
1730 s32 ret_val; in e1000_fix_nvm_checksum_82571() local
1739 ret_val = e1000_read_nvm(hw, 0x10, 1, &data); in e1000_fix_nvm_checksum_82571()
1740 if (ret_val) in e1000_fix_nvm_checksum_82571()
1741 return ret_val; in e1000_fix_nvm_checksum_82571()
1751 ret_val = e1000_read_nvm(hw, 0x23, 1, &data); in e1000_fix_nvm_checksum_82571()
1752 if (ret_val) in e1000_fix_nvm_checksum_82571()
1753 return ret_val; in e1000_fix_nvm_checksum_82571()
1757 ret_val = e1000_write_nvm(hw, 0x23, 1, &data); in e1000_fix_nvm_checksum_82571()
1758 if (ret_val) in e1000_fix_nvm_checksum_82571()
1759 return ret_val; in e1000_fix_nvm_checksum_82571()
1760 ret_val = e1000e_update_nvm_checksum(hw); in e1000_fix_nvm_checksum_82571()
1761 if (ret_val) in e1000_fix_nvm_checksum_82571()
1762 return ret_val; in e1000_fix_nvm_checksum_82571()
1776 s32 ret_val; in e1000_read_mac_addr_82571() local
1782 ret_val = e1000_check_alt_mac_addr_generic(hw); in e1000_read_mac_addr_82571()
1783 if (ret_val) in e1000_read_mac_addr_82571()
1784 return ret_val; in e1000_read_mac_addr_82571()