Lines Matching defs:rc
404 int rc;
407 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(44));
408 if (rc) {
409 rc = pci_set_consistent_dma_mask(pdev,
411 if (rc) {
414 return rc;
418 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
419 if (rc) {
422 return rc;
424 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
425 if (rc) {
428 return rc;
431 return rc;
559 int rc;
565 rc = pci_enable_msix(pm8001_ha->pdev, pm8001_ha->msix_entries,
568 if (!rc) {
582 return rc;
594 int rc;
607 rc = request_irq(pdev->irq, irq_handler, IRQF_SHARED, DRV_NAME,
609 return rc;
624 unsigned int rc;
632 rc = pci_enable_device(pdev);
633 if (rc)
644 rc = pci_request_regions(pdev, DRV_NAME);
645 if (rc)
647 rc = pci_go_44(pdev);
648 if (rc)
653 rc = -ENOMEM;
660 rc = -ENOMEM;
664 rc = pm8001_prep_sas_ha_init(shost, chip);
665 if (rc) {
666 rc = -ENOMEM;
672 rc = -ENOMEM;
677 rc = PM8001_CHIP_DISP->chip_init(pm8001_ha);
678 if (rc)
681 rc = scsi_add_host(shost, &pdev->dev);
682 if (rc)
684 rc = pm8001_request_irq(pm8001_ha);
685 if (rc)
691 rc = sas_register_ha(SHOST_TO_SAS_HA(shost));
692 if (rc)
710 return rc;
802 int rc;
813 rc = pci_enable_device(pdev);
814 if (rc) {
821 rc = pci_go_44(pdev);
822 if (rc)
826 rc = PM8001_CHIP_DISP->chip_init(pm8001_ha);
827 if (rc)
830 rc = pm8001_request_irq(pm8001_ha);
831 if (rc)
845 return rc;
873 int rc;
878 rc = pci_register_driver(&pm8001_pci_driver);
879 if (rc)
884 return rc;