Lines Matching refs:rc
259 u8 rc; in i2c_ctrl_write() local
268 rc = 0; in i2c_ctrl_write()
329 rc = HPC_ERROR; in i2c_ctrl_write()
346 rc = HPC_ERROR; in i2c_ctrl_write()
349 debug_polling ("%s Exit rc[%x]\n", __func__, rc); in i2c_ctrl_write()
350 return (rc); in i2c_ctrl_write()
392 u8 rc = -ENODEV; in pci_ctrl_write() local
396 rc = 0; in pci_ctrl_write()
398 return rc; in pci_ctrl_write()
403 u8 rc; in ctrl_read() local
406 rc = isa_ctrl_read (ctlr, offset); in ctrl_read()
409 rc = pci_ctrl_read (ctlr, offset); in ctrl_read()
413 rc = i2c_ctrl_read (ctlr, base, offset); in ctrl_read()
418 return rc; in ctrl_read()
423 u8 rc = 0; in ctrl_write() local
429 rc = pci_ctrl_write (ctlr, offset, data); in ctrl_write()
433 rc = i2c_ctrl_write(ctlr, base, offset, data); in ctrl_write()
438 return rc; in ctrl_write()
449 u8 rc; in hpc_writecmdtoindex() local
459 rc = 0x0F; in hpc_writecmdtoindex()
467 rc = index; in hpc_writecmdtoindex()
475 rc = index + WPG_1ST_BUS_INDEX - 1; in hpc_writecmdtoindex()
480 rc = HPC_ERROR; in hpc_writecmdtoindex()
483 return rc; in hpc_writecmdtoindex()
495 u8 rc; in hpc_readcmdtoindex() local
499 rc = 0x0F; in hpc_readcmdtoindex()
503 rc = index; in hpc_readcmdtoindex()
506 rc = index + WPG_1ST_EXTSLOT_INDEX; in hpc_readcmdtoindex()
509 rc = index + WPG_1ST_BUS_INDEX - 1; in hpc_readcmdtoindex()
512 rc = 0x28; in hpc_readcmdtoindex()
515 rc = 0x25; in hpc_readcmdtoindex()
518 rc = 0x27; in hpc_readcmdtoindex()
521 rc = HPC_ERROR; in hpc_readcmdtoindex()
523 return rc; in hpc_readcmdtoindex()
542 int rc = 0; in ibmphp_hpc_readslot() local
549 rc = -EINVAL; in ibmphp_hpc_readslot()
550 err ("%s - Error invalid pointer, rc[%d]\n", __func__, rc); in ibmphp_hpc_readslot()
551 return rc; in ibmphp_hpc_readslot()
557 rc = -EINVAL; in ibmphp_hpc_readslot()
558 err ("%s - Exit Error:invalid bus, rc[%d]\n", __func__, rc); in ibmphp_hpc_readslot()
559 return rc; in ibmphp_hpc_readslot()
568 rc = -EINVAL; in ibmphp_hpc_readslot()
569 err ("%s - Exit Error:invalid index, rc[%d]\n", __func__, rc); in ibmphp_hpc_readslot()
570 return rc; in ibmphp_hpc_readslot()
586 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, wpg_bbar, &status); in ibmphp_hpc_readslot()
587 if (!rc) { in ibmphp_hpc_readslot()
593 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, wpg_bbar, in ibmphp_hpc_readslot()
595 if (!rc) in ibmphp_hpc_readslot()
634 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, in ibmphp_hpc_readslot()
636 if (!rc) { in ibmphp_hpc_readslot()
638 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, in ibmphp_hpc_readslot()
640 if (!rc) in ibmphp_hpc_readslot()
646 rc = -EINVAL; in ibmphp_hpc_readslot()
652 rc = -EINVAL; in ibmphp_hpc_readslot()
666 debug_polling ("%s - Exit rc[%d]\n", __func__, rc); in ibmphp_hpc_readslot()
667 return rc; in ibmphp_hpc_readslot()
682 int rc = 0; in ibmphp_hpc_writeslot() local
687 rc = -EINVAL; in ibmphp_hpc_writeslot()
688 err ("%s - Error Exit rc[%d]\n", __func__, rc); in ibmphp_hpc_writeslot()
689 return rc; in ibmphp_hpc_writeslot()
697 rc = -EINVAL; in ibmphp_hpc_writeslot()
698 err ("%s - Exit Error:invalid bus, rc[%d]\n", __func__, rc); in ibmphp_hpc_writeslot()
699 return rc; in ibmphp_hpc_writeslot()
708 rc = -EINVAL; in ibmphp_hpc_writeslot()
709 err ("%s - Error Exit rc[%d]\n", __func__, rc); in ibmphp_hpc_writeslot()
710 return rc; in ibmphp_hpc_writeslot()
730 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, wpg_bbar, &status); in ibmphp_hpc_writeslot()
731 if (!rc) { in ibmphp_hpc_writeslot()
741 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, wpg_bbar, in ibmphp_hpc_writeslot()
743 if (!rc) { in ibmphp_hpc_writeslot()
755 rc = -EFAULT; in ibmphp_hpc_writeslot()
769 debug_polling ("%s - Exit rc[%d]\n", __func__, rc); in ibmphp_hpc_writeslot()
770 return rc; in ibmphp_hpc_writeslot()
824 int rc; in poll_hpc() local
848 rc = ibmphp_hpc_readslot (pslot, in poll_hpc()
867 rc = ibmphp_hpc_readslot (pslot, READ_ALLSTAT, NULL); in poll_hpc()
880 rc = ibmphp_hpc_readslot (pslot, in poll_hpc()
935 int rc = 0; in process_changeinstatus() local
976 rc = ibmphp_hpc_readslot (pslot, READ_SLOTSTATUS, &status); in process_changeinstatus()
997 rc = ibmphp_do_disable_slot (pslot); in process_changeinstatus()
1003 debug ("%s - Exit rc[%d] disable[%x] update[%x]\n", __func__, rc, disable, update); in process_changeinstatus()
1005 return rc; in process_changeinstatus()
1023 int rc = 0; in process_changeinlatch() local
1034 rc = ibmphp_hpc_readslot (pslot, READ_ALLSTAT, NULL); in process_changeinlatch()
1038 rc = -EINVAL; in process_changeinlatch()
1043 debug ("%s - Exit rc[%d]\n", __func__, rc); in process_changeinlatch()
1044 return rc; in process_changeinlatch()
1106 int rc = 0; in hpc_wait_ctlr_notworking() local
1114 rc = HPC_ERROR; in hpc_wait_ctlr_notworking()
1124 rc = HPC_ERROR; in hpc_wait_ctlr_notworking()
1129 debug_polling ("hpc_wait_ctlr_notworking - Exit rc[%x] status[%x]\n", rc, *pstatus); in hpc_wait_ctlr_notworking()
1130 return rc; in hpc_wait_ctlr_notworking()