Lines Matching refs:retval

175 	int			retval;  in usb_hcd_pci_probe()  local
192 retval = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_LEGACY | PCI_IRQ_MSI); in usb_hcd_pci_probe()
193 if (retval < 0) { in usb_hcd_pci_probe()
197 retval = -ENODEV; in usb_hcd_pci_probe()
205 retval = -ENOMEM; in usb_hcd_pci_probe()
219 retval = -EBUSY; in usb_hcd_pci_probe()
226 retval = -EFAULT; in usb_hcd_pci_probe()
247 retval = -EBUSY; in usb_hcd_pci_probe()
259 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
260 if (retval != 0) in usb_hcd_pci_probe()
267 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
268 if (retval != 0) in usb_hcd_pci_probe()
275 if (retval != 0) in usb_hcd_pci_probe()
281 return retval; in usb_hcd_pci_probe()
290 dev_err(&dev->dev, "init %s fail, %d\n", pci_name(dev), retval); in usb_hcd_pci_probe()
291 return retval; in usb_hcd_pci_probe()
422 int retval; in suspend_common() local
429 retval = check_root_hub_suspended(dev); in suspend_common()
430 if (retval) in suspend_common()
431 return retval; in suspend_common()
442 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
443 suspend_report_result(dev, hcd->driver->pci_suspend, retval); in suspend_common()
446 if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) || in suspend_common()
447 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
451 retval = -EBUSY; in suspend_common()
453 if (retval) in suspend_common()
454 return retval; in suspend_common()
470 return retval; in suspend_common()
477 int retval; in resume_common() local
486 retval = pci_enable_device(pci_dev); in resume_common()
487 if (retval < 0) { in resume_common()
488 dev_err(dev, "can't re-enable after resume, %d!\n", retval); in resume_common()
489 return retval; in resume_common()
505 retval = hcd->driver->pci_resume(hcd, in resume_common()
507 if (retval) { in resume_common()
508 dev_err(dev, "PCI post-resume error %d!\n", retval); in resume_common()
512 return retval; in resume_common()
526 int retval; in hcd_pci_suspend_noirq() local
528 retval = check_root_hub_suspended(dev); in hcd_pci_suspend_noirq()
529 if (retval) in hcd_pci_suspend_noirq()
530 return retval; in hcd_pci_suspend_noirq()
545 retval = pci_prepare_to_sleep(pci_dev); in hcd_pci_suspend_noirq()
546 if (retval == -EIO) { /* Low-power not supported */ in hcd_pci_suspend_noirq()
548 retval = 0; in hcd_pci_suspend_noirq()
549 } else if (retval == 0) { in hcd_pci_suspend_noirq()
553 suspend_report_result(dev, pci_prepare_to_sleep, retval); in hcd_pci_suspend_noirq()
554 return retval; in hcd_pci_suspend_noirq()
558 return retval; in hcd_pci_suspend_noirq()
589 int retval; in hcd_pci_runtime_suspend() local
591 retval = suspend_common(dev, true); in hcd_pci_runtime_suspend()
592 if (retval == 0) in hcd_pci_runtime_suspend()
594 dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval); in hcd_pci_runtime_suspend()
595 return retval; in hcd_pci_runtime_suspend()
600 int retval; in hcd_pci_runtime_resume() local
603 retval = resume_common(dev, PM_EVENT_AUTO_RESUME); in hcd_pci_runtime_resume()
604 dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval); in hcd_pci_runtime_resume()
605 return retval; in hcd_pci_runtime_resume()