Lines Matching refs:ret_val

87 	s32 ret_val = E1000_SUCCESS;  in e1000_init_phy_params_82543()  local
127 ret_val = phy->ops.reset(hw); in e1000_init_phy_params_82543()
128 if (ret_val) { in e1000_init_phy_params_82543()
135 ret_val = e1000_get_phy_id(hw); in e1000_init_phy_params_82543()
136 if (ret_val) in e1000_init_phy_params_82543()
143 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
149 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
154 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
160 return ret_val; in e1000_init_phy_params_82543()
386 bool ret_val; in e1000_init_phy_disabled_82543() local
391 ret_val = FALSE; in e1000_init_phy_disabled_82543()
395 ret_val = dev_spec->init_phy_disabled; in e1000_init_phy_disabled_82543()
398 return ret_val; in e1000_init_phy_disabled_82543()
490 s32 ret_val = E1000_SUCCESS; in e1000_read_phy_reg_82543() local
496 ret_val = -E1000_ERR_PARAM; in e1000_read_phy_reg_82543()
532 return ret_val; in e1000_read_phy_reg_82543()
546 s32 ret_val = E1000_SUCCESS; in e1000_write_phy_reg_82543() local
552 ret_val = -E1000_ERR_PARAM; in e1000_write_phy_reg_82543()
579 return ret_val; in e1000_write_phy_reg_82543()
743 s32 ret_val; in e1000_phy_force_speed_duplex_82543() local
747 ret_val = e1000_phy_force_speed_duplex_m88(hw); in e1000_phy_force_speed_duplex_82543()
748 if (ret_val) in e1000_phy_force_speed_duplex_82543()
753 ret_val = e1000_polarity_reversal_workaround_82543(hw); in e1000_phy_force_speed_duplex_82543()
756 return ret_val; in e1000_phy_force_speed_duplex_82543()
769 s32 ret_val = E1000_SUCCESS; in e1000_polarity_reversal_workaround_82543() local
781 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019); in e1000_polarity_reversal_workaround_82543()
782 if (ret_val) in e1000_polarity_reversal_workaround_82543()
784 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFFF); in e1000_polarity_reversal_workaround_82543()
785 if (ret_val) in e1000_polarity_reversal_workaround_82543()
788 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000); in e1000_polarity_reversal_workaround_82543()
789 if (ret_val) in e1000_polarity_reversal_workaround_82543()
802 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543()
803 if (ret_val) in e1000_polarity_reversal_workaround_82543()
806 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543()
807 if (ret_val) in e1000_polarity_reversal_workaround_82543()
820 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019); in e1000_polarity_reversal_workaround_82543()
821 if (ret_val) in e1000_polarity_reversal_workaround_82543()
824 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFF0); in e1000_polarity_reversal_workaround_82543()
825 if (ret_val) in e1000_polarity_reversal_workaround_82543()
828 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFF00); in e1000_polarity_reversal_workaround_82543()
829 if (ret_val) in e1000_polarity_reversal_workaround_82543()
832 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0x0000); in e1000_polarity_reversal_workaround_82543()
833 if (ret_val) in e1000_polarity_reversal_workaround_82543()
836 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000); in e1000_polarity_reversal_workaround_82543()
837 if (ret_val) in e1000_polarity_reversal_workaround_82543()
844 ret_val = e1000_phy_has_link_generic(hw, PHY_FORCE_TIME, 100000, &link); in e1000_polarity_reversal_workaround_82543()
845 if (ret_val) in e1000_polarity_reversal_workaround_82543()
849 return ret_val; in e1000_polarity_reversal_workaround_82543()
864 s32 ret_val; in e1000_phy_hw_reset_82543() local
890 ret_val = hw->phy.ops.get_cfg_done(hw); in e1000_phy_hw_reset_82543()
892 return ret_val; in e1000_phy_hw_reset_82543()
904 s32 ret_val = E1000_SUCCESS; in e1000_reset_hw_82543() local
947 return ret_val; in e1000_reset_hw_82543()
961 s32 ret_val; in e1000_init_hw_82543() local
993 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_82543()
1003 return ret_val; in e1000_init_hw_82543()
1022 s32 ret_val; in e1000_setup_link_82543() local
1035 ret_val = hw->nvm.ops.read(hw, NVM_INIT_CONTROL2_REG, 1, &data); in e1000_setup_link_82543()
1036 if (ret_val) { in e1000_setup_link_82543()
1038 ret_val = -E1000_ERR_NVM; in e1000_setup_link_82543()
1046 ret_val = e1000_setup_link_generic(hw); in e1000_setup_link_82543()
1049 return ret_val; in e1000_setup_link_82543()
1063 s32 ret_val; in e1000_setup_copper_link_82543() local
1078 ret_val = hw->phy.ops.reset(hw); in e1000_setup_copper_link_82543()
1079 if (ret_val) in e1000_setup_copper_link_82543()
1087 ret_val = e1000_copper_link_setup_m88(hw); in e1000_setup_copper_link_82543()
1088 if (ret_val) in e1000_setup_copper_link_82543()
1096 ret_val = e1000_copper_link_autoneg(hw); in e1000_setup_copper_link_82543()
1097 if (ret_val) in e1000_setup_copper_link_82543()
1105 ret_val = e1000_phy_force_speed_duplex_82543(hw); in e1000_setup_copper_link_82543()
1106 if (ret_val) { in e1000_setup_copper_link_82543()
1116 ret_val = e1000_phy_has_link_generic(hw, COPPER_LINK_UP_LIMIT, 10, in e1000_setup_copper_link_82543()
1118 if (ret_val) in e1000_setup_copper_link_82543()
1128 ret_val = e1000_config_mac_to_phy_82543(hw); in e1000_setup_copper_link_82543()
1129 if (ret_val) in e1000_setup_copper_link_82543()
1132 ret_val = e1000_config_fc_after_link_up_generic(hw); in e1000_setup_copper_link_82543()
1138 return ret_val; in e1000_setup_copper_link_82543()
1151 s32 ret_val; in e1000_setup_fiber_link_82543() local
1162 ret_val = e1000_commit_fc_settings_generic(hw); in e1000_setup_fiber_link_82543()
1163 if (ret_val) in e1000_setup_fiber_link_82543()
1178 ret_val = e1000_poll_fiber_serdes_link_generic(hw); in e1000_setup_fiber_link_82543()
1183 return ret_val; in e1000_setup_fiber_link_82543()
1201 s32 ret_val; in e1000_check_for_copper_link_82543() local
1208 ret_val = E1000_SUCCESS; in e1000_check_for_copper_link_82543()
1212 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link); in e1000_check_for_copper_link_82543()
1213 if (ret_val) in e1000_check_for_copper_link_82543()
1238 ret_val = e1000_polarity_reversal_workaround_82543(hw); in e1000_check_for_copper_link_82543()
1244 ret_val = -E1000_ERR_CONFIG; in e1000_check_for_copper_link_82543()
1260 ret_val = e1000_config_mac_to_phy_82543(hw); in e1000_check_for_copper_link_82543()
1261 if (ret_val) { in e1000_check_for_copper_link_82543()
1273 ret_val = e1000_config_fc_after_link_up_generic(hw); in e1000_check_for_copper_link_82543()
1274 if (ret_val) in e1000_check_for_copper_link_82543()
1286 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); in e1000_check_for_copper_link_82543()
1287 if (ret_val) { in e1000_check_for_copper_link_82543()
1289 return ret_val; in e1000_check_for_copper_link_82543()
1323 return ret_val; in e1000_check_for_copper_link_82543()
1337 s32 ret_val = E1000_SUCCESS; in e1000_check_for_fiber_link_82543() local
1359 ret_val = 0; in e1000_check_for_fiber_link_82543()
1373 ret_val = e1000_config_fc_after_link_up_generic(hw); in e1000_check_for_fiber_link_82543()
1374 if (ret_val) { in e1000_check_for_fiber_link_82543()
1393 return ret_val; in e1000_check_for_fiber_link_82543()
1406 s32 ret_val = E1000_SUCCESS; in e1000_config_mac_to_phy_82543() local
1423 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); in e1000_config_mac_to_phy_82543()
1424 if (ret_val) in e1000_config_mac_to_phy_82543()
1445 return ret_val; in e1000_config_mac_to_phy_82543()
1571 s32 ret_val = E1000_SUCCESS; in e1000_read_mac_addr_82543() local
1578 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in e1000_read_mac_addr_82543()
1579 if (ret_val) { in e1000_read_mac_addr_82543()
1595 return ret_val; in e1000_read_mac_addr_82543()