Lines Matching refs:ret_val

424 	int32_t ret_val = E1000_SUCCESS;  in e1000_init_eeprom_params()  local
572 ret_val = e1000_read_eeprom(hw, EEPROM_CFG, 1, in e1000_init_eeprom_params()
574 if (ret_val) in e1000_init_eeprom_params()
575 return ret_val; in e1000_init_eeprom_params()
592 return ret_val; in e1000_init_eeprom_params()
924 int32_t ret_val; in e1000_set_phy_mode() local
931 ret_val = e1000_read_eeprom(hw, EEPROM_PHY_CLASS_WORD, in e1000_set_phy_mode()
933 if (ret_val) in e1000_set_phy_mode()
934 return ret_val; in e1000_set_phy_mode()
938 ret_val = e1000_write_phy_reg(hw, in e1000_set_phy_mode()
940 if (ret_val) in e1000_set_phy_mode()
941 return ret_val; in e1000_set_phy_mode()
942 ret_val = e1000_write_phy_reg(hw, in e1000_set_phy_mode()
944 if (ret_val) in e1000_set_phy_mode()
945 return ret_val; in e1000_set_phy_mode()
1632 int32_t ret_val; in e1000_init_hw() local
1763 ret_val = e1000_setup_link(hw); in e1000_init_hw()
1834 return ret_val; in e1000_init_hw()
1851 int32_t ret_val; in e1000_setup_link() local
1889 ret_val = e1000_read_eeprom(hw, in e1000_setup_link()
1891 if (ret_val) { in e1000_setup_link()
1937 ret_val = (hw->media_type == e1000_media_type_fiber) ? in e1000_setup_link()
1939 if (ret_val < 0) { in e1000_setup_link()
1940 return ret_val; in e1000_setup_link()
1982 return ret_val; in e1000_setup_link()
2002 int32_t ret_val; in e1000_setup_fiber_link() local
2103 ret_val = e1000_check_for_link(hw); in e1000_setup_fiber_link()
2104 if (ret_val < 0) { in e1000_setup_fiber_link()
2106 return ret_val; in e1000_setup_fiber_link()
2129 int32_t ret_val; in e1000_copper_link_preconfig() local
2147 ret_val = e1000_phy_hw_reset(hw); in e1000_copper_link_preconfig()
2148 if (ret_val) in e1000_copper_link_preconfig()
2149 return ret_val; in e1000_copper_link_preconfig()
2153 ret_val = e1000_detect_gig_phy(hw); in e1000_copper_link_preconfig()
2154 if (ret_val) { in e1000_copper_link_preconfig()
2156 return ret_val; in e1000_copper_link_preconfig()
2161 ret_val = e1000_set_phy_mode(hw); in e1000_copper_link_preconfig()
2162 if (ret_val) in e1000_copper_link_preconfig()
2163 return ret_val; in e1000_copper_link_preconfig()
2166 ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, in e1000_copper_link_preconfig()
2169 ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, in e1000_copper_link_preconfig()
2200 int32_t ret_val; in e1000_set_d3_lplu_state() local
2213 ret_val = e1000_read_phy_reg(hw, IGP01E1000_GMII_FIFO, in e1000_set_d3_lplu_state()
2215 if (ret_val) in e1000_set_d3_lplu_state()
2216 return ret_val; in e1000_set_d3_lplu_state()
2223 ret_val = e1000_read_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, in e1000_set_d3_lplu_state()
2225 if (ret_val) in e1000_set_d3_lplu_state()
2226 return ret_val; in e1000_set_d3_lplu_state()
2233 ret_val = e1000_write_phy_reg(hw, IGP01E1000_GMII_FIFO, in e1000_set_d3_lplu_state()
2235 if (ret_val) in e1000_set_d3_lplu_state()
2236 return ret_val; in e1000_set_d3_lplu_state()
2243 ret_val = e1000_write_phy_reg(hw, in e1000_set_d3_lplu_state()
2245 if (ret_val) in e1000_set_d3_lplu_state()
2246 return ret_val; in e1000_set_d3_lplu_state()
2255 ret_val = e1000_read_phy_reg(hw, in e1000_set_d3_lplu_state()
2257 if (ret_val) in e1000_set_d3_lplu_state()
2258 return ret_val; in e1000_set_d3_lplu_state()
2261 ret_val = e1000_write_phy_reg(hw, in e1000_set_d3_lplu_state()
2263 if (ret_val) in e1000_set_d3_lplu_state()
2264 return ret_val; in e1000_set_d3_lplu_state()
2266 ret_val = e1000_read_phy_reg(hw, in e1000_set_d3_lplu_state()
2268 if (ret_val) in e1000_set_d3_lplu_state()
2269 return ret_val; in e1000_set_d3_lplu_state()
2272 ret_val = e1000_write_phy_reg(hw, in e1000_set_d3_lplu_state()
2274 if (ret_val) in e1000_set_d3_lplu_state()
2275 return ret_val; in e1000_set_d3_lplu_state()
2285 ret_val = e1000_write_phy_reg(hw, in e1000_set_d3_lplu_state()
2287 if (ret_val) in e1000_set_d3_lplu_state()
2288 return ret_val; in e1000_set_d3_lplu_state()
2295 ret_val = e1000_write_phy_reg(hw, in e1000_set_d3_lplu_state()
2297 if (ret_val) in e1000_set_d3_lplu_state()
2298 return ret_val; in e1000_set_d3_lplu_state()
2303 ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d3_lplu_state()
2305 if (ret_val) in e1000_set_d3_lplu_state()
2306 return ret_val; in e1000_set_d3_lplu_state()
2309 ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d3_lplu_state()
2311 if (ret_val) in e1000_set_d3_lplu_state()
2312 return ret_val; in e1000_set_d3_lplu_state()
2335 int32_t ret_val; in e1000_set_d0_lplu_state() local
2347 ret_val = e1000_read_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, in e1000_set_d0_lplu_state()
2349 if (ret_val) in e1000_set_d0_lplu_state()
2350 return ret_val; in e1000_set_d0_lplu_state()
2362 ret_val = e1000_write_phy_reg(hw, in e1000_set_d0_lplu_state()
2364 if (ret_val) in e1000_set_d0_lplu_state()
2365 return ret_val; in e1000_set_d0_lplu_state()
2376 ret_val = e1000_read_phy_reg(hw, in e1000_set_d0_lplu_state()
2378 if (ret_val) in e1000_set_d0_lplu_state()
2379 return ret_val; in e1000_set_d0_lplu_state()
2382 ret_val = e1000_write_phy_reg(hw, in e1000_set_d0_lplu_state()
2384 if (ret_val) in e1000_set_d0_lplu_state()
2385 return ret_val; in e1000_set_d0_lplu_state()
2387 ret_val = e1000_read_phy_reg(hw, in e1000_set_d0_lplu_state()
2389 if (ret_val) in e1000_set_d0_lplu_state()
2390 return ret_val; in e1000_set_d0_lplu_state()
2393 ret_val = e1000_write_phy_reg(hw, in e1000_set_d0_lplu_state()
2395 if (ret_val) in e1000_set_d0_lplu_state()
2396 return ret_val; in e1000_set_d0_lplu_state()
2410 ret_val = e1000_write_phy_reg(hw, in e1000_set_d0_lplu_state()
2412 if (ret_val) in e1000_set_d0_lplu_state()
2413 return ret_val; in e1000_set_d0_lplu_state()
2420 ret_val = e1000_read_phy_reg(hw, in e1000_set_d0_lplu_state()
2422 if (ret_val) in e1000_set_d0_lplu_state()
2423 return ret_val; in e1000_set_d0_lplu_state()
2426 ret_val = e1000_write_phy_reg(hw, in e1000_set_d0_lplu_state()
2428 if (ret_val) in e1000_set_d0_lplu_state()
2429 return ret_val; in e1000_set_d0_lplu_state()
2444 int32_t ret_val; in e1000_copper_link_igp_setup() local
2452 ret_val = e1000_phy_reset(hw); in e1000_copper_link_igp_setup()
2453 if (ret_val) { in e1000_copper_link_igp_setup()
2455 return ret_val; in e1000_copper_link_igp_setup()
2471 ret_val = e1000_set_d3_lplu_state(hw, false); in e1000_copper_link_igp_setup()
2472 if (ret_val) { in e1000_copper_link_igp_setup()
2474 return ret_val; in e1000_copper_link_igp_setup()
2479 ret_val = e1000_set_d0_lplu_state(hw, false); in e1000_copper_link_igp_setup()
2480 if (ret_val) { in e1000_copper_link_igp_setup()
2482 return ret_val; in e1000_copper_link_igp_setup()
2485 ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); in e1000_copper_link_igp_setup()
2486 if (ret_val) in e1000_copper_link_igp_setup()
2487 return ret_val; in e1000_copper_link_igp_setup()
2513 ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); in e1000_copper_link_igp_setup()
2514 if (ret_val) in e1000_copper_link_igp_setup()
2515 return ret_val; in e1000_copper_link_igp_setup()
2532 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_igp_setup()
2534 if (ret_val) in e1000_copper_link_igp_setup()
2535 return ret_val; in e1000_copper_link_igp_setup()
2537 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_igp_setup()
2539 if (ret_val) in e1000_copper_link_igp_setup()
2540 return ret_val; in e1000_copper_link_igp_setup()
2542 ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, in e1000_copper_link_igp_setup()
2544 if (ret_val) in e1000_copper_link_igp_setup()
2545 return ret_val; in e1000_copper_link_igp_setup()
2547 ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, in e1000_copper_link_igp_setup()
2549 if (ret_val) in e1000_copper_link_igp_setup()
2550 return ret_val; in e1000_copper_link_igp_setup()
2553 ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_data); in e1000_copper_link_igp_setup()
2554 if (ret_val) in e1000_copper_link_igp_setup()
2555 return ret_val; in e1000_copper_link_igp_setup()
2577 ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, phy_data); in e1000_copper_link_igp_setup()
2578 if (ret_val) in e1000_copper_link_igp_setup()
2579 return ret_val; in e1000_copper_link_igp_setup()
2666 int32_t ret_val; in e1000_copper_link_ggp_setup() local
2674 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2676 if (ret_val) in e1000_copper_link_ggp_setup()
2677 return ret_val; in e1000_copper_link_ggp_setup()
2683 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2685 if (ret_val) in e1000_copper_link_ggp_setup()
2686 return ret_val; in e1000_copper_link_ggp_setup()
2695 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2697 if (ret_val) in e1000_copper_link_ggp_setup()
2698 return ret_val; in e1000_copper_link_ggp_setup()
2722 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2725 if (ret_val) in e1000_copper_link_ggp_setup()
2726 return ret_val; in e1000_copper_link_ggp_setup()
2729 ret_val = e1000_phy_reset(hw); in e1000_copper_link_ggp_setup()
2730 if (ret_val) { in e1000_copper_link_ggp_setup()
2732 return ret_val; in e1000_copper_link_ggp_setup()
2738 ret_val = e1000_write_kmrn_reg(hw, in e1000_copper_link_ggp_setup()
2742 if (ret_val) in e1000_copper_link_ggp_setup()
2743 return ret_val; in e1000_copper_link_ggp_setup()
2745 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2747 if (ret_val) in e1000_copper_link_ggp_setup()
2748 return ret_val; in e1000_copper_link_ggp_setup()
2751 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2754 if (ret_val) in e1000_copper_link_ggp_setup()
2755 return ret_val; in e1000_copper_link_ggp_setup()
2761 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2763 if (ret_val) in e1000_copper_link_ggp_setup()
2764 return ret_val; in e1000_copper_link_ggp_setup()
2773 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2775 if (ret_val) in e1000_copper_link_ggp_setup()
2776 return ret_val; in e1000_copper_link_ggp_setup()
2778 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2780 if (ret_val) in e1000_copper_link_ggp_setup()
2781 return ret_val; in e1000_copper_link_ggp_setup()
2784 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2787 if (ret_val) in e1000_copper_link_ggp_setup()
2788 return ret_val; in e1000_copper_link_ggp_setup()
2794 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_ggp_setup()
2796 if (ret_val) in e1000_copper_link_ggp_setup()
2797 return ret_val; in e1000_copper_link_ggp_setup()
2799 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_ggp_setup()
2801 if (ret_val) in e1000_copper_link_ggp_setup()
2802 return ret_val; in e1000_copper_link_ggp_setup()
2815 int32_t ret_val; in e1000_copper_link_mgp_setup() local
2824 ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_mgp_setup()
2825 if (ret_val) in e1000_copper_link_mgp_setup()
2826 return ret_val; in e1000_copper_link_mgp_setup()
2862 ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_mgp_setup()
2863 if (ret_val) in e1000_copper_link_mgp_setup()
2864 return ret_val; in e1000_copper_link_mgp_setup()
2870 ret_val = e1000_read_phy_reg(hw, in e1000_copper_link_mgp_setup()
2872 if (ret_val) in e1000_copper_link_mgp_setup()
2873 return ret_val; in e1000_copper_link_mgp_setup()
2882 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_mgp_setup()
2884 if (ret_val) in e1000_copper_link_mgp_setup()
2885 return ret_val; in e1000_copper_link_mgp_setup()
2892 ret_val = e1000_write_phy_reg(hw, in e1000_copper_link_mgp_setup()
2894 if (ret_val) in e1000_copper_link_mgp_setup()
2895 return ret_val; in e1000_copper_link_mgp_setup()
2900 ret_val = e1000_phy_reset(hw); in e1000_copper_link_mgp_setup()
2901 if (ret_val) { in e1000_copper_link_mgp_setup()
2903 return ret_val; in e1000_copper_link_mgp_setup()
2918 int32_t ret_val; in e1000_copper_link_autoneg() local
2939 ret_val = e1000_phy_setup_autoneg(hw); in e1000_copper_link_autoneg()
2940 if (ret_val) { in e1000_copper_link_autoneg()
2942 return ret_val; in e1000_copper_link_autoneg()
2949 ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); in e1000_copper_link_autoneg()
2950 if (ret_val) in e1000_copper_link_autoneg()
2951 return ret_val; in e1000_copper_link_autoneg()
2954 ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); in e1000_copper_link_autoneg()
2955 if (ret_val) in e1000_copper_link_autoneg()
2956 return ret_val; in e1000_copper_link_autoneg()
2966 ret_val = e1000_wait_autoneg(hw); in e1000_copper_link_autoneg()
2967 if (ret_val) { in e1000_copper_link_autoneg()
2970 return ret_val; in e1000_copper_link_autoneg()
2994 int32_t ret_val; in e1000_copper_link_postconfig() local
3000 ret_val = e1000_config_mac_to_phy(hw); in e1000_copper_link_postconfig()
3001 if (ret_val) { in e1000_copper_link_postconfig()
3003 return ret_val; in e1000_copper_link_postconfig()
3006 ret_val = e1000_config_fc_after_link_up(hw); in e1000_copper_link_postconfig()
3007 if (ret_val) { in e1000_copper_link_postconfig()
3009 return ret_val; in e1000_copper_link_postconfig()
3022 int32_t ret_val; in e1000_setup_copper_link() local
3035 ret_val = e1000_write_kmrn_reg(hw, in e1000_setup_copper_link()
3037 if (ret_val) in e1000_setup_copper_link()
3038 return ret_val; in e1000_setup_copper_link()
3039 ret_val = e1000_read_kmrn_reg(hw, in e1000_setup_copper_link()
3041 if (ret_val) in e1000_setup_copper_link()
3042 return ret_val; in e1000_setup_copper_link()
3044 ret_val = e1000_write_kmrn_reg(hw, in e1000_setup_copper_link()
3046 if (ret_val) in e1000_setup_copper_link()
3047 return ret_val; in e1000_setup_copper_link()
3053 ret_val = e1000_copper_link_preconfig(hw); in e1000_setup_copper_link()
3054 if (ret_val) in e1000_setup_copper_link()
3055 return ret_val; in e1000_setup_copper_link()
3062 ret_val = e1000_write_kmrn_reg(hw, in e1000_setup_copper_link()
3064 if (ret_val) in e1000_setup_copper_link()
3065 return ret_val; in e1000_setup_copper_link()
3074 ret_val = e1000_copper_link_igp_setup(hw); in e1000_setup_copper_link()
3075 if (ret_val) in e1000_setup_copper_link()
3076 return ret_val; in e1000_setup_copper_link()
3079 ret_val = e1000_copper_link_mgp_setup(hw); in e1000_setup_copper_link()
3080 if (ret_val) in e1000_setup_copper_link()
3081 return ret_val; in e1000_setup_copper_link()
3083 ret_val = e1000_copper_link_ggp_setup(hw); in e1000_setup_copper_link()
3084 if (ret_val) in e1000_setup_copper_link()
3085 return ret_val; in e1000_setup_copper_link()
3091 ret_val = e1000_copper_link_autoneg(hw); in e1000_setup_copper_link()
3092 if (ret_val) in e1000_setup_copper_link()
3093 return ret_val; in e1000_setup_copper_link()
3099 ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); in e1000_setup_copper_link()
3100 if (ret_val) in e1000_setup_copper_link()
3101 return ret_val; in e1000_setup_copper_link()
3102 ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); in e1000_setup_copper_link()
3103 if (ret_val) in e1000_setup_copper_link()
3104 return ret_val; in e1000_setup_copper_link()
3108 ret_val = e1000_copper_link_postconfig(hw); in e1000_setup_copper_link()
3109 if (ret_val) in e1000_setup_copper_link()
3110 return ret_val; in e1000_setup_copper_link()
3130 int32_t ret_val; in e1000_phy_setup_autoneg() local
3137 ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_ADV, &mii_autoneg_adv_reg); in e1000_phy_setup_autoneg()
3138 if (ret_val) in e1000_phy_setup_autoneg()
3139 return ret_val; in e1000_phy_setup_autoneg()
3143 ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, in e1000_phy_setup_autoneg()
3145 if (ret_val) in e1000_phy_setup_autoneg()
3146 return ret_val; in e1000_phy_setup_autoneg()
3255 ret_val = e1000_write_phy_reg(hw, PHY_AUTONEG_ADV, mii_autoneg_adv_reg); in e1000_phy_setup_autoneg()
3256 if (ret_val) in e1000_phy_setup_autoneg()
3257 return ret_val; in e1000_phy_setup_autoneg()
3262 ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, in e1000_phy_setup_autoneg()
3264 if (ret_val) in e1000_phy_setup_autoneg()
3265 return ret_val; in e1000_phy_setup_autoneg()
3432 int32_t ret_val; in e1000_config_fc_after_link_up() local
3450 ret_val = e1000_force_mac_fc(hw); in e1000_config_fc_after_link_up()
3451 if (ret_val < 0) { in e1000_config_fc_after_link_up()
3453 return ret_val; in e1000_config_fc_after_link_up()
3622 ret_val = e1000_force_mac_fc(hw); in e1000_config_fc_after_link_up()
3623 if (ret_val < 0) { in e1000_config_fc_after_link_up()
3626 return ret_val; in e1000_config_fc_after_link_up()
3651 int32_t ret_val; in e1000_check_for_link() local
3710 ret_val = e1000_config_mac_to_phy(hw); in e1000_check_for_link()
3711 if (ret_val < 0) { in e1000_check_for_link()
3714 return ret_val; in e1000_check_for_link()
3722 ret_val = e1000_config_fc_after_link_up(hw); in e1000_check_for_link()
3723 if (ret_val < 0) { in e1000_check_for_link()
3725 return ret_val; in e1000_check_for_link()
3799 ret_val = e1000_config_fc_after_link_up(hw); in e1000_check_for_link()
3800 if (ret_val < 0) { in e1000_check_for_link()
3802 return ret_val; in e1000_check_for_link()
3828 int32_t ret_val = E1000_SUCCESS; in e1000_configure_kmrn_for_10_100() local
3835 ret_val = e1000_write_kmrn_reg(hw, in e1000_configure_kmrn_for_10_100()
3837 if (ret_val) in e1000_configure_kmrn_for_10_100()
3838 return ret_val; in e1000_configure_kmrn_for_10_100()
3846 ret_val = e1000_read_phy_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data); in e1000_configure_kmrn_for_10_100()
3848 if (ret_val) in e1000_configure_kmrn_for_10_100()
3849 return ret_val; in e1000_configure_kmrn_for_10_100()
3856 ret_val = e1000_write_phy_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, reg_data); in e1000_configure_kmrn_for_10_100()
3858 return ret_val; in e1000_configure_kmrn_for_10_100()
3864 int32_t ret_val = E1000_SUCCESS; in e1000_configure_kmrn_for_1000() local
3871 ret_val = e1000_write_kmrn_reg(hw, in e1000_configure_kmrn_for_1000()
3873 if (ret_val) in e1000_configure_kmrn_for_1000()
3874 return ret_val; in e1000_configure_kmrn_for_1000()
3882 ret_val = e1000_read_phy_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data); in e1000_configure_kmrn_for_1000()
3884 if (ret_val) in e1000_configure_kmrn_for_1000()
3885 return ret_val; in e1000_configure_kmrn_for_1000()
3888 ret_val = e1000_write_phy_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, reg_data); in e1000_configure_kmrn_for_1000()
3890 return ret_val; in e1000_configure_kmrn_for_1000()
3905 int32_t ret_val; in e1000_get_speed_and_duplex() local
3941 ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_EXP, &phy_data); in e1000_get_speed_and_duplex()
3942 if (ret_val) in e1000_get_speed_and_duplex()
3943 return ret_val; in e1000_get_speed_and_duplex()
3948 ret_val = e1000_read_phy_reg(hw, in e1000_get_speed_and_duplex()
3950 if (ret_val) in e1000_get_speed_and_duplex()
3951 return ret_val; in e1000_get_speed_and_duplex()
3963 ret_val = e1000_configure_kmrn_for_1000(hw); in e1000_get_speed_and_duplex()
3965 ret_val = e1000_configure_kmrn_for_10_100(hw, *duplex); in e1000_get_speed_and_duplex()
3966 if (ret_val) in e1000_get_speed_and_duplex()
3967 return ret_val; in e1000_get_speed_and_duplex()
4382 int32_t ret_val; in e1000_phy_hw_reset() local
4388 ret_val = e1000_check_phy_reset_block(hw); in e1000_phy_hw_reset()
4389 if (ret_val) in e1000_phy_hw_reset()
4448 ret_val = e1000_get_phy_cfg_done(hw); in e1000_phy_hw_reset()
4449 if (ret_val != E1000_SUCCESS) in e1000_phy_hw_reset()
4450 return ret_val; in e1000_phy_hw_reset()
4452 return ret_val; in e1000_phy_hw_reset()
4463 uint32_t ret_val; in e1000_phy_init_script() local
4472 ret_val = e1000_read_phy_reg(hw, 0x2F5B, &phy_saved_data); in e1000_phy_init_script()
4518 if (!ret_val) in e1000_phy_init_script()
4572 int32_t ret_val; in e1000_phy_reset() local
4579 ret_val = e1000_check_phy_reset_block(hw); in e1000_phy_reset()
4580 if (ret_val) in e1000_phy_reset()
4589 ret_val = e1000_phy_hw_reset(hw); in e1000_phy_reset()
4590 if (ret_val) in e1000_phy_reset()
4591 return ret_val; in e1000_phy_reset()
4594 ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); in e1000_phy_reset()
4595 if (ret_val) in e1000_phy_reset()
4596 return ret_val; in e1000_phy_reset()
4599 ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); in e1000_phy_reset()
4600 if (ret_val) in e1000_phy_reset()
4601 return ret_val; in e1000_phy_reset()
4672 int32_t phy_init_status, ret_val; in e1000_detect_gig_phy() local
4698 ret_val = e1000_read_phy_reg(hw, PHY_ID1, &phy_id_high); in e1000_detect_gig_phy()
4699 if (ret_val) in e1000_detect_gig_phy()
4700 return ret_val; in e1000_detect_gig_phy()
4704 ret_val = e1000_read_phy_reg(hw, PHY_ID2, &phy_id_low); in e1000_detect_gig_phy()
4705 if (ret_val) in e1000_detect_gig_phy()
4706 return ret_val; in e1000_detect_gig_phy()
5227 int ret_val = 0; in _e1000_init() local
5229 ret_val = e1000_reset(hw, enetaddr); in _e1000_init()
5230 if (ret_val < 0) { in _e1000_init()
5231 if ((ret_val == -E1000_ERR_NOLINK) || in _e1000_init()
5232 (ret_val == -E1000_ERR_TIMEOUT)) { in _e1000_init()
5233 E1000_ERR(hw, "Valid Link not detected: %d\n", ret_val); in _e1000_init()
5237 return ret_val; in _e1000_init()