Lines Matching refs:rv
750 int rv = 0; in intf_next_seq() local
776 rv = -EAGAIN; in intf_next_seq()
779 return rv; in intf_next_seq()
797 int rv = -ENODEV; in intf_find_seq() local
812 rv = 0; in intf_find_seq()
817 return rv; in intf_find_seq()
825 int rv = -ENODEV; in intf_start_seq_timer() local
842 rv = 0; in intf_start_seq_timer()
846 return rv; in intf_start_seq_timer()
854 int rv = -ENODEV; in intf_err_seq() local
874 rv = 0; in intf_err_seq()
881 return rv; in intf_err_seq()
892 int rv = 0; in ipmi_create_user() local
911 rv = ipmi_init_msghandler(); in ipmi_create_user()
912 if (rv) in ipmi_create_user()
913 return rv; in ipmi_create_user()
933 rv = -EINVAL; in ipmi_create_user()
947 rv = -ENODEV; in ipmi_create_user()
952 rv = intf->handlers->inc_usecount(intf->send_info); in ipmi_create_user()
953 if (rv) { in ipmi_create_user()
977 return rv; in ipmi_create_user()
983 int rv = 0; in ipmi_get_smi_info() local
993 rv = -EINVAL; in ipmi_get_smi_info()
995 return rv; in ipmi_get_smi_info()
999 rv = -ENOSYS; in ipmi_get_smi_info()
1001 rv = handlers->get_smi_info(intf->send_info, data); in ipmi_get_smi_info()
1004 return rv; in ipmi_get_smi_info()
1150 int rv = 0; in ipmi_set_maintenance_mode() local
1174 rv = -EINVAL; in ipmi_set_maintenance_mode()
1183 return rv; in ipmi_set_maintenance_mode()
1274 int rv = 0; in ipmi_register_for_cmd() local
1288 rv = -EBUSY; in ipmi_register_for_cmd()
1296 if (rv) in ipmi_register_for_cmd()
1299 return rv; in ipmi_register_for_cmd()
1311 int i, rv = -ENOENT; in ipmi_unregister_for_cmd() local
1321 rv = 0; in ipmi_unregister_for_cmd()
1337 return rv; in ipmi_unregister_for_cmd()
1455 int rv = 0; in i_ipmi_request() local
1484 rv = -ENODEV; in i_ipmi_request()
1503 rv = -EINVAL; in i_ipmi_request()
1510 rv = -EINVAL; in i_ipmi_request()
1525 rv = -EINVAL; in i_ipmi_request()
1547 rv = -EMSGSIZE; in i_ipmi_request()
1567 rv = -EINVAL; in i_ipmi_request()
1574 rv = -EINVAL; in i_ipmi_request()
1605 rv = -EMSGSIZE; in i_ipmi_request()
1612 rv = -EINVAL; in i_ipmi_request()
1642 rv = intf_next_seq(intf, in i_ipmi_request()
1649 if (rv) { in i_ipmi_request()
1697 rv = -EINVAL; in i_ipmi_request()
1706 rv = -EINVAL; in i_ipmi_request()
1719 rv = -EMSGSIZE; in i_ipmi_request()
1726 rv = -EINVAL; in i_ipmi_request()
1755 rv = intf_next_seq(intf, in i_ipmi_request()
1762 if (rv) { in i_ipmi_request()
1805 rv = -EINVAL; in i_ipmi_request()
1827 return rv; in i_ipmi_request()
1852 int rv; in ipmi_request_settime() local
1856 rv = check_addr(user->intf, addr, &saddr, &lun); in ipmi_request_settime()
1857 if (rv) in ipmi_request_settime()
1858 return rv; in ipmi_request_settime()
1884 int rv; in ipmi_request_supply_msgs() local
1888 rv = check_addr(user->intf, addr, &saddr, &lun); in ipmi_request_supply_msgs()
1889 if (rv) in ipmi_request_supply_msgs()
1890 return rv; in ipmi_request_supply_msgs()
2031 int rv = 0; in ipmi_smi_add_proc_entry() local
2050 rv = -ENOMEM; in ipmi_smi_add_proc_entry()
2060 return rv; in ipmi_smi_add_proc_entry()
2066 int rv = 0; in add_proc_entries() local
2072 rv = -ENOMEM; in add_proc_entries()
2074 if (rv == 0) in add_proc_entries()
2075 rv = ipmi_smi_add_proc_entry(smi, "stats", in add_proc_entries()
2079 if (rv == 0) in add_proc_entries()
2080 rv = ipmi_smi_add_proc_entry(smi, "ipmb", in add_proc_entries()
2084 if (rv == 0) in add_proc_entries()
2085 rv = ipmi_smi_add_proc_entry(smi, "version", in add_proc_entries()
2090 return rv; in add_proc_entries()
2461 int rv; in ipmi_bmc_register() local
2540 rv = platform_device_add(bmc->dev); in ipmi_bmc_register()
2542 if (rv) { in ipmi_bmc_register()
2548 rv); in ipmi_bmc_register()
2553 return rv; in ipmi_bmc_register()
2556 rv = create_files(bmc); in ipmi_bmc_register()
2557 if (rv) { in ipmi_bmc_register()
2562 return rv; in ipmi_bmc_register()
2578 rv = -ENOMEM; in ipmi_bmc_register()
2581 rv); in ipmi_bmc_register()
2585 rv = sysfs_create_link(&intf->si_dev->kobj, in ipmi_bmc_register()
2587 if (rv) { in ipmi_bmc_register()
2592 rv); in ipmi_bmc_register()
2601 rv = -ENOMEM; in ipmi_bmc_register()
2604 rv); in ipmi_bmc_register()
2609 rv = sysfs_create_link(&bmc->dev->dev.kobj, &intf->si_dev->kobj, in ipmi_bmc_register()
2611 if (rv) { in ipmi_bmc_register()
2619 rv); in ipmi_bmc_register()
2627 return rv; in ipmi_bmc_register()
2692 int rv; in get_guid() local
2696 rv = send_guid_cmd(intf, 0); in get_guid()
2697 if (rv) in get_guid()
2737 int rv = 0; in channel_handler() local
2758 rv = -ENOSYS; in channel_handler()
2779 rv = send_channel_info_cmd(intf, intf->curr_channel); in channel_handler()
2781 if (rv) { in channel_handler()
2788 rv); in channel_handler()
2817 int rv; in ipmi_register_smi() local
2827 rv = ipmi_init_msghandler(); in ipmi_register_smi()
2828 if (rv) in ipmi_register_smi()
2829 return rv; in ipmi_register_smi()
2908 rv = handlers->start_processing(send_info, intf); in ipmi_register_smi()
2909 if (rv) in ipmi_register_smi()
2923 rv = send_channel_info_cmd(intf, 0); in ipmi_register_smi()
2924 if (rv) in ipmi_register_smi()
2938 if (rv == 0) in ipmi_register_smi()
2939 rv = add_proc_entries(intf, i); in ipmi_register_smi()
2941 rv = ipmi_bmc_register(intf, i, sysfs_name); in ipmi_register_smi()
2944 if (rv) { in ipmi_register_smi()
2967 return rv; in ipmi_register_smi()
3084 int rv = 0; in handle_ipmb_get_msg_cmd() local
3153 rv = -1; in handle_ipmb_get_msg_cmd()
3167 rv = 1; in handle_ipmb_get_msg_cmd()
3200 return rv; in handle_ipmb_get_msg_cmd()
3274 int rv = 0; in handle_lan_get_msg_cmd() local
3314 rv = 0; in handle_lan_get_msg_cmd()
3325 rv = 1; in handle_lan_get_msg_cmd()
3361 return rv; in handle_lan_get_msg_cmd()
3374 int rv = 0; in handle_oem_get_msg_cmd() local
3423 rv = 0; in handle_oem_get_msg_cmd()
3435 rv = 1; in handle_oem_get_msg_cmd()
3469 return rv; in handle_oem_get_msg_cmd()
3496 int rv = 0; in handle_read_event_rsp() local
3539 rv = 1; in handle_read_event_rsp()
3570 rv = 1; in handle_read_event_rsp()
3590 return rv; in handle_read_event_rsp()
3809 int rv; in handle_new_recv_msgs() local
3821 rv = handle_one_recv_msg(intf, smi_msg); in handle_new_recv_msgs()
3824 if (rv == 0) { in handle_new_recv_msgs()
3827 } else if (rv < 0) { in handle_new_recv_msgs()
4167 struct ipmi_smi_msg *rv; in ipmi_alloc_smi_msg() local
4168 rv = kmalloc(sizeof(struct ipmi_smi_msg), GFP_ATOMIC); in ipmi_alloc_smi_msg()
4169 if (rv) { in ipmi_alloc_smi_msg()
4170 rv->done = free_smi_msg; in ipmi_alloc_smi_msg()
4171 rv->user_data = NULL; in ipmi_alloc_smi_msg()
4174 return rv; in ipmi_alloc_smi_msg()
4186 struct ipmi_recv_msg *rv; in ipmi_alloc_recv_msg() local
4188 rv = kmalloc(sizeof(struct ipmi_recv_msg), GFP_ATOMIC); in ipmi_alloc_recv_msg()
4189 if (rv) { in ipmi_alloc_recv_msg()
4190 rv->user = NULL; in ipmi_alloc_recv_msg()
4191 rv->done = free_recv_msg; in ipmi_alloc_recv_msg()
4194 return rv; in ipmi_alloc_recv_msg()
4228 int rv; in ipmi_panic_request_and_wait() local
4233 rv = i_ipmi_request(NULL, in ipmi_panic_request_and_wait()
4245 if (rv) in ipmi_panic_request_and_wait()
4481 int rv; in ipmi_init_msghandler() local
4486 rv = driver_register(&ipmidriver.driver); in ipmi_init_msghandler()
4487 if (rv) { in ipmi_init_msghandler()
4489 return rv; in ipmi_init_msghandler()