Lines Matching refs:ret
170 int ret; in xhci_start() local
181 ret = handshake(&hcor->or_usbsts, STS_HALT, 0, XHCI_MAX_HALT_USEC); in xhci_start()
182 if (ret) in xhci_start()
186 return ret; in xhci_start()
199 int ret; in xhci_reset() local
210 ret = handshake(&hcor->or_usbsts, in xhci_reset()
212 if (ret) { in xhci_reset()
223 ret = handshake(&hcor->or_usbcmd, CMD_RESET, 0, XHCI_MAX_RESET_USEC); in xhci_reset()
224 if (ret) in xhci_reset()
225 return ret; in xhci_reset()
630 int ret = 0; in xhci_address_device() local
663 ret = -EINVAL; in xhci_address_device()
667 ret = -EPROTO; in xhci_address_device()
672 ret = -ENODEV; in xhci_address_device()
681 ret = -EINVAL; in xhci_address_device()
687 if (ret < 0) in xhci_address_device()
692 return ret; in xhci_address_device()
717 int ret; in _xhci_alloc_device() local
741 ret = xhci_alloc_virt_device(ctrl, udev->slot_id); in _xhci_alloc_device()
742 if (ret < 0) { in _xhci_alloc_device()
748 return ret; in _xhci_alloc_device()
781 int ret = 0; in xhci_check_maxpacket() local
813 ret = xhci_configure_endpoints(udev, true); in xhci_check_maxpacket()
815 return ret; in xhci_check_maxpacket()
1175 int ret = 0; in _xhci_submit_control_msg() local
1191 ret = xhci_set_configuration(udev); in _xhci_submit_control_msg()
1192 if (ret) { in _xhci_submit_control_msg()
1194 return ret; in _xhci_submit_control_msg()
1311 int ret; in usb_lowlevel_init() local
1326 ret = xhci_lowlevel_init(ctrl); in usb_lowlevel_init()
1328 if (ret) { in usb_lowlevel_init()
1335 return ret; in usb_lowlevel_init()
1501 int ret; in xhci_register() local
1516 ret = xhci_reset(hcor); in xhci_register()
1517 if (ret) in xhci_register()
1522 ret = xhci_lowlevel_init(ctrl); in xhci_register()
1523 if (ret) in xhci_register()
1529 debug("%s: failed, ret=%d\n", __func__, ret); in xhci_register()
1530 return ret; in xhci_register()