Lines Matching refs:ret

182 	int ret = 0;  in ehci_reset()  local
187 ret = handshake((uint32_t *)&ctrl->hcor->or_usbcmd, in ehci_reset()
189 if (ret < 0) { in ehci_reset()
204 return ret; in ehci_reset()
209 int i, ret = 0; in ehci_shutdown() local
219 ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0, in ehci_shutdown()
222 if (!ret) { in ehci_shutdown()
231 ret = handshake(&ctrl->hcor->or_usbsts, STS_HALT, STS_HALT, in ehci_shutdown()
235 if (ret) in ehci_shutdown()
238 return ret; in ehci_shutdown()
315 int ret = 0; in ehci_submit_async() local
558 ret = handshake((uint32_t *)&ctrl->hcor->or_usbsts, STS_ASS, STS_ASS, in ehci_submit_async()
560 if (ret < 0) { in ehci_submit_async()
825 int ret; in ehci_submit_root() local
843 ret = handshake(status_reg, EHCI_PS_PR, 0, in ehci_submit_root()
845 if (!ret) { in ehci_submit_root()
1180 int ret; in enable_periodic() local
1186 ret = handshake((uint32_t *)&hcor->or_usbsts, in enable_periodic()
1188 if (ret < 0) { in enable_periodic()
1201 int ret; in disable_periodic() local
1207 ret = handshake((uint32_t *)&hcor->or_usbsts, in disable_periodic()
1209 if (ret < 0) { in disable_periodic()
1475 int result = 0, ret; in _ehci_submit_int_msg() local
1498 ret = _ehci_destroy_int_queue(dev, queue); in _ehci_submit_int_msg()
1499 if (ret < 0) in _ehci_submit_int_msg()
1500 return ret; in _ehci_submit_int_msg()
1612 int ret = -1; in ehci_register() local
1631 ret = ehci_reset(ctrl); in ehci_register()
1632 if (ret) in ehci_register()
1636 ret = ctrl->ops.init_after_reset(ctrl); in ehci_register()
1637 if (ret) in ehci_register()
1641 ret = ehci_common_init(ctrl, tweaks); in ehci_register()
1642 if (ret) in ehci_register()
1648 debug("%s: failed, ret=%d\n", __func__, ret); in ehci_register()
1649 return ret; in ehci_register()
1679 int ret; in ehci_setup_phy() local
1684 ret = generic_phy_get_by_index(dev, index, phy); in ehci_setup_phy()
1685 if (ret) { in ehci_setup_phy()
1686 if (ret != -ENOENT) { in ehci_setup_phy()
1688 return ret; in ehci_setup_phy()
1691 ret = generic_phy_init(phy); in ehci_setup_phy()
1692 if (ret) { in ehci_setup_phy()
1694 return ret; in ehci_setup_phy()
1697 ret = generic_phy_power_on(phy); in ehci_setup_phy()
1698 if (ret) { in ehci_setup_phy()
1709 int ret = 0; in ehci_shutdown_phy() local
1715 ret = generic_phy_power_off(phy); in ehci_shutdown_phy()
1716 if (ret) { in ehci_shutdown_phy()
1718 return ret; in ehci_shutdown_phy()
1721 ret = generic_phy_exit(phy); in ehci_shutdown_phy()
1722 if (ret) { in ehci_shutdown_phy()
1724 return ret; in ehci_shutdown_phy()