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()
2444 u32 ret_val = 0; in atl2_init_hw() local
2455 ret_val = atl2_phy_init(hw); in atl2_init_hw()
2457 return ret_val; in atl2_init_hw()
2470 s32 ret_val; in atl2_get_speed_and_duplex() local
2474 ret_val = atl2_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); in atl2_get_speed_and_duplex()
2475 if (ret_val) in atl2_get_speed_and_duplex()
2476 return ret_val; in atl2_get_speed_and_duplex()
2576 s32 ret_val; in atl2_phy_setup_autoneg_adv() local
2632 ret_val = atl2_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl2_phy_setup_autoneg_adv()
2634 if (ret_val) in atl2_phy_setup_autoneg_adv()
2635 return ret_val; in atl2_phy_setup_autoneg_adv()
2649 s32 ret_val; in atl2_phy_commit() local
2653 ret_val = atl2_write_phy_reg(hw, MII_BMCR, phy_data); in atl2_phy_commit()
2654 if (ret_val) { in atl2_phy_commit()
2667 return ret_val; in atl2_phy_commit()
2675 s32 ret_val; in atl2_phy_init() local
2699 ret_val = atl2_write_phy_reg(hw, 18, 0xC00); in atl2_phy_init()
2700 if (ret_val) in atl2_phy_init()
2701 return ret_val; in atl2_phy_init()
2704 ret_val = atl2_phy_setup_autoneg_adv(hw); in atl2_phy_init()
2705 if (ret_val) in atl2_phy_init()
2706 return ret_val; in atl2_phy_init()
2709 ret_val = atl2_phy_commit(hw); in atl2_phy_init()
2710 if (ret_val) in atl2_phy_init()
2711 return ret_val; in atl2_phy_init()
2715 return ret_val; in atl2_phy_init()