Lines Matching refs:rc

55 	int rc = 1;
62 rc = ibmphp_hpc_readslot(slot_cur, READ_BUSSTATUS, NULL);
64 if (rc)
65 return rc;
85 int rc;
86 rc = ibmphp_hpc_readslot(*sl, READ_ALLSTAT, NULL);
87 if (rc)
88 return rc;
90 rc = get_cur_bus_info(sl);
91 return rc;
215 int rc = 0;
236 rc = -ENODEV;
241 if (rc == 0) {
243 rc = ibmphp_hpc_writeslot(pslot, cmd);
246 rc = -ENODEV;
250 debug("set_attention_status - Exit rc[%d]\n", rc);
251 return rc;
256 int rc = -ENODEV;
267 rc = ibmphp_hpc_readslot(pslot, READ_SLOTSTATUS,
269 if (!rc)
270 rc = ibmphp_hpc_readslot(pslot, READ_EXTSLOTSTATUS,
272 if (!rc)
277 debug("get_attention_status - Exit rc[%d] value[%x]\n", rc, *value);
278 return rc;
283 int rc = -ENODEV;
293 rc = ibmphp_hpc_readslot(pslot, READ_SLOTSTATUS,
295 if (!rc)
300 debug("get_latch_status - Exit rc[%d] rc[%x] value[%x]\n",
301 rc, rc, *value);
302 return rc;
308 int rc = -ENODEV;
318 rc = ibmphp_hpc_readslot(pslot, READ_SLOTSTATUS,
320 if (!rc)
325 debug("get_power_status - Exit rc[%d] rc[%x] value[%x]\n",
326 rc, rc, *value);
327 return rc;
332 int rc = -ENODEV;
343 rc = ibmphp_hpc_readslot(pslot, READ_SLOTSTATUS,
345 if (!rc) {
355 debug("get_adapter_present - Exit rc[%d] value[%x]\n", rc, *value);
356 return rc;
361 int rc = 0;
386 rc = -ENODEV;
389 if (!rc)
392 debug("%s - Exit rc[%d] speed[%x]\n", __func__, rc, speed);
393 return rc;
405 int rc;
438 rc = power_off(slot_cur);
439 if (rc)
440 return rc;
709 int rc;
721 rc = slot_update(&tmp_slot);
722 if (rc)
740 int rc;
751 rc = slot_update(&slot_cur);
752 if (rc)
753 return rc;
895 int rc, i, rcpr;
905 rc = validate(slot_cur, ENABLE);
906 if (rc) {
913 rc = set_bus(slot_cur);
914 if (rc) {
925 rc = check_limitations(slot_cur);
926 if (rc) {
930 rc = -EINVAL;
934 rc = power_on(slot_cur);
936 if (rc) {
944 rc = -ENODEV;
968 rc = slot_update(&slot_cur);
969 if (rc)
972 rc = -EINVAL;
992 rc = -ENOMEM;
1010 rc = -ENOMEM;
1024 rc = -EFAULT;
1028 rc = ibmphp_update_slot_info(slot_cur);
1031 return rc;
1039 rc = rcpr;
1050 rc = rcpr;
1065 int rc;
1068 rc = ibmphp_do_disable_slot(slot);
1070 return rc;
1075 int rc;
1087 rc = validate(slot_cur, DISABLE);
1089 if (rc)
1098 rc = -ENOMEM;
1119 rc = ibmphp_unconfigure_card(&slot_cur, 0);
1122 if (rc) {
1127 rc = ibmphp_hpc_writeslot(slot_cur, HPC_SLOT_OFF);
1128 if (rc)
1132 rc = slot_update(&slot_cur);
1133 if (rc)
1136 rc = ibmphp_update_slot_info(slot_cur);
1139 return rc;
1146 rc = -EFAULT;
1184 int rc = 0;
1192 rc = -ENOMEM;
1199 rc = -ENODEV;
1209 rc = ibmphp_access_ebda();
1210 if (rc)
1214 rc = ibmphp_rsrc_init();
1215 if (rc)
1221 rc = ibmphp_register_pci();
1222 if (rc)
1226 rc = -ENODEV;
1231 rc = ibmphp_hpc_start_poll_thread();
1232 if (rc)
1236 return rc;