Lines Matching refs:ret_val
143 s32 ret_val; in e1000_check_alt_mac_addr_generic() local
147 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
148 if (ret_val) in e1000_check_alt_mac_addr_generic()
149 return ret_val; in e1000_check_alt_mac_addr_generic()
155 ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic()
157 if (ret_val) { in e1000_check_alt_mac_addr_generic()
159 return ret_val; in e1000_check_alt_mac_addr_generic()
171 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
172 if (ret_val) { in e1000_check_alt_mac_addr_generic()
174 return ret_val; in e1000_check_alt_mac_addr_generic()
399 s32 ret_val; in e1000e_check_for_copper_link() local
415 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); in e1000e_check_for_copper_link()
416 if (ret_val || !link) in e1000e_check_for_copper_link()
441 ret_val = e1000e_config_fc_after_link_up(hw); in e1000e_check_for_copper_link()
442 if (ret_val) in e1000e_check_for_copper_link()
445 return ret_val; in e1000e_check_for_copper_link()
449 return ret_val; in e1000e_check_for_copper_link()
465 s32 ret_val; in e1000e_check_for_fiber_link() local
496 ret_val = e1000e_config_fc_after_link_up(hw); in e1000e_check_for_fiber_link()
497 if (ret_val) { in e1000e_check_for_fiber_link()
499 return ret_val; in e1000e_check_for_fiber_link()
530 s32 ret_val; in e1000e_check_for_serdes_link() local
559 ret_val = e1000e_config_fc_after_link_up(hw); in e1000e_check_for_serdes_link()
560 if (ret_val) { in e1000e_check_for_serdes_link()
562 return ret_val; in e1000e_check_for_serdes_link()
630 s32 ret_val; in e1000_set_default_fc_generic() local
641 ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); in e1000_set_default_fc_generic()
643 if (ret_val) { in e1000_set_default_fc_generic()
645 return ret_val; in e1000_set_default_fc_generic()
670 s32 ret_val; in e1000e_setup_link_generic() local
682 ret_val = e1000_set_default_fc_generic(hw); in e1000e_setup_link_generic()
683 if (ret_val) in e1000e_setup_link_generic()
684 return ret_val; in e1000e_setup_link_generic()
695 ret_val = hw->mac.ops.setup_physical_interface(hw); in e1000e_setup_link_generic()
696 if (ret_val) in e1000e_setup_link_generic()
697 return ret_val; in e1000e_setup_link_generic()
791 s32 ret_val; in e1000_poll_fiber_serdes_link_generic() local
813 ret_val = mac->ops.check_for_link(hw); in e1000_poll_fiber_serdes_link_generic()
814 if (ret_val) { in e1000_poll_fiber_serdes_link_generic()
816 return ret_val; in e1000_poll_fiber_serdes_link_generic()
837 s32 ret_val; in e1000e_setup_fiber_serdes_link() local
846 ret_val = e1000_commit_fc_settings_generic(hw); in e1000e_setup_fiber_serdes_link()
847 if (ret_val) in e1000e_setup_fiber_serdes_link()
848 return ret_val; in e1000e_setup_fiber_serdes_link()
868 ret_val = e1000_poll_fiber_serdes_link_generic(hw); in e1000e_setup_fiber_serdes_link()
873 return ret_val; in e1000e_setup_fiber_serdes_link()
1004 s32 ret_val = 0; in e1000e_config_fc_after_link_up() local
1016 ret_val = e1000e_force_mac_fc(hw); in e1000e_config_fc_after_link_up()
1019 ret_val = e1000e_force_mac_fc(hw); in e1000e_config_fc_after_link_up()
1022 if (ret_val) { in e1000e_config_fc_after_link_up()
1024 return ret_val; in e1000e_config_fc_after_link_up()
1037 ret_val = e1e_rphy(hw, MII_BMSR, &mii_status_reg); in e1000e_config_fc_after_link_up()
1038 if (ret_val) in e1000e_config_fc_after_link_up()
1039 return ret_val; in e1000e_config_fc_after_link_up()
1040 ret_val = e1e_rphy(hw, MII_BMSR, &mii_status_reg); in e1000e_config_fc_after_link_up()
1041 if (ret_val) in e1000e_config_fc_after_link_up()
1042 return ret_val; in e1000e_config_fc_after_link_up()
1046 return ret_val; in e1000e_config_fc_after_link_up()
1055 ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_nway_adv_reg); in e1000e_config_fc_after_link_up()
1056 if (ret_val) in e1000e_config_fc_after_link_up()
1057 return ret_val; in e1000e_config_fc_after_link_up()
1058 ret_val = e1e_rphy(hw, MII_LPA, &mii_nway_lp_ability_reg); in e1000e_config_fc_after_link_up()
1059 if (ret_val) in e1000e_config_fc_after_link_up()
1060 return ret_val; in e1000e_config_fc_after_link_up()
1150 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); in e1000e_config_fc_after_link_up()
1151 if (ret_val) { in e1000e_config_fc_after_link_up()
1153 return ret_val; in e1000e_config_fc_after_link_up()
1162 ret_val = e1000e_force_mac_fc(hw); in e1000e_config_fc_after_link_up()
1163 if (ret_val) { in e1000e_config_fc_after_link_up()
1165 return ret_val; in e1000e_config_fc_after_link_up()
1183 return ret_val; in e1000e_config_fc_after_link_up()
1286 ret_val = e1000e_force_mac_fc(hw); in e1000e_config_fc_after_link_up()
1287 if (ret_val) { in e1000e_config_fc_after_link_up()
1289 return ret_val; in e1000e_config_fc_after_link_up()
1447 s32 ret_val; in e1000e_valid_led_default() local
1449 ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); in e1000e_valid_led_default()
1450 if (ret_val) { in e1000e_valid_led_default()
1452 return ret_val; in e1000e_valid_led_default()
1469 s32 ret_val; in e1000e_id_led_init_generic() local
1476 ret_val = hw->nvm.ops.valid_led_default(hw, &data); in e1000e_id_led_init_generic()
1477 if (ret_val) in e1000e_id_led_init_generic()
1478 return ret_val; in e1000e_id_led_init_generic()