Lines Matching refs:rv
52 int rv = param_set_int(val, kp); in set_param_ifnum() local
53 if (rv) in set_param_ifnum()
54 return rv; in set_param_ifnum()
122 int rv; in ipmi_request_wait_for_response() local
127 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, in ipmi_request_wait_for_response()
129 if (rv) in ipmi_request_wait_for_response()
130 return rv; in ipmi_request_wait_for_response()
142 int rv; in ipmi_request_in_rc_mode() local
145 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, NULL, in ipmi_request_in_rc_mode()
147 if (rv) { in ipmi_request_in_rc_mode()
149 return rv; in ipmi_request_in_rc_mode()
184 int rv; in pps_poweroff_atca() local
198 rv = ipmi_request_in_rc_mode(user, in pps_poweroff_atca()
201 if (rv && rv != IPMI_UNKNOWN_ERR_COMPLETION_CODE) in pps_poweroff_atca()
202 pr_err("Unable to send ATCA, IPMI error 0x%x\n", rv); in pps_poweroff_atca()
211 int rv; in ipmi_atca_detect() local
229 rv = ipmi_request_wait_for_response(user, in ipmi_atca_detect()
239 return !rv; in ipmi_atca_detect()
246 int rv; in ipmi_poweroff_atca() local
269 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_atca()
278 if (rv && rv != IPMI_UNKNOWN_ERR_COMPLETION_CODE) { in ipmi_poweroff_atca()
280 rv); in ipmi_poweroff_atca()
317 int rv; in ipmi_poweroff_cpi1() local
340 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_cpi1()
343 if (rv) in ipmi_poweroff_cpi1()
355 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_cpi1()
358 if (rv) in ipmi_poweroff_cpi1()
390 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_cpi1()
393 if (rv) in ipmi_poweroff_cpi1()
404 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_cpi1()
407 if (rv) in ipmi_poweroff_cpi1()
468 int rv; in ipmi_poweroff_chassis() local
493 rv = ipmi_request_in_rc_mode(user, in ipmi_poweroff_chassis()
496 if (rv) { in ipmi_poweroff_chassis()
500 rv); in ipmi_poweroff_chassis()
506 rv); in ipmi_poweroff_chassis()
556 int rv; in ipmi_po_new_smi() local
565 rv = ipmi_create_user(if_num, &ipmi_poweroff_handler, NULL, in ipmi_po_new_smi()
567 if (rv) { in ipmi_po_new_smi()
568 pr_err("could not create IPMI user, error %d\n", rv); in ipmi_po_new_smi()
586 rv = ipmi_request_wait_for_response(ipmi_user, in ipmi_po_new_smi()
589 if (rv) { in ipmi_po_new_smi()
591 rv); in ipmi_po_new_smi()
670 int rv; in ipmi_poweroff_init() local
681 rv = -ENOMEM; in ipmi_poweroff_init()
686 rv = ipmi_smi_watcher_register(&smi_watcher); in ipmi_poweroff_init()
689 if (rv) { in ipmi_poweroff_init()
691 pr_err("Unable to register SMI watcher: %d\n", rv); in ipmi_poweroff_init()
697 return rv; in ipmi_poweroff_init()
703 int rv; in ipmi_poweroff_cleanup() local
712 rv = ipmi_destroy_user(ipmi_user); in ipmi_poweroff_cleanup()
713 if (rv) in ipmi_poweroff_cleanup()
714 pr_err("could not cleanup the IPMI user: 0x%x\n", rv); in ipmi_poweroff_cleanup()