Home
last modified time | relevance | path

Searched refs:rval (Results 1 – 25 of 68) sorted by relevance

123

/drivers/media/radio/
Dsi4713-i2c.c182 int rval = -EINVAL; in usecs_to_dev() local
186 rval = array[i * 2]; in usecs_to_dev()
190 return rval; in usecs_to_dev()
197 int rval = -EINVAL; in dev_to_usecs() local
201 rval = array[(i * 2) + 1]; in dev_to_usecs()
205 return rval; in dev_to_usecs()
321 int rval; in si4713_write_property() local
338 rval = si4713_send_command(sdev, SI4713_CMD_SET_PROPERTY, in si4713_write_property()
343 if (rval < 0) in si4713_write_property()
344 return rval; in si4713_write_property()
[all …]
Dradio-si4713.c78 int rval = radio_si4713_fill_audout(vao); in radio_si4713_g_audout() local
82 return rval; in radio_si4713_g_audout()
263 int rval = 0; in radio_si4713_pdriver_probe() local
267 rval = -EINVAL; in radio_si4713_pdriver_probe()
274 rval = -ENOMEM; in radio_si4713_pdriver_probe()
278 rval = v4l2_device_register(&pdev->dev, &rsdev->v4l2_dev); in radio_si4713_pdriver_probe()
279 if (rval) { in radio_si4713_pdriver_probe()
288 rval = -ENODEV; in radio_si4713_pdriver_probe()
296 rval = -ENODEV; in radio_si4713_pdriver_probe()
303 rval = -ENOMEM; in radio_si4713_pdriver_probe()
[all …]
/drivers/scsi/qla2xxx/
Dqla_mbx.c35 int rval; in qla2x00_mailbox_command() local
67 rval = QLA_SUCCESS; in qla2x00_mailbox_command()
169 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
195 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
239 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command()
246 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command()
286 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
302 if (rval == QLA_FUNCTION_TIMEOUT && in qla2x00_mailbox_command()
373 if (rval) { in qla2x00_mailbox_command()
381 return rval; in qla2x00_mailbox_command()
[all …]
Dqla_gs.c118 int rval; in qla2x00_chk_ms_status() local
122 rval = QLA_FUNCTION_FAILED; in qla2x00_chk_ms_status()
148 rval = QLA_INVALID_COMMAND; in qla2x00_chk_ms_status()
150 rval = QLA_SUCCESS; in qla2x00_chk_ms_status()
161 return rval; in qla2x00_chk_ms_status()
174 int rval; in qla2x00_ga_nxt() local
200 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, in qla2x00_ga_nxt()
202 if (rval != QLA_SUCCESS) { in qla2x00_ga_nxt()
205 "GA_NXT issue IOCB failed (%d).\n", rval); in qla2x00_ga_nxt()
208 rval = QLA_FUNCTION_FAILED; in qla2x00_ga_nxt()
[all …]
Dqla_bsg.c237 int rval = (DRIVER_ERROR << 16); in qla2x00_process_els() local
258 rval = -EPERM; in qla2x00_process_els()
270 rval = -EPERM; in qla2x00_process_els()
283 rval = -EIO; in qla2x00_process_els()
294 rval = -ENOMEM; in qla2x00_process_els()
314 rval = -EIO; in qla2x00_process_els()
322 rval = -ENOMEM; in qla2x00_process_els()
329 rval = -ENOMEM; in qla2x00_process_els()
340 rval = -EAGAIN; in qla2x00_process_els()
347 rval = -ENOMEM; in qla2x00_process_els()
[all …]
Dqla_init.c138 int rval; in qla2x00_async_login() local
140 rval = QLA_FUNCTION_FAILED; in qla2x00_async_login()
155 rval = qla2x00_start_sp(sp); in qla2x00_async_login()
156 if (rval != QLA_SUCCESS) in qla2x00_async_login()
164 return rval; in qla2x00_async_login()
169 return rval; in qla2x00_async_login()
190 int rval; in qla2x00_async_logout() local
192 rval = QLA_FUNCTION_FAILED; in qla2x00_async_logout()
204 rval = qla2x00_start_sp(sp); in qla2x00_async_logout()
205 if (rval != QLA_SUCCESS) in qla2x00_async_logout()
[all …]
Dqla_dbg.c79 int rval; in qla24xx_dump_ram() local
86 rval = QLA_SUCCESS; in qla24xx_dump_ram()
93 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; in qla24xx_dump_ram()
137 rval = mb0 & MBS_MASK; in qla24xx_dump_ram()
141 rval = QLA_FUNCTION_FAILED; in qla24xx_dump_ram()
145 *nxt = rval == QLA_SUCCESS ? &ram[cnt]: NULL; in qla24xx_dump_ram()
146 return rval; in qla24xx_dump_ram()
153 int rval; in qla24xx_dump_memory() local
156 rval = qla24xx_dump_ram(ha, 0x20000, code_ram, cram_size / 4, nxt); in qla24xx_dump_memory()
157 if (rval != QLA_SUCCESS) in qla24xx_dump_memory()
[all …]
Dqla_dfs.c57 int rval; in qla2x00_dfs_fce_open() local
65 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd); in qla2x00_dfs_fce_open()
66 if (rval) in qla2x00_dfs_fce_open()
68 "DebugFS: Unable to disable FCE (%d).\n", rval); in qla2x00_dfs_fce_open()
82 int rval; in qla2x00_dfs_fce_release() local
92 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs, in qla2x00_dfs_fce_release()
94 if (rval) { in qla2x00_dfs_fce_release()
96 "DebugFS: Unable to reinitialize FCE (%d).\n", rval); in qla2x00_dfs_fce_release()
Dqla_nx.c914 uint32_t off_value, rval = 0; in qla82xx_md_rw_32() local
928 rval = RD_REG_DWORD((void *) in qla82xx_md_rw_32()
931 return rval; in qla82xx_md_rw_32()
2356 int rval; in qla82xx_need_reset() local
2362 rval = drv_state & (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_need_reset()
2363 return rval; in qla82xx_need_reset()
2773 int rval; in qla82xx_write_optrom_data() local
2777 rval = qla82xx_write_flash_data(vha, (uint32_t *)buf, offset, in qla82xx_write_optrom_data()
2782 if (rval) in qla82xx_write_optrom_data()
2783 rval = QLA_FUNCTION_FAILED; in qla82xx_write_optrom_data()
[all …]
Dqla_attr.c26 int rval = 0; in qla2x00_sysfs_read_fw_dump() local
33 rval = memory_read_from_buffer(buf, count, in qla2x00_sysfs_read_fw_dump()
35 return rval; in qla2x00_sysfs_read_fw_dump()
38 rval = memory_read_from_buffer(buf, count, in qla2x00_sysfs_read_fw_dump()
40 return rval; in qla2x00_sysfs_read_fw_dump()
504 int rval; in qla2x00_sysfs_read_sfp() local
531 rval = qla2x00_read_sfp(vha, ha->sfp_data_dma, ha->sfp_data, in qla2x00_sysfs_read_sfp()
533 if (rval != QLA_SUCCESS) { in qla2x00_sysfs_read_sfp()
535 "Unable to read SFP data (%x/%x/%x).\n", rval, in qla2x00_sysfs_read_sfp()
638 int rval; in qla2x00_sysfs_read_xgmac_stats() local
[all …]
/drivers/scsi/qla4xxx/
Dql4_bsg.c23 int rval = -EINVAL; in qla4xxx_read_flash() local
32 rval = -EBUSY; in qla4xxx_read_flash()
39 rval = -EBUSY; in qla4xxx_read_flash()
52 rval = -ENOMEM; in qla4xxx_read_flash()
56 rval = qla4xxx_get_flash(ha, flash_dma, offset, length); in qla4xxx_read_flash()
57 if (rval) { in qla4xxx_read_flash()
60 rval = -EIO; in qla4xxx_read_flash()
74 return rval; in qla4xxx_read_flash()
89 int rval = -EINVAL; in qla4xxx_update_flash() local
98 rval = -EBUSY; in qla4xxx_update_flash()
[all …]
Dql4_nx.c1132 int i, rval = 0; in qla4_8xxx_load_from_flash() local
1148 rval = -1; in qla4_8xxx_load_from_flash()
1152 rval = qla4_8xxx_pci_mem_write_2M(ha, memaddr, &data, 8); in qla4_8xxx_load_from_flash()
1153 if (rval) in qla4_8xxx_load_from_flash()
1172 return rval; in qla4_8xxx_load_from_flash()
1482 int rval; in qla4_8xxx_need_reset() local
1486 rval = drv_state & (1 << (ha->func_num * 4)); in qla4_8xxx_need_reset()
1488 rval = 1; in qla4_8xxx_need_reset()
1490 return rval; in qla4_8xxx_need_reset()
1562 int rval = QLA_ERROR; in qla4_8xxx_try_start_fw() local
[all …]
Dql4_iocb.c464 int rval = QLA_SUCCESS; in qla4xxx_send_mbox_iocb() local
473 rval = qla4xxx_get_req_pkt(ha, (struct queue_entry **) &(mrb->mbox)); in qla4xxx_send_mbox_iocb()
474 if (rval != QLA_SUCCESS) in qla4xxx_send_mbox_iocb()
501 return rval; in qla4xxx_send_mbox_iocb()
509 int rval = QLA_SUCCESS; in qla4xxx_ping_iocb() local
517 rval = QLA_ERROR; in qla4xxx_ping_iocb()
530 rval = qla4xxx_send_mbox_iocb(ha, mrb, in_mbox); in qla4xxx_ping_iocb()
532 if (rval != QLA_SUCCESS) in qla4xxx_ping_iocb()
535 return rval; in qla4xxx_ping_iocb()
538 return rval; in qla4xxx_ping_iocb()
Dql4_os.c222 int rval; in qla4xxx_send_ping() local
233 rval = qla4xxx_ping_iocb(ha, options, payload_size, pid, in qla4xxx_send_ping()
235 if (rval) in qla4xxx_send_ping()
236 rval = -EINVAL; in qla4xxx_send_ping()
252 rval = qla4xxx_ping_iocb(ha, options, payload_size, in qla4xxx_send_ping()
257 rval = -ENOSYS; in qla4xxx_send_ping()
265 if (rval != QLA_SUCCESS) { in qla4xxx_send_ping()
282 rval = qla4xxx_ping_iocb(ha, options, payload_size, in qla4xxx_send_ping()
284 if (rval) in qla4xxx_send_ping()
285 rval = -EINVAL; in qla4xxx_send_ping()
[all …]
/drivers/media/video/
Dadp1653.c55 int rval; in adp1653_update_hw() local
78 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_update_hw()
79 if (rval < 0) in adp1653_update_hw()
80 return rval; in adp1653_update_hw()
82 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_CONFIG, config); in adp1653_update_hw()
83 if (rval < 0) in adp1653_update_hw()
84 return rval; in adp1653_update_hw()
93 int rval; in adp1653_get_fault() local
105 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_get_fault()
106 if (IS_ERR_VALUE(rval)) in adp1653_get_fault()
[all …]
Das3645a.c142 int rval; in as3645a_write() local
144 rval = i2c_smbus_write_byte_data(client, addr, val); in as3645a_write()
147 rval < 0 ? "fail" : "ok"); in as3645a_write()
149 return rval; in as3645a_write()
156 int rval; in as3645a_read() local
158 rval = i2c_smbus_read_byte_data(client, addr); in as3645a_read()
160 dev_dbg(&client->dev, "Read Addr:%02X Val:%02X %s\n", addr, rval, in as3645a_read()
161 rval < 0 ? "fail" : "ok"); in as3645a_read()
163 return rval; in as3645a_read()
291 int rval; in as3645a_read_fault() local
[all …]
Domap24xxcam.c83 int rval = 0; in omap24xxcam_clock_get() local
88 rval = PTR_ERR(cam->fck); in omap24xxcam_clock_get()
90 return rval; in omap24xxcam_clock_get()
96 rval = PTR_ERR(cam->ick); in omap24xxcam_clock_get()
100 return rval; in omap24xxcam_clock_get()
778 int rval; in omap24xxcam_sensor_if_enable() local
781 rval = vidioc_int_g_ifparm(cam->sdev, &p); in omap24xxcam_sensor_if_enable()
782 if (rval) { in omap24xxcam_sensor_if_enable()
783 dev_err(cam->dev, "vidioc_int_g_ifparm failed with %d\n", rval); in omap24xxcam_sensor_if_enable()
784 return rval; in omap24xxcam_sensor_if_enable()
[all …]
Dtcm825x.c644 int rval; in ioctl_s_fmt_cap() local
646 rval = ioctl_try_fmt_cap(s, f); in ioctl_s_fmt_cap()
647 if (rval) in ioctl_s_fmt_cap()
648 return rval; in ioctl_s_fmt_cap()
650 rval = tcm825x_configure(s); in ioctl_s_fmt_cap()
654 return rval; in ioctl_s_fmt_cap()
691 int rval; in ioctl_s_parm() local
714 rval = tcm825x_configure(s); in ioctl_s_parm()
716 return rval; in ioctl_s_parm()
740 int rval; in ioctl_g_ifparm() local
[all …]
/drivers/net/irda/
Dmcs7780.c162 __u16 rval; in mcs_setup_transceiver_vishay() local
165 ret = mcs_get_reg(mcs, MCS_XCVR_REG, &rval); in mcs_setup_transceiver_vishay()
176 rval |= (MCS_MODE0 | MCS_XCVR_CONF); in mcs_setup_transceiver_vishay()
177 rval &= ~MCS_STFIR; in mcs_setup_transceiver_vishay()
178 rval &= ~MCS_MODE1; in mcs_setup_transceiver_vishay()
179 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
183 rval &= ~MCS_MODE0; in mcs_setup_transceiver_vishay()
184 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
188 rval &= ~MCS_XCVR_CONF; in mcs_setup_transceiver_vishay()
189 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
[all …]
/drivers/media/video/marvell-ccic/
Dcafe-driver.c172 unsigned int rval; in cafe_smbus_write_data() local
177 rval = TWSIC0_EN | ((addr << TWSIC0_SID_SHIFT) & TWSIC0_SID); in cafe_smbus_write_data()
178 rval |= TWSIC0_OVMAGIC; /* Make OV sensors work */ in cafe_smbus_write_data()
182 rval |= TWSIC0_CLKDIV; in cafe_smbus_write_data()
183 mcam_reg_write(mcam, REG_TWSIC0, rval); in cafe_smbus_write_data()
185 rval = value | ((command << TWSIC1_ADDR_SHIFT) & TWSIC1_ADDR); in cafe_smbus_write_data()
186 mcam_reg_write(mcam, REG_TWSIC1, rval); in cafe_smbus_write_data()
211 rval = mcam_reg_read(mcam, REG_TWSIC1); in cafe_smbus_write_data()
214 if (rval & TWSIC1_WSTAT) { in cafe_smbus_write_data()
219 if (rval & TWSIC1_ERROR) { in cafe_smbus_write_data()
[all …]
/drivers/scsi/megaraid/
Dmegaraid_mm.c118 int rval; in mraid_mm_ioctl() local
157 rval = handle_drvrcmd(argp, old_ioctl, &drvrcmd_rval); in mraid_mm_ioctl()
159 if (rval < 0) in mraid_mm_ioctl()
160 return rval; in mraid_mm_ioctl()
161 else if (rval == 0) in mraid_mm_ioctl()
164 rval = 0; in mraid_mm_ioctl()
165 if ((adp = mraid_mm_get_adapter(argp, &rval)) == NULL) { in mraid_mm_ioctl()
166 return rval; in mraid_mm_ioctl()
188 if ((rval = mimd_to_kioc(argp, adp, kioc))) { in mraid_mm_ioctl()
190 return rval; in mraid_mm_ioctl()
[all …]
Dmegaraid_mbox.c384 int rval; in megaraid_init() local
402 rval = pci_register_driver(&megaraid_pci_driver); in megaraid_init()
403 if (rval < 0) { in megaraid_init()
408 return rval; in megaraid_init()
2607 int rval; in megaraid_reset_handler() local
2703 rval = FAILED; in megaraid_reset_handler()
2714 rval = SUCCESS; in megaraid_reset_handler()
2722 rval = SUCCESS; in megaraid_reset_handler()
2728 rval = FAILED; in megaraid_reset_handler()
2735 return rval; in megaraid_reset_handler()
[all …]
/drivers/scsi/aic94xx/
Daic94xx_reg.h148 u16 rval = asd_ddbsite_read_word(asd_ha, ddb_site_no, base); in asd_ddbsite_write_byte() local
150 rval = (val << 8) | (rval & 0xFF); in asd_ddbsite_write_byte()
152 rval = (rval & 0xFF00) | val; in asd_ddbsite_write_byte()
153 asd_ddbsite_write_word(asd_ha, ddb_site_no, base, rval); in asd_ddbsite_write_byte()
201 u16 rval = asd_scbsite_read_word(asd_ha, scb_site_no, base); in asd_scbsite_write_byte() local
203 rval = (val << 8) | (rval & 0xFF); in asd_scbsite_write_byte()
205 rval = (rval & 0xFF00) | val; in asd_scbsite_write_byte()
206 asd_scbsite_write_word(asd_ha, scb_site_no, base, rval); in asd_scbsite_write_byte()
/drivers/staging/media/solo6x10/
Dtw28.c175 u8 rval = solo_i2c_readbyte(solo_dev, SOLO_I2C_TW, addr, off); in tw_write_and_verify() local
176 if (rval == val) in tw_write_and_verify()
713 u8 rval, chip_num; in tw28_get_ctrl_val() local
723 rval = solo_i2c_readbyte(solo_dev, SOLO_I2C_TW, in tw28_get_ctrl_val()
726 *val = rval & 0x0f; in tw28_get_ctrl_val()
731 rval = tw_readbyte(solo_dev, chip_num, TW286x_HUE_ADDR(ch), in tw28_get_ctrl_val()
734 *val = (s32)((char)rval) + 128; in tw28_get_ctrl_val()
736 *val = rval; in tw28_get_ctrl_val()
749 rval = tw_readbyte(solo_dev, chip_num, in tw28_get_ctrl_val()
753 *val = (s32)((char)rval) + 128; in tw28_get_ctrl_val()
[all …]
/drivers/media/video/omap3isp/
Dispcsiphy.c175 int rval; in omap3isp_csiphy_acquire() local
185 rval = regulator_enable(phy->vdd); in omap3isp_csiphy_acquire()
186 if (rval < 0) in omap3isp_csiphy_acquire()
194 rval = csiphy_set_power(phy, ISPCSI2_PHY_CFG_PWR_CMD_ON); in omap3isp_csiphy_acquire()
195 if (rval) { in omap3isp_csiphy_acquire()
205 return rval; in omap3isp_csiphy_acquire()

123