Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 144) sorted by relevance

123456

/drivers/char/ipmi/
Dipmi_poweroff.c71 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 …]
Dipmi_devintf.c119 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()
[all …]
Dipmi_watchdog.c196 int rv = 0; in set_param_timeout() local
206 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_timeout()
208 return rv; in set_param_timeout()
227 int rv = 0; in set_param_str() local
236 rv = fn(s, NULL); in set_param_str()
237 if (rv) in set_param_str()
242 rv = ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY); in set_param_str()
245 return rv; in set_param_str()
251 int rv; in get_param_str() local
253 rv = fn(NULL, buffer); in get_param_str()
[all …]
Dipmi_msghandler.c750 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
[all …]
Dipmi_si_intf.c345 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()
[all …]
/drivers/usb/class/
Dcdc-wdm.c211 int rv = 0; in wdm_int_callback() local
268 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback()
270 __func__, rv); in wdm_int_callback()
273 if (rv < 0) { in wdm_int_callback()
275 if (rv == -EPERM) in wdm_int_callback()
277 if (rv == -ENOMEM) { in wdm_int_callback()
279 rv = schedule_work(&desc->rxwork); in wdm_int_callback()
280 if (rv) in wdm_int_callback()
286 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback()
287 if (rv) in wdm_int_callback()
[all …]
Dusbtmc.c147 int rv; in usbtmc_ioctl_abort_bulk_in() local
158 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
165 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
166 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
173 rv = 0; in usbtmc_ioctl_abort_bulk_in()
180 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
193 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
204 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
212 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
213 dev_err(dev, "usb_bulk_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
[all …]
/drivers/block/drbd/
Ddrbd_state.c69 bool rv = true; in conn_all_vols_unconf() local
77 rv = false; in conn_all_vols_unconf()
83 return rv; in conn_all_vols_unconf()
193 bool rv = true; in no_peer_wf_report_params() local
198 rv = false; in no_peer_wf_report_params()
203 return rv; in no_peer_wf_report_params()
240 enum drbd_state_rv rv; in drbd_change_state() local
244 rv = _drbd_set_state(mdev, ns, f, NULL); in drbd_change_state()
247 return rv; in drbd_change_state()
268 enum drbd_state_rv rv; in _req_st_cond() local
[all …]
Ddrbd_receiver.c481 int rv; in drbd_recv_short() local
485 rv = sock_recvmsg(sock, &msg, size, msg.msg_flags); in drbd_recv_short()
488 return rv; in drbd_recv_short()
493 int rv; in drbd_recv() local
495 rv = drbd_recv_short(tconn->data.socket, buf, size, 0); in drbd_recv()
497 if (rv < 0) { in drbd_recv()
498 if (rv == -ECONNRESET) in drbd_recv()
500 else if (rv != -ERESTARTSYS) in drbd_recv()
501 conn_err(tconn, "sock_recvmsg returned %d\n", rv); in drbd_recv()
502 } else if (rv == 0) { in drbd_recv()
[all …]
/drivers/hwmon/
Dlm80.c620 int rv; in lm80_update_device() local
632 rv = lm80_read_value(client, LM80_REG_IN(i)); in lm80_update_device()
633 if (rv < 0) in lm80_update_device()
635 data->in[i] = rv; in lm80_update_device()
637 rv = lm80_read_value(client, LM80_REG_IN_MIN(i)); in lm80_update_device()
638 if (rv < 0) in lm80_update_device()
640 data->in_min[i] = rv; in lm80_update_device()
642 rv = lm80_read_value(client, LM80_REG_IN_MAX(i)); in lm80_update_device()
643 if (rv < 0) in lm80_update_device()
645 data->in_max[i] = rv; in lm80_update_device()
[all …]
Dsmm665.c164 int rv, val; in smm665_read16() local
166 rv = i2c_smbus_read_byte_data(client, reg); in smm665_read16()
167 if (rv < 0) in smm665_read16()
168 return rv; in smm665_read16()
169 val = rv << 8; in smm665_read16()
170 rv = i2c_smbus_read_byte_data(client, reg + 1); in smm665_read16()
171 if (rv < 0) in smm665_read16()
172 return rv; in smm665_read16()
173 val |= rv; in smm665_read16()
183 int rv; in smm665_read_adc() local
[all …]
/drivers/usb/
Dusb-skeleton.c192 int rv; in skel_do_read_io() local
213 rv = usb_submit_urb(dev->bulk_in_urb, GFP_KERNEL); in skel_do_read_io()
214 if (rv < 0) { in skel_do_read_io()
217 __func__, rv); in skel_do_read_io()
218 rv = (rv == -ENOMEM) ? rv : -EIO; in skel_do_read_io()
224 return rv; in skel_do_read_io()
231 int rv; in skel_read() local
241 rv = mutex_lock_interruptible(&dev->io_mutex); in skel_read()
242 if (rv < 0) in skel_read()
243 return rv; in skel_read()
[all …]
/drivers/scsi/csiostor/
Dcsio_init.c203 int rv = -ENODEV; in csio_pci_init() local
232 return rv; in csio_pci_init()
272 int rv; in csio_create_queues() local
279 rv = csio_wr_iq_create(hw, NULL, hw->intr_iq_idx, in csio_create_queues()
281 if (rv != 0) { in csio_create_queues()
282 csio_err(hw, " Forward Interrupt IQ failed!: %d\n", rv); in csio_create_queues()
283 return rv; in csio_create_queues()
288 rv = csio_wr_iq_create(hw, NULL, hw->fwevt_iq_idx, in csio_create_queues()
291 if (rv != 0) { in csio_create_queues()
292 csio_err(hw, "FW event IQ config failed!: %d\n", rv); in csio_create_queues()
[all …]
Dcsio_isr.c48 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 …]
Dcsio_hw.c907 int rv = 0; in csio_do_hello() local
918 rv = -ENOMEM; in csio_do_hello()
929 rv = csio_mb_issue(hw, mbp); in csio_do_hello()
930 if (rv) { in csio_do_hello()
931 csio_err(hw, "failed to issue HELLO cmd. ret:%d.\n", rv); in csio_do_hello()
938 rv = -EINVAL; in csio_do_hello()
988 rv = -ETIMEDOUT; in csio_do_hello()
1001 rv = -ETIMEDOUT; in csio_do_hello()
1045 return rv; in csio_do_hello()
1372 int rv = -EINVAL; in csio_hw_fw_config_file() local
[all …]
/drivers/usb/host/
Dehci-ppc-of.c98 int rv; in ehci_hcd_ppc_of_probe() local
107 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_ppc_of_probe()
108 if (rv) in ehci_hcd_ppc_of_probe()
109 return rv; in ehci_hcd_ppc_of_probe()
121 rv = -EBUSY; in ehci_hcd_ppc_of_probe()
127 rv = PTR_ERR(hcd->regs); in ehci_hcd_ppc_of_probe()
161 rv = ppc44x_enable_bmt(dn); in ehci_hcd_ppc_of_probe()
163 rv ? "NOT ": ""); in ehci_hcd_ppc_of_probe()
166 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_ppc_of_probe()
167 if (rv) in ehci_hcd_ppc_of_probe()
[all …]
Duhci-grlib.c95 int rv; in uhci_hcd_grlib_probe() local
102 rv = of_address_to_resource(dn, 0, &res); in uhci_hcd_grlib_probe()
103 if (rv) in uhci_hcd_grlib_probe()
104 return rv; in uhci_hcd_grlib_probe()
118 rv = -EBUSY; in uhci_hcd_grlib_probe()
125 rv = -EBUSY; in uhci_hcd_grlib_probe()
132 rv = -ENOMEM; in uhci_hcd_grlib_probe()
140 rv = usb_add_hcd(hcd, irq, 0); in uhci_hcd_grlib_probe()
141 if (rv) in uhci_hcd_grlib_probe()
155 return rv; in uhci_hcd_grlib_probe()
Dehci-xilinx-of.c136 int rv; in ehci_hcd_xilinx_of_probe() local
144 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_xilinx_of_probe()
145 if (rv) in ehci_hcd_xilinx_of_probe()
146 return rv; in ehci_hcd_xilinx_of_probe()
159 rv = -EBUSY; in ehci_hcd_xilinx_of_probe()
165 rv = PTR_ERR(hcd->regs); in ehci_hcd_xilinx_of_probe()
193 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_xilinx_of_probe()
194 if (rv == 0) in ehci_hcd_xilinx_of_probe()
200 return rv; in ehci_hcd_xilinx_of_probe()
Dehci-grlib.c93 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()
117 rv = -EBUSY; in ehci_hcd_grlib_probe()
123 rv = PTR_ERR(hcd->regs); in ehci_hcd_grlib_probe()
139 rv = usb_add_hcd(hcd, irq, 0); in ehci_hcd_grlib_probe()
140 if (rv) in ehci_hcd_grlib_probe()
150 return rv; in ehci_hcd_grlib_probe()
Dohci-ppc-of.c92 int rv; in ohci_hcd_ppc_of_probe() local
105 rv = of_address_to_resource(dn, 0, &res); in ohci_hcd_ppc_of_probe()
106 if (rv) in ohci_hcd_ppc_of_probe()
107 return rv; in ohci_hcd_ppc_of_probe()
118 rv = -EBUSY; in ohci_hcd_ppc_of_probe()
125 rv = -EBUSY; in ohci_hcd_ppc_of_probe()
132 rv = -ENOMEM; in ohci_hcd_ppc_of_probe()
147 rv = usb_add_hcd(hcd, irq, 0); in ohci_hcd_ppc_of_probe()
148 if (rv == 0) in ohci_hcd_ppc_of_probe()
183 return rv; in ohci_hcd_ppc_of_probe()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c683 int rv; in qlcnic_set_fw_loopback() local
693 rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); in qlcnic_set_fw_loopback()
694 if (rv != 0) in qlcnic_set_fw_loopback()
697 return rv; in qlcnic_set_fw_loopback()
738 int rv; in qlcnic_82xx_config_intr_coalesce() local
753 rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); in qlcnic_82xx_config_intr_coalesce()
754 if (rv != 0) in qlcnic_82xx_config_intr_coalesce()
768 int rv; in qlcnic_82xx_config_hw_lro() local
790 rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); in qlcnic_82xx_config_hw_lro()
791 if (rv != 0) in qlcnic_82xx_config_hw_lro()
[all …]
/drivers/block/mtip32xx/
Dmtip32xx.c528 int rv = 0; in mtip_device_reset() local
534 rv = -EFAULT; in mtip_device_reset()
543 return rv; in mtip_device_reset()
791 int group, tag, bit, reissue, rv; in mtip_handle_tfe() local
872 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_handle_tfe()
875 if (rv) { in mtip_handle_tfe()
1096 int rv = IRQ_NONE; in mtip_handle_irq() local
1102 rv = IRQ_HANDLED; in mtip_handle_irq()
1154 return rv; in mtip_handle_irq()
1167 return rv; in mtip_handle_irq()
[all …]
/drivers/media/usb/stkwebcam/
Dstk-sensor.c282 struct regval *rv) in stk_sensor_write_regvals() argument
285 if (rv == NULL) in stk_sensor_write_regvals()
287 while (rv->reg != 0xff || rv->val != 0xff) { in stk_sensor_write_regvals()
288 ret = stk_sensor_outb(dev, rv->reg, rv->val); in stk_sensor_write_regvals()
291 rv++; in stk_sensor_write_regvals()
509 struct regval *rv; in stk_sensor_configure() local
533 rv = ov_fmt_uyvy; in stk_sensor_configure()
537 rv = ov_fmt_yuyv; in stk_sensor_configure()
541 rv = ov_fmt_rgbp; in stk_sensor_configure()
545 rv = ov_fmt_rgbr; in stk_sensor_configure()
[all …]
/drivers/char/
Dmbcs.c313 int rv = 0; in do_mbcs_sram_dmawrite() local
327 rv = -EAGAIN; in do_mbcs_sram_dmawrite()
333 rv = -ERESTARTSYS; in do_mbcs_sram_dmawrite()
337 rv = len; in do_mbcs_sram_dmawrite()
343 return rv; in do_mbcs_sram_dmawrite()
350 int rv = 0; in do_mbcs_sram_dmaread() local
363 rv = -EAGAIN; in do_mbcs_sram_dmaread()
369 rv = -ERESTARTSYS; in do_mbcs_sram_dmaread()
373 rv = len; in do_mbcs_sram_dmaread()
379 return rv; in do_mbcs_sram_dmaread()
[all …]
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c780 int rv, i; in netxen_config_intr_coalesce() local
794 rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); in netxen_config_intr_coalesce()
795 if (rv != 0) { in netxen_config_intr_coalesce()
800 return rv; in netxen_config_intr_coalesce()
807 int rv = 0; in netxen_config_hw_lro() local
821 rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); in netxen_config_hw_lro()
822 if (rv != 0) { in netxen_config_hw_lro()
827 return rv; in netxen_config_hw_lro()
834 int rv = 0; in netxen_config_bridged_mode() local
837 return rv; in netxen_config_bridged_mode()
[all …]

123456