• Home
  • Raw
  • Download

Lines Matching refs:rv

119 	int                      rv;  in ipmi_open()  local
130 rv = ipmi_create_user(if_num, in ipmi_open()
134 if (rv) { in ipmi_open()
153 return rv; in ipmi_open()
159 int rv; in ipmi_release() local
161 rv = ipmi_destroy_user(priv->user); in ipmi_release()
162 if (rv) in ipmi_release()
163 return rv; in ipmi_release()
176 int rv; in handle_send_req() local
196 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req()
197 if (rv) in handle_send_req()
202 rv = -EMSGSIZE; in handle_send_req()
210 rv = -EFAULT; in handle_send_req()
217 rv = ipmi_request_settime(user, in handle_send_req()
227 return rv; in handle_send_req()
234 int rv = -EINVAL; in ipmi_ioctl() local
245 rv = -EFAULT; in ipmi_ioctl()
249 rv = handle_send_req(priv->user, in ipmi_ioctl()
261 rv = -EFAULT; in ipmi_ioctl()
265 rv = handle_send_req(priv->user, in ipmi_ioctl()
282 rv = 0; in ipmi_ioctl()
284 rv = -EFAULT; in ipmi_ioctl()
302 rv = -EAGAIN; in ipmi_ioctl()
313 rv = -EINVAL; in ipmi_ioctl()
318 rv = -EFAULT; in ipmi_ioctl()
330 rv = -EMSGSIZE; in ipmi_ioctl()
342 rv = -EFAULT; in ipmi_ioctl()
351 rv = -EFAULT; in ipmi_ioctl()
378 rv = -EFAULT; in ipmi_ioctl()
382 rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl()
392 rv = -EFAULT; in ipmi_ioctl()
396 rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl()
406 rv = -EFAULT; in ipmi_ioctl()
410 rv = ipmi_register_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl()
420 rv = -EFAULT; in ipmi_ioctl()
424 rv = ipmi_unregister_for_cmd(priv->user, val.netfn, val.cmd, in ipmi_ioctl()
434 rv = -EFAULT; in ipmi_ioctl()
438 rv = ipmi_set_gets_events(priv->user, val); in ipmi_ioctl()
448 rv = -EFAULT; in ipmi_ioctl()
452 rv = ipmi_set_my_address(priv->user, 0, val); in ipmi_ioctl()
461 rv = ipmi_get_my_address(priv->user, 0, &rval); in ipmi_ioctl()
462 if (rv) in ipmi_ioctl()
468 rv = -EFAULT; in ipmi_ioctl()
479 rv = -EFAULT; in ipmi_ioctl()
483 rv = ipmi_set_my_LUN(priv->user, 0, val); in ipmi_ioctl()
492 rv = ipmi_get_my_LUN(priv->user, 0, &rval); in ipmi_ioctl()
493 if (rv) in ipmi_ioctl()
499 rv = -EFAULT; in ipmi_ioctl()
510 rv = -EFAULT; in ipmi_ioctl()
523 rv = -EFAULT; in ipmi_ioctl()
527 rv = ipmi_get_my_address(priv->user, val.channel, &val.value); in ipmi_ioctl()
528 if (rv) in ipmi_ioctl()
532 rv = -EFAULT; in ipmi_ioctl()
543 rv = -EFAULT; in ipmi_ioctl()
547 rv = ipmi_set_my_LUN(priv->user, val.channel, val.value); in ipmi_ioctl()
556 rv = -EFAULT; in ipmi_ioctl()
560 rv = ipmi_get_my_LUN(priv->user, val.channel, &val.value); in ipmi_ioctl()
561 if (rv) in ipmi_ioctl()
565 rv = -EFAULT; in ipmi_ioctl()
576 rv = -EFAULT; in ipmi_ioctl()
582 rv = 0; in ipmi_ioctl()
594 rv = -EFAULT; in ipmi_ioctl()
598 rv = 0; in ipmi_ioctl()
608 rv = -EFAULT; in ipmi_ioctl()
611 rv = 0; in ipmi_ioctl()
620 rv = -EFAULT; in ipmi_ioctl()
623 rv = ipmi_set_maintenance_mode(priv->user, mode); in ipmi_ioctl()
628 return rv; in ipmi_ioctl()
932 int rv; in init_ipmi_devintf() local
945 rv = register_chrdev(ipmi_major, DEVICE_NAME, &ipmi_fops); in init_ipmi_devintf()
946 if (rv < 0) { in init_ipmi_devintf()
949 return rv; in init_ipmi_devintf()
953 ipmi_major = rv; in init_ipmi_devintf()
956 rv = ipmi_smi_watcher_register(&smi_watcher); in init_ipmi_devintf()
957 if (rv) { in init_ipmi_devintf()
961 return rv; in init_ipmi_devintf()