Lines Matching refs:ret
290 int ret; in mvebu_a3700_comphy_sata_power_on() local
298 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_sata_power_on()
299 if (ret) { in mvebu_a3700_comphy_sata_power_on()
300 return ret; in mvebu_a3700_comphy_sata_power_on()
357 ret = polling_with_timeout(comphy_indir_regs + in mvebu_a3700_comphy_sata_power_on()
361 if (ret) { in mvebu_a3700_comphy_sata_power_on()
373 int ret; in mvebu_a3700_comphy_sgmii_power_on() local
383 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_sgmii_power_on()
384 if (ret) { in mvebu_a3700_comphy_sgmii_power_on()
385 return ret; in mvebu_a3700_comphy_sgmii_power_on()
543 ret = polling_with_timeout(MVEBU_COMPHY_REG_BASE + in mvebu_a3700_comphy_sgmii_power_on()
548 if (ret) { in mvebu_a3700_comphy_sgmii_power_on()
569 ret = polling_with_timeout(MVEBU_COMPHY_REG_BASE + in mvebu_a3700_comphy_sgmii_power_on()
574 if (ret) { in mvebu_a3700_comphy_sgmii_power_on()
579 ret = polling_with_timeout(MVEBU_COMPHY_REG_BASE + in mvebu_a3700_comphy_sgmii_power_on()
583 if (ret) { in mvebu_a3700_comphy_sgmii_power_on()
613 int ret; in mvebu_a3700_comphy_usb3_power_on() local
624 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_usb3_power_on()
625 if (ret) { in mvebu_a3700_comphy_usb3_power_on()
626 return ret; in mvebu_a3700_comphy_usb3_power_on()
791 ret = polling_with_timeout(addr, TXDCLK_PCLK_EN, TXDCLK_PCLK_EN, in mvebu_a3700_comphy_usb3_power_on()
794 ret = polling_with_timeout(LANE_STAT1_ADDR(USB3) + reg_base, in mvebu_a3700_comphy_usb3_power_on()
798 if (ret) { in mvebu_a3700_comphy_usb3_power_on()
811 int ret; in mvebu_a3700_comphy_pcie_power_on() local
819 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_pcie_power_on()
820 if (ret) { in mvebu_a3700_comphy_pcie_power_on()
821 return ret; in mvebu_a3700_comphy_pcie_power_on()
894 ret = polling_with_timeout(LANE_STAT1_ADDR(PCIE) + COMPHY_SD_ADDR, in mvebu_a3700_comphy_pcie_power_on()
897 if (ret) { in mvebu_a3700_comphy_pcie_power_on()
910 int ret = 0; in mvebu_3700_comphy_power_on() local
916 ret = mvebu_a3700_comphy_sata_power_on(comphy_index, in mvebu_3700_comphy_power_on()
921 ret = mvebu_a3700_comphy_sgmii_power_on(comphy_index, in mvebu_3700_comphy_power_on()
926 ret = mvebu_a3700_comphy_usb3_power_on(comphy_index, in mvebu_3700_comphy_power_on()
930 ret = mvebu_a3700_comphy_pcie_power_on(comphy_index, in mvebu_3700_comphy_power_on()
935 ret = -EINVAL; in mvebu_3700_comphy_power_on()
941 return ret; in mvebu_3700_comphy_power_on()
1022 int ret = 0; in mvebu_a3700_comphy_sata_is_pll_locked() local
1035 ret = -ETIMEDOUT; in mvebu_a3700_comphy_sata_is_pll_locked()
1040 return ret; in mvebu_a3700_comphy_sata_is_pll_locked()
1046 int ret = 0; in mvebu_3700_comphy_is_pll_locked() local
1052 ret = mvebu_a3700_comphy_sata_is_pll_locked(); in mvebu_3700_comphy_is_pll_locked()
1058 ret = -EINVAL; in mvebu_3700_comphy_is_pll_locked()
1064 return ret; in mvebu_3700_comphy_is_pll_locked()