Home
last modified time | relevance | path

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

12345

/drivers/video/backlight/
Dlm3630a_bl.c53 int rval; in lm3630a_read() local
56 rval = regmap_read(pchip->regmap, reg, &reg_val); in lm3630a_read()
57 if (rval < 0) in lm3630a_read()
58 return rval; in lm3630a_read()
78 int rval; in lm3630a_chip_init() local
83 rval = lm3630a_write(pchip, 0x50, 0x03); in lm3630a_chip_init()
85 rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); in lm3630a_chip_init()
87 rval |= lm3630a_write(pchip, REG_BOOST, 0x38); in lm3630a_chip_init()
89 rval |= lm3630a_update(pchip, REG_I_A, 0x1F, 0x1F); in lm3630a_chip_init()
91 rval |= lm3630a_write(pchip, REG_I_B, 0x1F); in lm3630a_chip_init()
[all …]
/drivers/media/i2c/
Dlm3560.c77 int rval = -EINVAL; in lm3560_mode_ctrl() local
81 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
85 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
89 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
93 return rval; in lm3560_mode_ctrl()
100 int rval; in lm3560_enable_ctrl() local
104 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
107 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
111 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
114 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
[all …]
Dlm3646.c106 int rval; in lm3646_get_ctrl() local
111 rval = regmap_read(flash->regmap, REG_FLAG, &reg_val); in lm3646_get_ctrl()
112 if (rval < 0) in lm3646_get_ctrl()
113 return rval; in lm3646_get_ctrl()
140 int rval = -EINVAL; in lm3646_set_ctrl() local
158 rval = regmap_read(flash->regmap, REG_ENABLE, &reg_val); in lm3646_set_ctrl()
159 if (rval < 0 || ((reg_val & MASK_ENABLE) != MODE_SHDN)) in lm3646_set_ctrl()
160 return rval; in lm3646_set_ctrl()
171 rval = regmap_read(flash->regmap, REG_ENABLE, &reg_val); in lm3646_set_ctrl()
172 if (rval < 0) in lm3646_set_ctrl()
[all …]
Dadp1653.c57 int rval; in adp1653_update_hw() local
80 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_update_hw()
81 if (rval < 0) in adp1653_update_hw()
82 return rval; in adp1653_update_hw()
84 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_CONFIG, config); in adp1653_update_hw()
85 if (rval < 0) in adp1653_update_hw()
86 return rval; in adp1653_update_hw()
95 int rval; in adp1653_get_fault() local
107 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_get_fault()
108 if (rval < 0) 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 …]
Dsmiapp-pll.c91 int rval; in check_all_bounds() local
93 rval = bounds_check(dev, pll->pll_ip_clk_freq_hz, in check_all_bounds()
97 if (!rval) in check_all_bounds()
98 rval = bounds_check( in check_all_bounds()
102 if (!rval) in check_all_bounds()
103 rval = bounds_check( in check_all_bounds()
107 if (!rval) in check_all_bounds()
108 rval = bounds_check( in check_all_bounds()
112 if (!rval) in check_all_bounds()
113 rval = bounds_check( in check_all_bounds()
[all …]
/drivers/media/i2c/smiapp/
Dsmiapp-core.c71 int rval; in smiapp_read_frame_fmt() local
76 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_TYPE, in smiapp_read_frame_fmt()
78 if (rval) in smiapp_read_frame_fmt()
79 return rval; in smiapp_read_frame_fmt()
81 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_SUBTYPE, in smiapp_read_frame_fmt()
83 if (rval) in smiapp_read_frame_fmt()
84 return rval; in smiapp_read_frame_fmt()
106 rval = smiapp_read( in smiapp_read_frame_fmt()
110 if (rval) in smiapp_read_frame_fmt()
111 return rval; in smiapp_read_frame_fmt()
[all …]
Dsmiapp-quirk.c32 int rval; in smiapp_write_8s() local
35 rval = smiapp_write_8(sensor, regs->reg, regs->val); in smiapp_write_8s()
36 if (rval < 0) { in smiapp_write_8s()
39 rval, regs->reg, regs->val); in smiapp_write_8s()
40 return rval; in smiapp_write_8s()
147 int rval; in jt8ev1_post_poweron() local
175 rval = smiapp_write_8s(sensor, regs, ARRAY_SIZE(regs)); in jt8ev1_post_poweron()
176 if (rval < 0) in jt8ev1_post_poweron()
177 return rval; in jt8ev1_post_poweron()
197 int rval; in jt8ev1_post_streamoff() local
[all …]
Dsmiapp-regs.c138 int rval; in ____smiapp_read_8only() local
145 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only()
146 if (rval < 0) in ____smiapp_read_8only()
147 return rval; in ____smiapp_read_8only()
163 int rval; in __smiapp_read() local
170 rval = ____smiapp_read(sensor, SMIAPP_REG_ADDR(reg), len, val); in __smiapp_read()
172 rval = ____smiapp_read_8only(sensor, SMIAPP_REG_ADDR(reg), len, in __smiapp_read()
174 if (rval < 0) in __smiapp_read()
175 return rval; in __smiapp_read()
194 int rval; in smiapp_read_quirk() local
[all …]
/drivers/scsi/qla2xxx/
Dqla_mbx.c36 int rval, i; in qla2x00_mailbox_command() local
77 rval = QLA_SUCCESS; in qla2x00_mailbox_command()
171 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
201 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
245 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command()
252 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command()
303 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
314 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command()
331 if (rval == QLA_FUNCTION_TIMEOUT && in qla2x00_mailbox_command()
402 if (rval) { in qla2x00_mailbox_command()
[all …]
Dqla_bsg.c255 int rval = (DRIVER_ERROR << 16); in qla2x00_process_els() local
274 rval = -EIO; in qla2x00_process_els()
282 rval = -EPERM; in qla2x00_process_els()
294 rval = -EPERM; in qla2x00_process_els()
307 rval = -EIO; in qla2x00_process_els()
318 rval = -ENOMEM; in qla2x00_process_els()
339 rval = -ENOMEM; in qla2x00_process_els()
346 rval = -ENOMEM; in qla2x00_process_els()
357 rval = -EAGAIN; in qla2x00_process_els()
364 rval = -ENOMEM; in qla2x00_process_els()
[all …]
Dqla_init.c142 int rval; in qla2x00_async_login() local
144 rval = QLA_FUNCTION_FAILED; in qla2x00_async_login()
159 rval = qla2x00_start_sp(sp); in qla2x00_async_login()
160 if (rval != QLA_SUCCESS) { in qla2x00_async_login()
172 return rval; in qla2x00_async_login()
177 return rval; in qla2x00_async_login()
198 int rval; in qla2x00_async_logout() local
200 rval = QLA_FUNCTION_FAILED; in qla2x00_async_logout()
212 rval = qla2x00_start_sp(sp); in qla2x00_async_logout()
213 if (rval != QLA_SUCCESS) in qla2x00_async_logout()
[all …]
Dqla_gs.c124 int rval; in qla2x00_chk_ms_status() local
128 rval = QLA_FUNCTION_FAILED; in qla2x00_chk_ms_status()
154 rval = QLA_INVALID_COMMAND; in qla2x00_chk_ms_status()
156 rval = QLA_SUCCESS; in qla2x00_chk_ms_status()
167 return rval; in qla2x00_chk_ms_status()
180 int rval; in qla2x00_ga_nxt() local
206 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, in qla2x00_ga_nxt()
208 if (rval != QLA_SUCCESS) { in qla2x00_ga_nxt()
211 "GA_NXT issue IOCB failed (%d).\n", rval); in qla2x00_ga_nxt()
214 rval = QLA_FUNCTION_FAILED; in qla2x00_ga_nxt()
[all …]
Dqla_mr.c42 int rval; in qlafx00_mailbox_command() local
72 rval = QLA_SUCCESS; in qlafx00_mailbox_command()
86 rval = QLA_FUNCTION_FAILED; in qlafx00_mailbox_command()
189 rval = QLA_FUNCTION_FAILED; in qlafx00_mailbox_command()
205 rval = QLA_FUNCTION_TIMEOUT; in qlafx00_mailbox_command()
221 if (rval == QLA_FUNCTION_TIMEOUT && in qlafx00_mailbox_command()
273 if (rval) { in qlafx00_mailbox_command()
282 return rval; in qlafx00_mailbox_command()
301 int rval; in qlafx00_driver_shutdown() local
316 rval = qlafx00_mailbox_command(vha, mcp); in qlafx00_driver_shutdown()
[all …]
/drivers/media/radio/si4713/
Dsi4713.c173 int rval = -EINVAL; in usecs_to_dev() local
177 rval = array[i * 2]; in usecs_to_dev()
181 return rval; in usecs_to_dev()
310 int rval; in si4713_write_property() local
327 rval = si4713_send_command(sdev, SI4713_CMD_SET_PROPERTY, in si4713_write_property()
332 if (rval < 0) in si4713_write_property()
333 return rval; in si4713_write_property()
346 return rval; in si4713_write_property()
480 int rval; in si4713_checkrev() local
483 rval = si4713_send_command(sdev, SI4713_CMD_GET_REV, in si4713_checkrev()
[all …]
/drivers/rapidio/switches/
Didt_gen3.c44 u32 rval; in idtg3_route_add_entry() local
69 RIO_SWP_INFO_CAR, &rval); in idtg3_route_add_entry()
73 if (table >= RIO_GET_TOTAL_PORTS(rval)) in idtg3_route_add_entry()
86 u32 rval; in idtg3_route_get_entry() local
93 RIO_SWP_INFO_CAR, &rval); in idtg3_route_get_entry()
103 table = RIO_GET_PORT_NUM(rval); in idtg3_route_get_entry()
104 else if (table >= RIO_GET_TOTAL_PORTS(rval)) in idtg3_route_get_entry()
109 &rval); in idtg3_route_get_entry()
113 if (rval == RIO_RT_ENTRY_DROP_PKT) in idtg3_route_get_entry()
116 *route_port = (u8)rval; in idtg3_route_get_entry()
[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.c429 int rval = QLA_SUCCESS; in qla4_82xx_md_rd_32() local
443 rval = QLA_ERROR; in qla4_82xx_md_rd_32()
449 return rval; in qla4_82xx_md_rd_32()
455 int rval = QLA_SUCCESS; in qla4_82xx_md_wr_32() local
468 rval = QLA_ERROR; in qla4_82xx_md_wr_32()
474 return rval; in qla4_82xx_md_wr_32()
1289 int i, rval = 0; in qla4_82xx_load_from_flash() local
1305 rval = -1; in qla4_82xx_load_from_flash()
1309 rval = qla4_82xx_pci_mem_write_2M(ha, memaddr, &data, 8); in qla4_82xx_load_from_flash()
1310 if (rval) in qla4_82xx_load_from_flash()
[all …]
/drivers/media/v4l2-core/
Dv4l2-subdev.c188 int rval; in subdev_do_ioctl() local
262 rval = check_format(sd, format); in subdev_do_ioctl()
263 if (rval) in subdev_do_ioctl()
264 return rval; in subdev_do_ioctl()
272 rval = check_format(sd, format); in subdev_do_ioctl()
273 if (rval) in subdev_do_ioctl()
274 return rval; in subdev_do_ioctl()
283 rval = check_crop(sd, crop); in subdev_do_ioctl()
284 if (rval) in subdev_do_ioctl()
285 return rval; in subdev_do_ioctl()
[all …]
/drivers/net/irda/
Dmcs7780.c171 __u16 rval; in mcs_setup_transceiver_vishay() local
174 ret = mcs_get_reg(mcs, MCS_XCVR_REG, &rval); in mcs_setup_transceiver_vishay()
185 rval |= (MCS_MODE0 | MCS_XCVR_CONF); in mcs_setup_transceiver_vishay()
186 rval &= ~MCS_STFIR; in mcs_setup_transceiver_vishay()
187 rval &= ~MCS_MODE1; in mcs_setup_transceiver_vishay()
188 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
192 rval &= ~MCS_MODE0; in mcs_setup_transceiver_vishay()
193 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
197 rval &= ~MCS_XCVR_CONF; in mcs_setup_transceiver_vishay()
198 ret = mcs_set_reg(mcs, MCS_XCVR_REG, rval); in mcs_setup_transceiver_vishay()
[all …]
/drivers/input/serio/
Dsun4i-ps2.c101 u32 rval; in sun4i_ps2_interrupt() local
115 rval = PS2_LSTS_TXTDO | PS2_LSTS_STOPERR | PS2_LSTS_ACKERR | in sun4i_ps2_interrupt()
117 writel(rval, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt()
122 rval = PS2_FSTS_TXUF | PS2_FSTS_TXOF | PS2_FSTS_TXRDY | in sun4i_ps2_interrupt()
124 writel(rval, drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt()
127 rval = (fifo_status >> 16) & 0x3; in sun4i_ps2_interrupt()
128 while (rval--) { in sun4i_ps2_interrupt()
147 u32 rval; in sun4i_ps2_open() local
151 rval = PS2_LCTL_STOPERREN | PS2_LCTL_ACKERREN in sun4i_ps2_open()
153 writel(rval, drvdata->reg_base + PS2_REG_LCTL); in sun4i_ps2_open()
[all …]
/drivers/mfd/
Dsi476x-i2c.c624 int rval; in si476x_core_get_revision_info() local
628 rval = si476x_core_set_power_state(core, SI476X_POWER_UP_FULL); in si476x_core_get_revision_info()
629 if (rval < 0) in si476x_core_get_revision_info()
632 rval = si476x_core_cmd_func_info(core, &info); in si476x_core_get_revision_info()
633 if (rval < 0) in si476x_core_get_revision_info()
645 return rval; in si476x_core_get_revision_info()
693 int rval; in si476x_core_probe() local
709 rval = PTR_ERR(core->regmap); in si476x_core_probe()
712 rval); in si476x_core_probe()
713 return rval; in si476x_core_probe()
[all …]
/drivers/media/platform/marvell-ccic/
Dcafe-driver.c171 unsigned int rval; in cafe_smbus_write_data() local
176 rval = TWSIC0_EN | ((addr << TWSIC0_SID_SHIFT) & TWSIC0_SID); in cafe_smbus_write_data()
177 rval |= TWSIC0_OVMAGIC; /* Make OV sensors work */ in cafe_smbus_write_data()
181 rval |= TWSIC0_CLKDIV; in cafe_smbus_write_data()
182 mcam_reg_write(mcam, REG_TWSIC0, rval); in cafe_smbus_write_data()
184 rval = value | ((command << TWSIC1_ADDR_SHIFT) & TWSIC1_ADDR); in cafe_smbus_write_data()
185 mcam_reg_write(mcam, REG_TWSIC1, rval); in cafe_smbus_write_data()
210 rval = mcam_reg_read(mcam, REG_TWSIC1); in cafe_smbus_write_data()
213 if (rval & TWSIC1_WSTAT) { in cafe_smbus_write_data()
218 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()
192 if ((rval = mimd_to_kioc(argp, adp, kioc))) { in mraid_mm_ioctl()
194 return rval; in mraid_mm_ioctl()
[all …]
/drivers/mmc/host/
Dsunxi-mmc.c294 u32 rval; in sunxi_mmc_reset_host() local
298 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_reset_host()
299 } while (time_before(jiffies, expire) && (rval & SDXC_HARDWARE_RESET)); in sunxi_mmc_reset_host()
301 if (rval & SDXC_HARDWARE_RESET) { in sunxi_mmc_reset_host()
311 u32 rval; in sunxi_mmc_init_host() local
336 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_init_host()
337 rval |= SDXC_INTERRUPT_ENABLE_BIT; in sunxi_mmc_init_host()
339 rval &= ~SDXC_ACCESS_DONE_DIRECT; in sunxi_mmc_init_host()
340 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_init_host()
417 u32 rval; in sunxi_mmc_start_dma() local
[all …]

12345