Lines Matching refs:rc
47 int rc; in sclp_sync_request_timeout() local
62 rc = sclp_add_request(request); in sclp_sync_request_timeout()
63 if (rc) in sclp_sync_request_timeout()
71 rc = -EIO; in sclp_sync_request_timeout()
75 return rc; in sclp_sync_request_timeout()
111 int rc; in sclp_get_cpu_info() local
120 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in sclp_get_cpu_info()
122 if (rc) in sclp_get_cpu_info()
127 rc = -EIO; in sclp_get_cpu_info()
133 return rc; in sclp_get_cpu_info()
143 int rc; in do_cpu_configure() local
155 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_cpu_configure()
156 if (rc) in do_cpu_configure()
166 rc = -EIO; in do_cpu_configure()
171 return rc; in do_cpu_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()
507 int i, id, assigned, rc; in sclp_detect_standby_memory() local
513 rc = -ENOMEM; in sclp_detect_standby_memory()
521 rc = sclp_sync_request(0x00040001 | id << 8, sccb); in sclp_detect_standby_memory()
522 if (rc) in sclp_detect_standby_memory()
545 rc = -EIO; in sclp_detect_standby_memory()
548 if (!rc) in sclp_detect_standby_memory()
551 if (rc || list_empty(&sclp_mem_list)) in sclp_detect_standby_memory()
555 rc = register_memory_notifier(&sclp_mem_nb); in sclp_detect_standby_memory()
556 if (rc) in sclp_detect_standby_memory()
558 rc = platform_driver_register(&sclp_mem_pdrv); in sclp_detect_standby_memory()
559 if (rc) in sclp_detect_standby_memory()
562 rc = PTR_ERR_OR_ZERO(sclp_pdev); in sclp_detect_standby_memory()
563 if (rc) in sclp_detect_standby_memory()
571 return rc; in sclp_detect_standby_memory()
596 int rc; in do_pci_configure() local
608 rc = sclp_sync_request(cmd, sccb); in do_pci_configure()
609 if (rc) in do_pci_configure()
618 rc = -EIO; in do_pci_configure()
623 return rc; in do_pci_configure()
656 int rc; in do_chp_configure() local
665 rc = sclp_sync_request(cmd, sccb); in do_chp_configure()
666 if (rc) in do_chp_configure()
678 rc = -EIO; in do_chp_configure()
683 return rc; in do_chp_configure()
731 int rc; in sclp_chp_read_info() local
740 rc = sclp_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb); in sclp_chp_read_info()
741 if (rc) in sclp_chp_read_info()
746 rc = -EIO; in sclp_chp_read_info()
754 return rc; in sclp_chp_read_info()