Lines Matching refs:retval

190 	int			retval;  in usb_hcd_pci_probe()  local
214 retval = -ENODEV; in usb_hcd_pci_probe()
222 retval = -ENOMEM; in usb_hcd_pci_probe()
236 retval = -EBUSY; in usb_hcd_pci_probe()
242 retval = -EFAULT; in usb_hcd_pci_probe()
263 retval = -EBUSY; in usb_hcd_pci_probe()
275 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
276 if (retval != 0) in usb_hcd_pci_probe()
283 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
284 if (retval != 0) in usb_hcd_pci_probe()
291 if (retval != 0) in usb_hcd_pci_probe()
297 return retval; in usb_hcd_pci_probe()
310 dev_err(&dev->dev, "init %s fail, %d\n", pci_name(dev), retval); in usb_hcd_pci_probe()
311 return retval; in usb_hcd_pci_probe()
445 int retval; in suspend_common() local
452 retval = check_root_hub_suspended(dev); in suspend_common()
453 if (retval) in suspend_common()
454 return retval; in suspend_common()
465 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
466 suspend_report_result(hcd->driver->pci_suspend, retval); in suspend_common()
469 if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) || in suspend_common()
470 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
474 retval = -EBUSY; in suspend_common()
476 if (retval) in suspend_common()
477 return retval; in suspend_common()
493 return retval; in suspend_common()
500 int retval; in resume_common() local
509 retval = pci_enable_device(pci_dev); in resume_common()
510 if (retval < 0) { in resume_common()
511 dev_err(dev, "can't re-enable after resume, %d!\n", retval); in resume_common()
512 return retval; in resume_common()
528 retval = hcd->driver->pci_resume(hcd, in resume_common()
530 if (retval) { in resume_common()
531 dev_err(dev, "PCI post-resume error %d!\n", retval); in resume_common()
537 return retval; in resume_common()
551 int retval; in hcd_pci_suspend_noirq() local
553 retval = check_root_hub_suspended(dev); in hcd_pci_suspend_noirq()
554 if (retval) in hcd_pci_suspend_noirq()
555 return retval; in hcd_pci_suspend_noirq()
570 retval = pci_prepare_to_sleep(pci_dev); in hcd_pci_suspend_noirq()
571 if (retval == -EIO) { /* Low-power not supported */ in hcd_pci_suspend_noirq()
573 retval = 0; in hcd_pci_suspend_noirq()
574 } else if (retval == 0) { in hcd_pci_suspend_noirq()
578 suspend_report_result(pci_prepare_to_sleep, retval); in hcd_pci_suspend_noirq()
579 return retval; in hcd_pci_suspend_noirq()
583 return retval; in hcd_pci_suspend_noirq()
619 int retval; in hcd_pci_runtime_suspend() local
621 retval = suspend_common(dev, true); in hcd_pci_runtime_suspend()
622 if (retval == 0) in hcd_pci_runtime_suspend()
624 dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval); in hcd_pci_runtime_suspend()
625 return retval; in hcd_pci_runtime_suspend()
630 int retval; in hcd_pci_runtime_resume() local
633 retval = resume_common(dev, PM_EVENT_AUTO_RESUME); in hcd_pci_runtime_resume()
634 dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval); in hcd_pci_runtime_resume()
635 return retval; in hcd_pci_runtime_resume()