Lines Matching refs:rc
48 int rc; in sclp_sync_request_timeout() local
63 rc = sclp_add_request(request); in sclp_sync_request_timeout()
64 if (rc) in sclp_sync_request_timeout()
72 rc = -EIO; in sclp_sync_request_timeout()
76 return rc; in sclp_sync_request_timeout()
111 int rc; in sclp_get_core_info() local
120 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in sclp_get_core_info()
122 if (rc) in sclp_get_core_info()
127 rc = -EIO; in sclp_get_core_info()
133 return rc; in sclp_get_core_info()
143 int rc; in do_core_configure() local
155 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_core_configure()
156 if (rc) in do_core_configure()
166 rc = -EIO; in do_core_configure()
171 return rc; in do_core_configure()
218 int rc; in do_assign_storage() local
225 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_assign_storage()
226 if (rc) in do_assign_storage()
236 rc = -EIO; in do_assign_storage()
241 return rc; in do_assign_storage()
247 int rc; in sclp_assign_storage() local
249 rc = do_assign_storage(0x000d0001, rn); in sclp_assign_storage()
250 if (rc) in sclp_assign_storage()
251 return rc; in sclp_assign_storage()
273 int rc; in sclp_attach_storage() local
280 rc = sclp_sync_request_timeout(0x00080001 | id << 8, sccb, in sclp_attach_storage()
282 if (rc) in sclp_attach_storage()
293 rc = -EIO; in sclp_attach_storage()
298 return rc; in sclp_attach_storage()
306 int rc = 0; in sclp_mem_change_state() local
315 rc |= sclp_assign_storage(incr->rn); in sclp_mem_change_state()
318 if (rc == 0) in sclp_mem_change_state()
321 return rc ? -EIO : 0; in sclp_mem_change_state()
347 int rc = 0; in sclp_mem_notifier() local
363 rc = -EPERM; in sclp_mem_notifier()
369 rc = sclp_mem_change_state(start, size, 1); in sclp_mem_notifier()
378 rc = -EINVAL; in sclp_mem_notifier()
381 if (!rc) in sclp_mem_notifier()
384 return rc ? NOTIFY_BAD : NOTIFY_OK; in sclp_mem_notifier()
510 int i, id, assigned, rc; in sclp_detect_standby_memory() local
516 rc = -ENOMEM; in sclp_detect_standby_memory()
524 rc = sclp_sync_request(0x00040001 | id << 8, sccb); in sclp_detect_standby_memory()
525 if (rc) in sclp_detect_standby_memory()
548 rc = -EIO; in sclp_detect_standby_memory()
551 if (!rc) in sclp_detect_standby_memory()
554 if (rc || list_empty(&sclp_mem_list)) in sclp_detect_standby_memory()
558 rc = register_memory_notifier(&sclp_mem_nb); in sclp_detect_standby_memory()
559 if (rc) in sclp_detect_standby_memory()
561 rc = platform_driver_register(&sclp_mem_pdrv); in sclp_detect_standby_memory()
562 if (rc) in sclp_detect_standby_memory()
565 rc = PTR_ERR_OR_ZERO(sclp_pdev); in sclp_detect_standby_memory()
566 if (rc) in sclp_detect_standby_memory()
574 return rc; in sclp_detect_standby_memory()
599 int rc; in do_pci_configure() local
611 rc = sclp_sync_request(cmd, sccb); in do_pci_configure()
612 if (rc) in do_pci_configure()
621 rc = -EIO; in do_pci_configure()
626 return rc; in do_pci_configure()
659 int rc; in do_chp_configure() local
668 rc = sclp_sync_request(cmd, sccb); in do_chp_configure()
669 if (rc) in do_chp_configure()
681 rc = -EIO; in do_chp_configure()
686 return rc; in do_chp_configure()
734 int rc; in sclp_chp_read_info() local
743 rc = sclp_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb); in sclp_chp_read_info()
744 if (rc) in sclp_chp_read_info()
749 rc = -EIO; in sclp_chp_read_info()
757 return rc; in sclp_chp_read_info()