• Home
  • Raw
  • Download

Lines Matching refs:rv

345 	int              rv;  in start_next_msg()  local
360 rv = SI_SM_IDLE; in start_next_msg()
375 rv = SI_SM_CALL_WITHOUT_DELAY; in start_next_msg()
385 rv = SI_SM_CALL_WITHOUT_DELAY; in start_next_msg()
388 return rv; in start_next_msg()
1345 int rv; in std_irq_setup() local
1351 rv = request_irq(info->irq, in std_irq_setup()
1356 if (!rv) in std_irq_setup()
1361 rv = request_irq(info->irq, in std_irq_setup()
1366 if (rv) { in std_irq_setup()
1376 return rv; in std_irq_setup()
1705 int rv; in hotmod_handler() local
1744 rv = parse_str(hotmod_ops, &ival, "operation", &curr); in hotmod_handler()
1745 if (rv) in hotmod_handler()
1749 rv = parse_str(hotmod_si, &ival, "interface type", &curr); in hotmod_handler()
1750 if (rv) in hotmod_handler()
1754 rv = parse_str(hotmod_as, &addr_space, "address space", &curr); in hotmod_handler()
1755 if (rv) in hotmod_handler()
1782 rv = check_hotmod_int_op(curr, o, "rsp", &regspacing); in hotmod_handler()
1783 if (rv < 0) in hotmod_handler()
1785 else if (rv) in hotmod_handler()
1787 rv = check_hotmod_int_op(curr, o, "rsi", &regsize); in hotmod_handler()
1788 if (rv < 0) in hotmod_handler()
1790 else if (rv) in hotmod_handler()
1792 rv = check_hotmod_int_op(curr, o, "rsh", &regshift); in hotmod_handler()
1793 if (rv < 0) in hotmod_handler()
1795 else if (rv) in hotmod_handler()
1797 rv = check_hotmod_int_op(curr, o, "irq", &irq); in hotmod_handler()
1798 if (rv < 0) in hotmod_handler()
1800 else if (rv) in hotmod_handler()
1802 rv = check_hotmod_int_op(curr, o, "ipmb", &ipmb); in hotmod_handler()
1803 if (rv < 0) in hotmod_handler()
1805 else if (rv) in hotmod_handler()
1808 rv = -EINVAL; in hotmod_handler()
1818 rv = -ENOMEM; in hotmod_handler()
1866 rv = len; in hotmod_handler()
1869 return rv; in hotmod_handler()
2428 int rv; in dmi_find_bmc() local
2432 rv = decode_dmi((const struct dmi_header *) dev->device_data, in dmi_find_bmc()
2434 if (!rv) in dmi_find_bmc()
2495 int rv; in ipmi_pci_probe() local
2525 rv = pci_enable_device(pdev); in ipmi_pci_probe()
2526 if (rv) { in ipmi_pci_probe()
2529 return rv; in ipmi_pci_probe()
2732 int rv = 0; in try_get_dev_id() local
2746 rv = wait_for_msg_done(smi_info); in try_get_dev_id()
2747 if (rv) in try_get_dev_id()
2754 rv = ipmi_demangle_device_id(resp, resp_len, &smi_info->device_id); in try_get_dev_id()
2758 return rv; in try_get_dev_id()
2766 int rv = 0; in try_enable_event_buffer() local
2776 rv = wait_for_msg_done(smi_info); in try_enable_event_buffer()
2777 if (rv) { in try_enable_event_buffer()
2793 rv = -EINVAL; in try_enable_event_buffer()
2806 rv = wait_for_msg_done(smi_info); in try_enable_event_buffer()
2807 if (rv) { in try_enable_event_buffer()
2822 rv = -EINVAL; in try_enable_event_buffer()
2831 rv = -ENOENT; in try_enable_event_buffer()
2834 return rv; in try_enable_event_buffer()
3155 int rv = 0; in add_smi() local
3163 rv = -EBUSY; in add_smi()
3178 return rv; in add_smi()
3183 int rv = 0; in try_smi_init() local
3210 rv = -EIO; in try_smi_init()
3219 rv = -ENOMEM; in try_smi_init()
3226 rv = new_smi->io_setup(new_smi); in try_smi_init()
3227 if (rv) { in try_smi_init()
3236 rv = -ENODEV; in try_smi_init()
3244 rv = try_get_dev_id(new_smi); in try_smi_init()
3245 if (rv) { in try_smi_init()
3268 rv = try_enable_event_buffer(new_smi); in try_smi_init()
3269 if (rv == 0) in try_smi_init()
3296 rv = platform_device_add(new_smi->pdev); in try_smi_init()
3297 if (rv) { in try_smi_init()
3301 rv); in try_smi_init()
3307 rv = ipmi_register_smi(&handlers, in try_smi_init()
3313 if (rv) { in try_smi_init()
3315 rv); in try_smi_init()
3319 rv = ipmi_smi_add_proc_entry(new_smi->intf, "type", in try_smi_init()
3322 if (rv) { in try_smi_init()
3323 dev_err(new_smi->dev, "Unable to create proc entry: %d\n", rv); in try_smi_init()
3327 rv = ipmi_smi_add_proc_entry(new_smi->intf, "si_stats", in try_smi_init()
3330 if (rv) { in try_smi_init()
3331 dev_err(new_smi->dev, "Unable to create proc entry: %d\n", rv); in try_smi_init()
3335 rv = ipmi_smi_add_proc_entry(new_smi->intf, "params", in try_smi_init()
3338 if (rv) { in try_smi_init()
3339 dev_err(new_smi->dev, "Unable to create proc entry: %d\n", rv); in try_smi_init()
3392 return rv; in try_smi_init()
3399 int rv; in init_ipmi_si() local
3408 rv = platform_driver_register(&ipmi_driver); in init_ipmi_si()
3409 if (rv) { in init_ipmi_si()
3411 "driver: %d\n", rv); in init_ipmi_si()
3412 return rv; in init_ipmi_si()
3439 rv = pci_register_driver(&ipmi_pci_driver); in init_ipmi_si()
3440 if (rv) in init_ipmi_si()
3442 "PCI driver: %d\n", rv); in init_ipmi_si()
3528 int rv = 0; in cleanup_one_si() local
3573 rv = ipmi_unregister_smi(to_clean->intf); in cleanup_one_si()
3575 if (rv) { in cleanup_one_si()
3577 rv); in cleanup_one_si()