Lines Matching refs:ret
323 int ret;
326 ret = fhci_mem_init(fhci);
327 if (ret) {
335 ret = -ENOMEM;
339 ret = fhci_usb_init(fhci);
340 if (ret) {
369 return ret;
389 int ret;
442 ret = usb_hcd_link_urb_to_ep(hcd, urb);
443 if (ret)
456 if (ret) {
461 return ret;
469 int ret = -EINVAL;
477 ret = usb_hcd_check_unlink_urb(hcd, urb, status);
478 if (ret)
504 return ret;
573 int ret;
599 ret = of_address_to_resource(node, 0, &usb_regs);
600 if (ret) {
608 ret = -ENOMEM;
617 ret = -EINVAL;
624 ret = -ENOMEM;
654 ret = gpio_request(gpio, dev_name(dev));
655 if (ret) {
661 ret = gpio_direction_output(gpio, 0);
662 if (ret) {
674 ret = PTR_ERR(fhci->pins[j]);
675 dev_err(dev, "can't get pin %d: %d\n", j, ret);
683 ret = PTR_ERR(fhci->timer);
684 dev_err(dev, "failed to request qe timer: %i", ret);
688 ret = request_irq(fhci->timer->irq, fhci_frame_limit_timer_irq,
690 if (ret) {
699 ret = -EINVAL;
709 ret = -EINVAL;
719 ret = -EINVAL;
727 ret = -EINVAL;
748 ret = usb_add_hcd(hcd, usb_irq, 0);
749 if (ret < 0)
779 return ret;