Lines Matching refs:retval
176 int retval; in usb_hcd_pci_probe() local
200 retval = -ENODEV; in usb_hcd_pci_probe()
208 retval = -ENOMEM; in usb_hcd_pci_probe()
222 retval = -EBUSY; in usb_hcd_pci_probe()
228 retval = -EFAULT; in usb_hcd_pci_probe()
249 retval = -EBUSY; in usb_hcd_pci_probe()
261 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
262 if (retval != 0) in usb_hcd_pci_probe()
269 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
270 if (retval != 0) in usb_hcd_pci_probe()
277 if (retval != 0) in usb_hcd_pci_probe()
283 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()
431 int retval; in suspend_common() local
438 retval = check_root_hub_suspended(dev); in suspend_common()
439 if (retval) in suspend_common()
440 return retval; in suspend_common()
451 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
452 suspend_report_result(hcd->driver->pci_suspend, retval); in suspend_common()
455 if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) || in suspend_common()
456 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
460 retval = -EBUSY; in suspend_common()
462 if (retval) in suspend_common()
463 return retval; in suspend_common()
479 return retval; in suspend_common()
486 int retval; in resume_common() local
495 retval = pci_enable_device(pci_dev); in resume_common()
496 if (retval < 0) { in resume_common()
497 dev_err(dev, "can't re-enable after resume, %d!\n", retval); in resume_common()
498 return retval; in resume_common()
514 retval = hcd->driver->pci_resume(hcd, in resume_common()
516 if (retval) { in resume_common()
517 dev_err(dev, "PCI post-resume error %d!\n", retval); in resume_common()
521 return retval; in resume_common()
535 int retval; in hcd_pci_suspend_noirq() local
537 retval = check_root_hub_suspended(dev); in hcd_pci_suspend_noirq()
538 if (retval) in hcd_pci_suspend_noirq()
539 return retval; in hcd_pci_suspend_noirq()
554 retval = pci_prepare_to_sleep(pci_dev); in hcd_pci_suspend_noirq()
555 if (retval == -EIO) { /* Low-power not supported */ in hcd_pci_suspend_noirq()
557 retval = 0; in hcd_pci_suspend_noirq()
558 } else if (retval == 0) { in hcd_pci_suspend_noirq()
562 suspend_report_result(pci_prepare_to_sleep, retval); in hcd_pci_suspend_noirq()
563 return retval; in hcd_pci_suspend_noirq()
567 return retval; in hcd_pci_suspend_noirq()
598 int retval; in hcd_pci_runtime_suspend() local
600 retval = suspend_common(dev, true); in hcd_pci_runtime_suspend()
601 if (retval == 0) in hcd_pci_runtime_suspend()
603 dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval); in hcd_pci_runtime_suspend()
604 return retval; in hcd_pci_runtime_suspend()
609 int retval; in hcd_pci_runtime_resume() local
612 retval = resume_common(dev, PM_EVENT_AUTO_RESUME); in hcd_pci_runtime_resume()
613 dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval); in hcd_pci_runtime_resume()
614 return retval; in hcd_pci_runtime_resume()