/drivers/char/ipmi/ |
D | ipmi_poweroff.c | 71 int rv = param_set_int(val, kp); in set_param_ifnum() local 72 if (rv) in set_param_ifnum() 73 return rv; in set_param_ifnum() 145 int rv; in ipmi_request_wait_for_response() local 150 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, &comp, in ipmi_request_wait_for_response() 152 if (rv) in ipmi_request_wait_for_response() 153 return rv; in ipmi_request_wait_for_response() 165 int rv; in ipmi_request_in_rc_mode() local 168 rv = ipmi_request_supply_msgs(user, addr, 0, send_msg, NULL, in ipmi_request_in_rc_mode() 170 if (rv) { in ipmi_request_in_rc_mode() [all …]
|
D | ipmi_devintf.c | 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 162 rv = ipmi_destroy_user(priv->user); in ipmi_release() 163 if (rv) in ipmi_release() 164 return rv; in ipmi_release() 180 int rv; in handle_send_req() local 200 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req() [all …]
|
D | ipmi_watchdog.c | 199 int rv = 0; in set_param_timeout() local 209 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout() 211 return rv; in set_param_timeout() 230 int rv = 0; in set_param_str() local 239 rv = fn(s, NULL); in set_param_str() 240 if (rv) in set_param_str() 245 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_str() 248 return rv; in set_param_str() 254 int rv; in get_param_str() local 256 rv = fn(NULL, buffer); in get_param_str() [all …]
|
D | ipmi_si_intf.c | 390 int rv; in start_next_msg() local 394 rv = SI_SM_IDLE; in start_next_msg() 404 rv = SI_SM_CALL_WITHOUT_DELAY; in start_next_msg() 414 rv = SI_SM_CALL_WITHOUT_DELAY; in start_next_msg() 417 return rv; in start_next_msg() 1440 int rv; in std_irq_setup() local 1446 rv = request_irq(info->irq, in std_irq_setup() 1451 if (!rv) in std_irq_setup() 1456 rv = request_irq(info->irq, in std_irq_setup() 1461 if (rv) { in std_irq_setup() [all …]
|
D | ipmi_ssif.c | 537 int rv; in start_get() local 542 rv = ssif_i2c_send(ssif_info, msg_done_handler, I2C_SMBUS_READ, in start_get() 545 if (rv < 0) { in start_get() 605 int rv; in msg_done_handler() local 648 rv = ssif_i2c_send(ssif_info, msg_done_handler, I2C_SMBUS_READ, in msg_done_handler() 651 if (rv < 0) { in msg_done_handler() 703 rv = ssif_i2c_send(ssif_info, msg_done_handler, in msg_done_handler() 708 if (rv < 0) { in msg_done_handler() 862 int rv; in msg_written_handler() local 922 rv = ssif_i2c_send(ssif_info, msg_written_handler, in msg_written_handler() [all …]
|
D | ipmi_msghandler.c | 784 int rv = 0; in intf_next_seq() local 811 rv = -EAGAIN; in intf_next_seq() 814 return rv; in intf_next_seq() 832 int rv = -ENODEV; in intf_find_seq() local 847 rv = 0; in intf_find_seq() 852 return rv; in intf_find_seq() 860 int rv = -ENODEV; in intf_start_seq_timer() local 877 rv = 0; in intf_start_seq_timer() 881 return rv; in intf_start_seq_timer() 889 int rv = -ENODEV; in intf_err_seq() local [all …]
|
/drivers/usb/class/ |
D | cdc-wdm.c | 233 int rv = 0; in wdm_int_callback() local 297 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback() 298 dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); in wdm_int_callback() 301 if (rv < 0) { in wdm_int_callback() 303 if (rv == -EPERM) in wdm_int_callback() 305 if (rv == -ENOMEM) { in wdm_int_callback() 307 rv = schedule_work(&desc->rxwork); in wdm_int_callback() 308 if (rv) in wdm_int_callback() 314 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback() 315 if (rv) in wdm_int_callback() [all …]
|
D | usbtmc.c | 180 int rv; in usbtmc_ioctl_abort_bulk_in() local 191 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 198 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in() 199 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in() 206 rv = 0; in usbtmc_ioctl_abort_bulk_in() 213 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in() 226 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in() 237 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 245 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in() 246 dev_err(dev, "usb_bulk_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in() [all …]
|
/drivers/char/tpm/ |
D | xen-tpmfront.c | 197 int rv; in setup_ring() local 206 rv = xenbus_grant_ring(dev, &priv->shr, 1, &gref); in setup_ring() 207 if (rv < 0) in setup_ring() 208 return rv; in setup_ring() 212 rv = xenbus_alloc_evtchn(dev, &priv->evtchn); in setup_ring() 213 if (rv) in setup_ring() 214 return rv; in setup_ring() 216 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0, in setup_ring() 218 if (rv <= 0) { in setup_ring() 219 xenbus_dev_fatal(dev, rv, "allocating TPM irq"); in setup_ring() [all …]
|
/drivers/firmware/efi/test/ |
D | efi_test.c | 165 int rv = 0; in efi_runtime_get_variable() local 183 rv = copy_ucs2_from_user(&name, getvariable.variable_name); in efi_runtime_get_variable() 184 if (rv) in efi_runtime_get_variable() 185 return rv; in efi_runtime_get_variable() 204 rv = -EFAULT; in efi_runtime_get_variable() 211 rv = -EFAULT; in efi_runtime_get_variable() 215 rv = -EINVAL; in efi_runtime_get_variable() 220 rv = -EINVAL; in efi_runtime_get_variable() 226 rv = -EFAULT; in efi_runtime_get_variable() 232 rv = -EFAULT; in efi_runtime_get_variable() [all …]
|
/drivers/hid/intel-ish-hid/ |
D | ishtp-hid-client.c | 371 int rv; in hid_ishtp_set_feature() local 376 rv = ishtp_hid_link_ready_wait(client_data); in hid_ishtp_set_feature() 377 if (rv) { in hid_ishtp_set_feature() 396 rv = ishtp_cl_send(client_data->hid_ishtp_cl, buf, len); in hid_ishtp_set_feature() 397 if (rv) in hid_ishtp_set_feature() 419 int rv; in hid_ishtp_get_report() local 423 rv = ishtp_hid_link_ready_wait(client_data); in hid_ishtp_get_report() 424 if (rv) { in hid_ishtp_get_report() 447 rv = ishtp_cl_send(client_data->hid_ishtp_cl, buf, len); in hid_ishtp_get_report() 448 if (rv) in hid_ishtp_get_report() [all …]
|
D | ishtp-hid.c | 33 int rv; in ishtp_hid_parse() local 35 rv = hid_parse_report(hid, client_data->report_descr[hid_data->index], in ishtp_hid_parse() 37 if (rv) in ishtp_hid_parse() 38 return rv; in ishtp_hid_parse() 120 int rv; in ishtp_wait_for_response() local 124 rv = ishtp_hid_link_ready_wait(hid_data->client_data); in ishtp_wait_for_response() 125 if (rv) in ishtp_wait_for_response() 126 return rv; in ishtp_wait_for_response() 181 int rv; in ishtp_hid_probe() local 187 rv = PTR_ERR(hid); in ishtp_hid_probe() [all …]
|
/drivers/hwmon/ |
D | max31790.c | 82 int rv; in max31790_update_device() local 87 rv = i2c_smbus_read_byte_data(client, in max31790_update_device() 89 if (rv < 0) in max31790_update_device() 91 data->fault_status = rv & 0x3F; in max31790_update_device() 93 rv = i2c_smbus_read_byte_data(client, in max31790_update_device() 95 if (rv < 0) in max31790_update_device() 97 data->fault_status |= (rv & 0x3F) << 6; in max31790_update_device() 100 rv = i2c_smbus_read_word_swapped(client, in max31790_update_device() 102 if (rv < 0) in max31790_update_device() 104 data->tach[i] = rv; in max31790_update_device() [all …]
|
D | lm80.c | 174 int rv; in lm80_update_device() local 186 rv = lm80_read_value(client, LM80_REG_IN(i)); in lm80_update_device() 187 if (rv < 0) in lm80_update_device() 189 data->in[i_input][i] = rv; in lm80_update_device() 191 rv = lm80_read_value(client, LM80_REG_IN_MIN(i)); in lm80_update_device() 192 if (rv < 0) in lm80_update_device() 194 data->in[i_min][i] = rv; in lm80_update_device() 196 rv = lm80_read_value(client, LM80_REG_IN_MAX(i)); in lm80_update_device() 197 if (rv < 0) in lm80_update_device() 199 data->in[i_max][i] = rv; in lm80_update_device() [all …]
|
D | adc128d818.c | 85 int i, rv; in adc128_update_device() local 91 rv = i2c_smbus_read_word_swapped(client, in adc128_update_device() 93 if (rv < 0) in adc128_update_device() 95 data->in[0][i] = rv >> 4; in adc128_update_device() 97 rv = i2c_smbus_read_byte_data(client, in adc128_update_device() 99 if (rv < 0) in adc128_update_device() 101 data->in[1][i] = rv << 4; in adc128_update_device() 103 rv = i2c_smbus_read_byte_data(client, in adc128_update_device() 105 if (rv < 0) in adc128_update_device() 107 data->in[2][i] = rv << 4; in adc128_update_device() [all …]
|
/drivers/block/drbd/ |
D | drbd_state.c | 309 bool rv = true; in conn_all_vols_unconf() local 318 rv = false; in conn_all_vols_unconf() 324 return rv; in conn_all_vols_unconf() 447 bool rv = true; in no_peer_wf_report_params() local 452 rv = false; in no_peer_wf_report_params() 457 return rv; in no_peer_wf_report_params() 506 enum drbd_state_rv rv; in drbd_change_state() local 510 rv = _drbd_set_state(device, ns, f, NULL); in drbd_change_state() 513 return rv; in drbd_change_state() 534 enum drbd_state_rv rv; in _req_st_cond() local [all …]
|
/drivers/scsi/csiostor/ |
D | csio_init.c | 200 int rv = -ENODEV; in csio_pci_init() local 229 return rv; in csio_pci_init() 269 int rv; in csio_create_queues() local 276 rv = csio_wr_iq_create(hw, NULL, hw->intr_iq_idx, in csio_create_queues() 278 if (rv != 0) { in csio_create_queues() 279 csio_err(hw, " Forward Interrupt IQ failed!: %d\n", rv); in csio_create_queues() 280 return rv; in csio_create_queues() 285 rv = csio_wr_iq_create(hw, NULL, hw->fwevt_iq_idx, in csio_create_queues() 288 if (rv != 0) { in csio_create_queues() 289 csio_err(hw, "FW event IQ config failed!: %d\n", rv); in csio_create_queues() [all …]
|
D | csio_isr.c | 48 int rv; in csio_nondata_isr() local 61 rv = csio_mb_isr_handler(hw); in csio_nondata_isr() 63 if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { in csio_nondata_isr() 83 int rv; in csio_fwevt_handler() local 86 rv = csio_fwevtq_handler(hw); in csio_fwevt_handler() 89 if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { in csio_fwevt_handler() 306 int rv; in csio_fcoe_isr() local 339 rv = csio_mb_isr_handler(hw); in csio_fcoe_isr() 340 if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { in csio_fcoe_isr() 383 int rv, i, j, k = 0; in csio_request_irqs() local [all …]
|
D | csio_hw.c | 824 int rv = 0; in csio_do_hello() local 834 rv = -ENOMEM; in csio_do_hello() 843 rv = csio_mb_issue(hw, mbp); in csio_do_hello() 844 if (rv) { in csio_do_hello() 845 csio_err(hw, "failed to issue HELLO cmd. ret:%d.\n", rv); in csio_do_hello() 852 rv = -EINVAL; in csio_do_hello() 902 rv = -ETIMEDOUT; in csio_do_hello() 915 rv = -ETIMEDOUT; in csio_do_hello() 959 return rv; in csio_do_hello() 1352 int rv = -EINVAL; in csio_config_device_caps() local [all …]
|
/drivers/usb/ |
D | usb-skeleton.c | 191 int rv; in skel_do_read_io() local 212 rv = usb_submit_urb(dev->bulk_in_urb, GFP_KERNEL); in skel_do_read_io() 213 if (rv < 0) { in skel_do_read_io() 216 __func__, rv); in skel_do_read_io() 217 rv = (rv == -ENOMEM) ? rv : -EIO; in skel_do_read_io() 223 return rv; in skel_do_read_io() 230 int rv; in skel_read() local 240 rv = mutex_lock_interruptible(&dev->io_mutex); in skel_read() 241 if (rv < 0) in skel_read() 242 return rv; in skel_read() [all …]
|
/drivers/block/mtip32xx/ |
D | mtip32xx.c | 524 int rv = 0; in mtip_device_reset() local 530 rv = -EFAULT; in mtip_device_reset() 539 return rv; in mtip_device_reset() 608 int group, tag, bit, reissue, rv; in mtip_handle_tfe() local 680 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_handle_tfe() 683 if (rv) { in mtip_handle_tfe() 880 int rv = IRQ_NONE; in mtip_handle_irq() local 886 rv = IRQ_HANDLED; in mtip_handle_irq() 941 return rv; in mtip_handle_irq() 954 return rv; in mtip_handle_irq() [all …]
|
/drivers/usb/host/ |
D | ehci-ppc-of.c | 100 int rv; in ehci_hcd_ppc_of_probe() local 109 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_ppc_of_probe() 110 if (rv) in ehci_hcd_ppc_of_probe() 111 return rv; in ehci_hcd_ppc_of_probe() 124 rv = -EBUSY; in ehci_hcd_ppc_of_probe() 130 rv = PTR_ERR(hcd->regs); in ehci_hcd_ppc_of_probe() 164 rv = ppc44x_enable_bmt(dn); in ehci_hcd_ppc_of_probe() 166 rv ? "NOT ": ""); in ehci_hcd_ppc_of_probe() 169 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_ppc_of_probe() 170 if (rv) in ehci_hcd_ppc_of_probe() [all …]
|
D | ehci-grlib.c | 93 int rv; in ehci_hcd_grlib_probe() local 100 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_grlib_probe() 101 if (rv) in ehci_hcd_grlib_probe() 102 return rv; in ehci_hcd_grlib_probe() 118 rv = -EBUSY; in ehci_hcd_grlib_probe() 124 rv = PTR_ERR(hcd->regs); in ehci_hcd_grlib_probe() 140 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_grlib_probe() 141 if (rv) in ehci_hcd_grlib_probe() 152 return rv; in ehci_hcd_grlib_probe()
|
D | ehci-xilinx-of.c | 137 int rv; in ehci_hcd_xilinx_of_probe() local 145 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_xilinx_of_probe() 146 if (rv) in ehci_hcd_xilinx_of_probe() 147 return rv; in ehci_hcd_xilinx_of_probe() 161 rv = -EBUSY; in ehci_hcd_xilinx_of_probe() 167 rv = PTR_ERR(hcd->regs); in ehci_hcd_xilinx_of_probe() 195 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_xilinx_of_probe() 196 if (rv == 0) { in ehci_hcd_xilinx_of_probe() 204 return rv; in ehci_hcd_xilinx_of_probe()
|
D | uhci-grlib.c | 96 int rv; in uhci_hcd_grlib_probe() local 103 rv = of_address_to_resource(dn, 0, &res); in uhci_hcd_grlib_probe() 104 if (rv) in uhci_hcd_grlib_probe() 105 return rv; in uhci_hcd_grlib_probe() 120 rv = -EBUSY; in uhci_hcd_grlib_probe() 126 rv = PTR_ERR(hcd->regs); in uhci_hcd_grlib_probe() 134 rv = usb_add_hcd(hcd, irq, 0); in uhci_hcd_grlib_probe() 135 if (rv) in uhci_hcd_grlib_probe() 146 return rv; in uhci_hcd_grlib_probe()
|