Lines Matching refs:ret_val
1172 int ret_val; in atl2_check_link() local
1194 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_check_link()
1195 if (ret_val) in atl2_check_link()
1196 return ret_val; in atl2_check_link()
1545 u32 ret_val; in atl2_suspend() local
1547 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_suspend()
1548 if (ret_val) { in atl2_suspend()
1927 int ret_val = 0; in atl2_get_eeprom() local
1948 ret_val = -EIO; in atl2_get_eeprom()
1958 return ret_val; in atl2_get_eeprom()
1968 int max_len, first_dword, last_dword, ret_val = 0; in atl2_set_eeprom() local
1991 ret_val = -EIO; in atl2_set_eeprom()
2003 ret_val = -EIO; in atl2_set_eeprom()
2013 ret_val = -EIO; in atl2_set_eeprom()
2019 return ret_val; in atl2_set_eeprom()
2448 u32 ret_val = 0; in atl2_init_hw() local
2459 ret_val = atl2_phy_init(hw); in atl2_init_hw()
2461 return ret_val; in atl2_init_hw()
2474 s32 ret_val; in atl2_get_speed_and_duplex() local
2478 ret_val = atl2_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); in atl2_get_speed_and_duplex()
2479 if (ret_val) in atl2_get_speed_and_duplex()
2480 return ret_val; in atl2_get_speed_and_duplex()
2580 s32 ret_val; in atl2_phy_setup_autoneg_adv() local
2636 ret_val = atl2_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl2_phy_setup_autoneg_adv()
2638 if (ret_val) in atl2_phy_setup_autoneg_adv()
2639 return ret_val; in atl2_phy_setup_autoneg_adv()
2653 s32 ret_val; in atl2_phy_commit() local
2657 ret_val = atl2_write_phy_reg(hw, MII_BMCR, phy_data); in atl2_phy_commit()
2658 if (ret_val) { in atl2_phy_commit()
2671 return ret_val; in atl2_phy_commit()
2679 s32 ret_val; in atl2_phy_init() local
2703 ret_val = atl2_write_phy_reg(hw, 18, 0xC00); in atl2_phy_init()
2704 if (ret_val) in atl2_phy_init()
2705 return ret_val; in atl2_phy_init()
2708 ret_val = atl2_phy_setup_autoneg_adv(hw); in atl2_phy_init()
2709 if (ret_val) in atl2_phy_init()
2710 return ret_val; in atl2_phy_init()
2713 ret_val = atl2_phy_commit(hw); in atl2_phy_init()
2714 if (ret_val) in atl2_phy_init()
2715 return ret_val; in atl2_phy_init()
2719 return ret_val; in atl2_phy_init()