Lines Matching refs:rv
181 int rv = 0; in set_param_timeout() local
191 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout()
193 return rv; in set_param_timeout()
212 int rv = 0; in set_param_str() local
220 rv = fn(s, NULL); in set_param_str()
221 if (rv) in set_param_str()
226 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_str()
229 return rv; in set_param_str()
235 int rv, len; in get_param_str() local
237 rv = fn(NULL, buffer); in get_param_str()
238 if (rv) in get_param_str()
239 return rv; in get_param_str()
251 int rv = param_set_int(val, kp); in set_param_wdog_ifnum() local
252 if (rv) in set_param_wdog_ifnum()
253 return rv; in set_param_wdog_ifnum()
366 int rv; in __ipmi_set_timeout() local
408 rv = ipmi_request_supply_msgs(watchdog_user, in __ipmi_set_timeout()
416 if (rv) in __ipmi_set_timeout()
417 pr_warn("set timeout error: %d\n", rv); in __ipmi_set_timeout()
421 return rv; in __ipmi_set_timeout()
427 int rv; in _ipmi_set_timeout() local
434 rv = __ipmi_set_timeout(&smi_msg, in _ipmi_set_timeout()
437 if (rv) { in _ipmi_set_timeout()
439 return rv; in _ipmi_set_timeout()
447 rv = __ipmi_heartbeat(); in _ipmi_set_timeout()
449 return rv; in _ipmi_set_timeout()
454 int rv; in ipmi_set_timeout() local
457 rv = _ipmi_set_timeout(do_heartbeat); in ipmi_set_timeout()
460 return rv; in ipmi_set_timeout()
483 int rv; in panic_halt_ipmi_heartbeat() local
501 rv = ipmi_request_supply_msgs(watchdog_user, in panic_halt_ipmi_heartbeat()
509 if (rv) in panic_halt_ipmi_heartbeat()
527 int rv; in panic_halt_ipmi_set_timeout() local
533 rv = __ipmi_set_timeout(&panic_halt_smi_msg, in panic_halt_ipmi_set_timeout()
536 if (rv) { in panic_halt_ipmi_set_timeout()
550 int rv; in __ipmi_heartbeat() local
572 rv = ipmi_request_supply_msgs(watchdog_user, in __ipmi_heartbeat()
580 if (rv) { in __ipmi_heartbeat()
582 pr_warn("heartbeat send failure: %d\n", rv); in __ipmi_heartbeat()
583 return rv; in __ipmi_heartbeat()
593 rv = -EIO; in __ipmi_heartbeat()
605 rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB); in __ipmi_heartbeat()
606 if (rv) { in __ipmi_heartbeat()
619 rv = -EINVAL; in __ipmi_heartbeat()
623 return rv; in __ipmi_heartbeat()
628 int rv; in _ipmi_heartbeat() local
636 rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_FORCE_HB); in _ipmi_heartbeat()
644 rv = _ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in _ipmi_heartbeat()
646 rv = __ipmi_heartbeat(); in _ipmi_heartbeat()
649 return rv; in _ipmi_heartbeat()
654 int rv; in ipmi_heartbeat() local
657 rv = _ipmi_heartbeat(); in ipmi_heartbeat()
660 return rv; in ipmi_heartbeat()
756 int rv; in ipmi_write() local
774 rv = ipmi_heartbeat(); in ipmi_write()
775 if (rv) in ipmi_write()
776 return rv; in ipmi_write()
786 int rv = 0; in ipmi_read() local
799 rv = -EAGAIN; in ipmi_read()
814 rv = -ERESTARTSYS; in ipmi_read()
823 if (rv == 0) { in ipmi_read()
825 rv = -EFAULT; in ipmi_read()
827 rv = 1; in ipmi_read()
830 return rv; in ipmi_read()
982 int rv = -EBUSY; in ipmi_register_watchdog() local
992 rv = ipmi_create_user(ipmi_intf, &ipmi_hndlrs, NULL, &watchdog_user); in ipmi_register_watchdog()
993 if (rv < 0) { in ipmi_register_watchdog()
998 rv = ipmi_get_version(watchdog_user, in ipmi_register_watchdog()
1001 if (rv) { in ipmi_register_watchdog()
1007 rv = misc_register(&ipmi_wdog_miscdev); in ipmi_register_watchdog()
1008 if (rv < 0) { in ipmi_register_watchdog()
1031 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_FORCE_HB); in ipmi_register_watchdog()
1032 if (rv) { in ipmi_register_watchdog()
1034 rv); in ipmi_register_watchdog()
1035 rv = 0; in ipmi_register_watchdog()
1053 if ((start_now) && (rv == 0)) { in ipmi_register_watchdog()
1068 int rv; in ipmi_unregister_watchdog() local
1093 rv = ipmi_destroy_user(loc_user); in ipmi_unregister_watchdog()
1094 if (rv) in ipmi_unregister_watchdog()
1095 pr_warn("error unlinking from IPMI: %d\n", rv); in ipmi_unregister_watchdog()
1263 int rv; in check_parms() local
1274 rv = register_nmi_handler(NMI_UNKNOWN, ipmi_nmi, 0, in check_parms()
1276 if (rv) { in check_parms()
1290 int rv; in ipmi_wdog_init() local
1312 rv = ipmi_smi_watcher_register(&smi_watcher); in ipmi_wdog_init()
1313 if (rv) { in ipmi_wdog_init()
1320 return rv; in ipmi_wdog_init()