Lines Matching refs:retval
178 int retval; in usb_hcd_pci_probe() local
198 retval = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_LEGACY | PCI_IRQ_MSI); in usb_hcd_pci_probe()
199 if (retval < 0) { in usb_hcd_pci_probe()
203 retval = -ENODEV; in usb_hcd_pci_probe()
211 retval = -ENOMEM; in usb_hcd_pci_probe()
225 retval = -EBUSY; in usb_hcd_pci_probe()
232 retval = -EFAULT; in usb_hcd_pci_probe()
253 retval = -EBUSY; in usb_hcd_pci_probe()
265 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
266 if (retval != 0) in usb_hcd_pci_probe()
273 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
274 if (retval != 0) in usb_hcd_pci_probe()
281 if (retval != 0) in usb_hcd_pci_probe()
287 return retval; in usb_hcd_pci_probe()
296 dev_err(&dev->dev, "init %s fail, %d\n", pci_name(dev), retval); in usb_hcd_pci_probe()
297 return retval; in usb_hcd_pci_probe()
428 int retval; in suspend_common() local
435 retval = check_root_hub_suspended(dev); in suspend_common()
436 if (retval) in suspend_common()
437 return retval; in suspend_common()
448 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
449 suspend_report_result(hcd->driver->pci_suspend, retval); in suspend_common()
452 if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) || in suspend_common()
453 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
457 retval = -EBUSY; in suspend_common()
459 if (retval) in suspend_common()
460 return retval; in suspend_common()
476 return retval; in suspend_common()
483 int retval; in resume_common() local
492 retval = pci_enable_device(pci_dev); in resume_common()
493 if (retval < 0) { in resume_common()
494 dev_err(dev, "can't re-enable after resume, %d!\n", retval); in resume_common()
495 return retval; in resume_common()
511 retval = hcd->driver->pci_resume(hcd, in resume_common()
513 if (retval) { in resume_common()
514 dev_err(dev, "PCI post-resume error %d!\n", retval); in resume_common()
518 return retval; in resume_common()
532 int retval; in hcd_pci_suspend_noirq() local
534 retval = check_root_hub_suspended(dev); in hcd_pci_suspend_noirq()
535 if (retval) in hcd_pci_suspend_noirq()
536 return retval; in hcd_pci_suspend_noirq()
551 retval = pci_prepare_to_sleep(pci_dev); in hcd_pci_suspend_noirq()
552 if (retval == -EIO) { /* Low-power not supported */ in hcd_pci_suspend_noirq()
554 retval = 0; in hcd_pci_suspend_noirq()
555 } else if (retval == 0) { in hcd_pci_suspend_noirq()
559 suspend_report_result(pci_prepare_to_sleep, retval); in hcd_pci_suspend_noirq()
560 return retval; in hcd_pci_suspend_noirq()
564 return retval; in hcd_pci_suspend_noirq()
595 int retval; in hcd_pci_runtime_suspend() local
597 retval = suspend_common(dev, true); in hcd_pci_runtime_suspend()
598 if (retval == 0) in hcd_pci_runtime_suspend()
600 dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval); in hcd_pci_runtime_suspend()
601 return retval; in hcd_pci_runtime_suspend()
606 int retval; in hcd_pci_runtime_resume() local
609 retval = resume_common(dev, PM_EVENT_AUTO_RESUME); in hcd_pci_runtime_resume()
610 dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval); in hcd_pci_runtime_resume()
611 return retval; in hcd_pci_runtime_resume()