Lines Matching refs:rv
196 int rv = 0; in set_param_timeout() local
206 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout()
208 return rv; in set_param_timeout()
227 int rv = 0; in set_param_str() local
236 rv = fn(s, NULL); in set_param_str()
237 if (rv) in set_param_str()
242 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_str()
245 return rv; in set_param_str()
251 int rv; in get_param_str() local
253 rv = fn(NULL, buffer); in get_param_str()
254 if (rv) in get_param_str()
255 return rv; in get_param_str()
262 int rv = param_set_int(val, kp); in set_param_wdog_ifnum() local
263 if (rv) in set_param_wdog_ifnum()
264 return rv; in set_param_wdog_ifnum()
379 int rv; in i_ipmi_set_timeout() local
422 rv = ipmi_request_supply_msgs(watchdog_user, in i_ipmi_set_timeout()
430 if (rv) { in i_ipmi_set_timeout()
432 rv); in i_ipmi_set_timeout()
438 return rv; in i_ipmi_set_timeout()
444 int rv; in ipmi_set_timeout() local
452 rv = i_ipmi_set_timeout(&set_timeout_smi_msg, in ipmi_set_timeout()
455 if (rv) { in ipmi_set_timeout()
467 rv = ipmi_heartbeat(); in ipmi_set_timeout()
470 return rv; in ipmi_set_timeout()
495 int rv; in panic_halt_ipmi_heartbeat() local
513 rv = ipmi_request_supply_msgs(watchdog_user, in panic_halt_ipmi_heartbeat()
521 if (rv) in panic_halt_ipmi_heartbeat()
541 int rv; in panic_halt_ipmi_set_timeout() local
547 rv = i_ipmi_set_timeout(&panic_halt_smi_msg, in panic_halt_ipmi_set_timeout()
550 if (rv) { in panic_halt_ipmi_set_timeout()
591 int rv; in ipmi_heartbeat() local
634 rv = ipmi_request_supply_msgs(watchdog_user, in ipmi_heartbeat()
642 if (rv) { in ipmi_heartbeat()
645 rv); in ipmi_heartbeat()
646 return rv; in ipmi_heartbeat()
657 rv = -EIO; in ipmi_heartbeat()
669 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB); in ipmi_heartbeat()
670 if (rv) { in ipmi_heartbeat()
684 rv = -EINVAL; in ipmi_heartbeat()
690 return rv; in ipmi_heartbeat()
786 int rv; in ipmi_write() local
804 rv = ipmi_heartbeat(); in ipmi_write()
805 if (rv) in ipmi_write()
806 return rv; in ipmi_write()
816 int rv = 0; in ipmi_read() local
829 rv = -EAGAIN; in ipmi_read()
844 rv = -ERESTARTSYS; in ipmi_read()
853 if (rv == 0) { in ipmi_read()
855 rv = -EFAULT; in ipmi_read()
857 rv = 1; in ipmi_read()
860 return rv; in ipmi_read()
989 int rv = -EBUSY; in ipmi_register_watchdog() local
999 rv = ipmi_create_user(ipmi_intf, &ipmi_hndlrs, NULL, &watchdog_user); in ipmi_register_watchdog()
1000 if (rv < 0) { in ipmi_register_watchdog()
1009 rv = misc_register(&ipmi_wdog_miscdev); in ipmi_register_watchdog()
1010 if (rv < 0) { in ipmi_register_watchdog()
1033 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_FORCE_HB); in ipmi_register_watchdog()
1034 if (rv) { in ipmi_register_watchdog()
1037 " likely not work\n", rv); in ipmi_register_watchdog()
1038 rv = 0; in ipmi_register_watchdog()
1058 if ((start_now) && (rv == 0)) { in ipmi_register_watchdog()
1073 int rv; in ipmi_unregister_watchdog() local
1093 rv = ipmi_destroy_user(watchdog_user); in ipmi_unregister_watchdog()
1094 if (rv) { in ipmi_unregister_watchdog()
1096 rv); in ipmi_unregister_watchdog()
1293 int rv; in check_parms() local
1306 rv = register_nmi_handler(NMI_UNKNOWN, ipmi_nmi, 0, in check_parms()
1308 if (rv) { in check_parms()
1323 int rv; in ipmi_wdog_init() local
1349 rv = ipmi_smi_watcher_register(&smi_watcher); in ipmi_wdog_init()
1350 if (rv) { in ipmi_wdog_init()
1359 return rv; in ipmi_wdog_init()