Lines Matching refs:retval

177 	int			retval;  in usb_hcd_pci_probe()  local
197 retval = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_LEGACY | PCI_IRQ_MSI); in usb_hcd_pci_probe()
198 if (retval < 0) { in usb_hcd_pci_probe()
202 retval = -ENODEV; in usb_hcd_pci_probe()
210 retval = -ENOMEM; in usb_hcd_pci_probe()
224 retval = -EBUSY; in usb_hcd_pci_probe()
231 retval = -EFAULT; in usb_hcd_pci_probe()
252 retval = -EBUSY; in usb_hcd_pci_probe()
264 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
265 if (retval != 0) in usb_hcd_pci_probe()
272 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
273 if (retval != 0) in usb_hcd_pci_probe()
280 if (retval != 0) in usb_hcd_pci_probe()
286 return retval; in usb_hcd_pci_probe()
295 dev_err(&dev->dev, "init %s fail, %d\n", pci_name(dev), retval); in usb_hcd_pci_probe()
296 return retval; in usb_hcd_pci_probe()
426 int retval; in suspend_common() local
433 retval = check_root_hub_suspended(dev); in suspend_common()
434 if (retval) in suspend_common()
435 return retval; in suspend_common()
446 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
447 suspend_report_result(hcd->driver->pci_suspend, retval); in suspend_common()
450 if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) || in suspend_common()
451 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
455 retval = -EBUSY; in suspend_common()
457 if (retval) in suspend_common()
458 return retval; in suspend_common()
474 return retval; in suspend_common()
481 int retval; in resume_common() local
490 retval = pci_enable_device(pci_dev); in resume_common()
491 if (retval < 0) { in resume_common()
492 dev_err(dev, "can't re-enable after resume, %d!\n", retval); in resume_common()
493 return retval; in resume_common()
509 retval = hcd->driver->pci_resume(hcd, in resume_common()
511 if (retval) { in resume_common()
512 dev_err(dev, "PCI post-resume error %d!\n", retval); in resume_common()
516 return retval; in resume_common()
530 int retval; in hcd_pci_suspend_noirq() local
532 retval = check_root_hub_suspended(dev); in hcd_pci_suspend_noirq()
533 if (retval) in hcd_pci_suspend_noirq()
534 return retval; in hcd_pci_suspend_noirq()
549 retval = pci_prepare_to_sleep(pci_dev); in hcd_pci_suspend_noirq()
550 if (retval == -EIO) { /* Low-power not supported */ in hcd_pci_suspend_noirq()
552 retval = 0; in hcd_pci_suspend_noirq()
553 } else if (retval == 0) { in hcd_pci_suspend_noirq()
557 suspend_report_result(pci_prepare_to_sleep, retval); in hcd_pci_suspend_noirq()
558 return retval; in hcd_pci_suspend_noirq()
562 return retval; in hcd_pci_suspend_noirq()
593 int retval; in hcd_pci_runtime_suspend() local
595 retval = suspend_common(dev, true); in hcd_pci_runtime_suspend()
596 if (retval == 0) in hcd_pci_runtime_suspend()
598 dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval); in hcd_pci_runtime_suspend()
599 return retval; in hcd_pci_runtime_suspend()
604 int retval; in hcd_pci_runtime_resume() local
607 retval = resume_common(dev, PM_EVENT_AUTO_RESUME); in hcd_pci_runtime_resume()
608 dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval); in hcd_pci_runtime_resume()
609 return retval; in hcd_pci_runtime_resume()