Lines Matching refs:rc
236 int rc; in sn_slot_enable() local
244 rc = sal_pcibr_slot_enable(pcibus_info, device_num, &resp, ssdt); in sn_slot_enable()
247 if (rc == PCI_SLOT_ALREADY_UP) { in sn_slot_enable()
252 if (rc == PCI_L1_ERR) { in sn_slot_enable()
258 if (rc) { in sn_slot_enable()
260 rc, resp.resp_sub_errno); in sn_slot_enable()
276 int rc; in sn_slot_disable() local
280 rc = sal_pcibr_slot_disable(pcibus_info, device_num, action, &resp); in sn_slot_disable()
283 (rc == PCI_SLOT_ALREADY_DOWN)) { in sn_slot_disable()
288 if ((action == PCI_REQ_SLOT_ELIGIBLE) && (rc == PCI_EMPTY_33MHZ)) { in sn_slot_disable()
293 if ((action == PCI_REQ_SLOT_ELIGIBLE) && (rc == PCI_L1_ERR)) { in sn_slot_disable()
299 if ((action == PCI_REQ_SLOT_ELIGIBLE) && rc) { in sn_slot_disable()
301 rc, resp.resp_sub_errno); in sn_slot_disable()
305 if ((action == PCI_REQ_SLOT_ELIGIBLE) && !rc) in sn_slot_disable()
308 if ((action == PCI_REQ_SLOT_DISABLE) && !rc) { in sn_slot_disable()
315 if ((action == PCI_REQ_SLOT_DISABLE) && rc) { in sn_slot_disable()
316 dev_dbg(&slot->pci_bus->self->dev,"remove failed rc = %d\n", rc); in sn_slot_disable()
319 return rc; in sn_slot_disable()
334 int rc; in enable_slot() local
346 rc = sn_slot_enable(bss_hotplug_slot, slot->device_num, &ssdt); in enable_slot()
347 if (rc) { in enable_slot()
349 return rc; in enable_slot()
465 if (rc == 0) in enable_slot()
468 dev_dbg(&slot->pci_bus->self->dev, "insert operation failed rc = %d\n", rc); in enable_slot()
470 return rc; in enable_slot()
477 int rc; in disable_slot() local
484 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
486 if (rc) in disable_slot()
565 rc = sn_slot_disable(bss_hotplug_slot, slot->device_num, in disable_slot()
571 return rc; in disable_slot()
602 int rc = 0; in sn_hotplug_slot_register() local
616 rc = -ENOMEM; in sn_hotplug_slot_register()
624 rc = -ENOMEM; in sn_hotplug_slot_register()
630 rc = -ENOMEM; in sn_hotplug_slot_register()
636 rc = pci_hp_register(bss_hotplug_slot, pci_bus, device, name); in sn_hotplug_slot_register()
637 if (rc) in sn_hotplug_slot_register()
641 rc = sysfs_create_file(&pci_slot->kobj, in sn_hotplug_slot_register()
643 if (rc) in sn_hotplug_slot_register()
647 return rc; in sn_hotplug_slot_register()
651 rc); in sn_hotplug_slot_register()
654 if (rc == -ENOMEM) in sn_hotplug_slot_register()
665 return rc; in sn_hotplug_slot_register()
671 int rc; in sn_pci_hotplug_init() local
686 rc = sn_pci_bus_valid(pci_bus); in sn_pci_hotplug_init()
687 if (rc != 1) { in sn_pci_hotplug_init()
693 rc = sn_hotplug_slot_register(pci_bus); in sn_pci_hotplug_init()
694 if (!rc) { in sn_pci_hotplug_init()