/drivers/leds/ |
D | leds-as3645a.c | 172 int rval; in as3645a_write() local 174 rval = i2c_smbus_write_byte_data(client, addr, val); in as3645a_write() 177 rval < 0 ? "fail" : "ok"); in as3645a_write() 179 return rval; in as3645a_write() 186 int rval; in as3645a_read() local 188 rval = i2c_smbus_read_byte_data(client, addr); in as3645a_read() 190 dev_dbg(&client->dev, "Read Addr:%02X Val:%02X %s\n", addr, rval, in as3645a_read() 191 rval < 0 ? "fail" : "ok"); in as3645a_read() 193 return rval; in as3645a_read() 267 int rval; in as3645a_get_fault() local [all …]
|
/drivers/video/backlight/ |
D | lm3630a_bl.c | 54 int rval; in lm3630a_read() local 57 rval = regmap_read(pchip->regmap, reg, ®_val); in lm3630a_read() 58 if (rval < 0) in lm3630a_read() 59 return rval; in lm3630a_read() 79 int rval; in lm3630a_chip_init() local 84 rval = lm3630a_write(pchip, REG_FILTER_STRENGTH, 0x03); in lm3630a_chip_init() 86 rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); in lm3630a_chip_init() 88 rval |= lm3630a_write(pchip, REG_BOOST, 0x38); in lm3630a_chip_init() 90 rval |= lm3630a_update(pchip, REG_I_A, 0x1F, 0x1F); in lm3630a_chip_init() 92 rval |= lm3630a_write(pchip, REG_I_B, 0x1F); in lm3630a_chip_init() [all …]
|
/drivers/media/i2c/ |
D | lm3560.c | 77 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 …]
|
D | lm3646.c | 106 int rval; in lm3646_get_ctrl() local 111 rval = regmap_read(flash->regmap, REG_FLAG, ®_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, ®_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, ®_val); in lm3646_set_ctrl() 172 if (rval < 0) in lm3646_set_ctrl() [all …]
|
D | adp1653.c | 52 int rval; in adp1653_update_hw() local 75 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_update_hw() 76 if (rval < 0) in adp1653_update_hw() 77 return rval; in adp1653_update_hw() 79 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_CONFIG, config); in adp1653_update_hw() 80 if (rval < 0) in adp1653_update_hw() 81 return rval; in adp1653_update_hw() 90 int rval; in adp1653_get_fault() local 102 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_get_fault() 103 if (rval < 0) in adp1653_get_fault() [all …]
|
D | as3645a.c | 137 int rval; in as3645a_write() local 139 rval = i2c_smbus_write_byte_data(client, addr, val); in as3645a_write() 142 rval < 0 ? "fail" : "ok"); in as3645a_write() 144 return rval; in as3645a_write() 151 int rval; in as3645a_read() local 153 rval = i2c_smbus_read_byte_data(client, addr); in as3645a_read() 155 dev_dbg(&client->dev, "Read Addr:%02X Val:%02X %s\n", addr, rval, in as3645a_read() 156 rval < 0 ? "fail" : "ok"); in as3645a_read() 158 return rval; in as3645a_read() 286 int rval; in as3645a_read_fault() local [all …]
|
/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 75 int rval; in smiapp_read_frame_fmt() local 77 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_TYPE, in smiapp_read_frame_fmt() 79 if (rval) in smiapp_read_frame_fmt() 80 return rval; in smiapp_read_frame_fmt() 82 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_SUBTYPE, in smiapp_read_frame_fmt() 84 if (rval) in smiapp_read_frame_fmt() 85 return rval; in smiapp_read_frame_fmt() 109 rval = smiapp_read(sensor, reg, &desc); in smiapp_read_frame_fmt() 110 if (rval) in smiapp_read_frame_fmt() 111 return rval; in smiapp_read_frame_fmt() [all …]
|
D | smiapp-quirk.c | 32 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 …]
|
D | smiapp-regs.c | 138 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/ |
D | qla_mbx.c | 99 int rval, i; in qla2x00_mailbox_command() local 140 rval = QLA_SUCCESS; in qla2x00_mailbox_command() 245 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 279 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 323 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() 330 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() 392 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 403 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 420 if (rval == QLA_FUNCTION_TIMEOUT && in qla2x00_mailbox_command() 491 if (rval) { in qla2x00_mailbox_command() [all …]
|
D | qla_bsg.c | 261 int rval = (DID_ERROR << 16); in qla2x00_process_els() local 280 rval = -EIO; in qla2x00_process_els() 288 rval = -EPERM; in qla2x00_process_els() 300 rval = -EPERM; in qla2x00_process_els() 313 rval = -EIO; in qla2x00_process_els() 324 rval = -ENOMEM; in qla2x00_process_els() 347 rval = -ENOMEM; in qla2x00_process_els() 356 rval = -ENOMEM; in qla2x00_process_els() 367 rval = -EAGAIN; in qla2x00_process_els() 374 rval = -ENOMEM; in qla2x00_process_els() [all …]
|
D | qla_gs.c | 124 int rval; in qla2x00_chk_ms_status() local 129 rval = QLA_FUNCTION_FAILED; in qla2x00_chk_ms_status() 155 rval = QLA_INVALID_COMMAND; in qla2x00_chk_ms_status() 157 rval = QLA_SUCCESS; in qla2x00_chk_ms_status() 173 rval = QLA_NOT_LOGGED_IN; in qla2x00_chk_ms_status() 179 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_chk_ms_status() 190 return rval; in qla2x00_chk_ms_status() 203 int rval; in qla2x00_ga_nxt() local 236 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, in qla2x00_ga_nxt() 238 if (rval != QLA_SUCCESS) { in qla2x00_ga_nxt() [all …]
|
D | qla_init.c | 180 int rval = QLA_FUNCTION_FAILED; in qla2x00_async_login() local 211 rval = qla2x00_start_sp(sp); in qla2x00_async_login() 212 if (rval != QLA_SUCCESS) { in qla2x00_async_login() 224 return rval; in qla2x00_async_login() 230 return rval; in qla2x00_async_login() 251 int rval; in qla2x00_async_logout() local 253 rval = QLA_FUNCTION_FAILED; in qla2x00_async_logout() 266 rval = qla2x00_start_sp(sp); in qla2x00_async_logout() 267 if (rval != QLA_SUCCESS) in qla2x00_async_logout() 275 return rval; in qla2x00_async_logout() [all …]
|
/drivers/media/radio/si4713/ |
D | si4713.c | 169 int rval = -EINVAL; in usecs_to_dev() local 173 rval = array[i * 2]; in usecs_to_dev() 177 return rval; in usecs_to_dev() 306 int rval; in si4713_write_property() local 323 rval = si4713_send_command(sdev, SI4713_CMD_SET_PROPERTY, in si4713_write_property() 328 if (rval < 0) in si4713_write_property() 329 return rval; in si4713_write_property() 342 return rval; in si4713_write_property() 476 int rval; in si4713_checkrev() local 479 rval = si4713_send_command(sdev, SI4713_CMD_GET_REV, in si4713_checkrev() [all …]
|
/drivers/media/i2c/et8ek8/ |
D | et8ek8_driver.c | 235 int rval; in et8ek8_i2c_buffered_write_regs() local 253 rval = i2c_transfer(client->adapter, msg, wcnt); in et8ek8_i2c_buffered_write_regs() 254 if (rval < 0) in et8ek8_i2c_buffered_write_regs() 255 return rval; in et8ek8_i2c_buffered_write_regs() 261 rval = i2c_transfer(client->adapter, msg, wcnt); in et8ek8_i2c_buffered_write_regs() 263 return rval < 0 ? rval : 0; in et8ek8_i2c_buffered_write_regs() 593 int cbh_mode, cbv_mode, tp_mode, din_sw, r1420, rval; in et8ek8_set_test_pattern() local 618 rval = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT, 0x111B, in et8ek8_set_test_pattern() 620 if (rval) in et8ek8_set_test_pattern() 621 return rval; in et8ek8_set_test_pattern() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/ |
D | sh_css_stream_format.c | 21 unsigned int rval; in sh_css_stream_format_2_bits_per_subpixel() local 25 rval = 4; in sh_css_stream_format_2_bits_per_subpixel() 28 rval = 5; in sh_css_stream_format_2_bits_per_subpixel() 33 rval = 6; in sh_css_stream_format_2_bits_per_subpixel() 36 rval = 7; in sh_css_stream_format_2_bits_per_subpixel() 52 rval = 8; in sh_css_stream_format_2_bits_per_subpixel() 57 rval = 10; in sh_css_stream_format_2_bits_per_subpixel() 60 rval = 12; in sh_css_stream_format_2_bits_per_subpixel() 63 rval = 14; in sh_css_stream_format_2_bits_per_subpixel() 68 rval = 16; in sh_css_stream_format_2_bits_per_subpixel() [all …]
|
/drivers/rapidio/switches/ |
D | idt_gen3.c | 44 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/staging/media/atomisp/pci/atomisp2/css2400/camera/util/src/ |
D | util.c | 58 unsigned int rval = 0; in ia_css_util_input_format_bpp() local 67 rval = 8; in ia_css_util_input_format_bpp() 72 rval = 10; in ia_css_util_input_format_bpp() 76 rval = 16; in ia_css_util_input_format_bpp() 79 rval = 4; in ia_css_util_input_format_bpp() 82 rval = 5; in ia_css_util_input_format_bpp() 85 rval = 65; in ia_css_util_input_format_bpp() 89 rval = 6; in ia_css_util_input_format_bpp() 92 rval = 7; in ia_css_util_input_format_bpp() 95 rval = 12; in ia_css_util_input_format_bpp() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-fwnode.c | 47 int rval; in v4l2_fwnode_endpoint_parse_csi2_bus() local 49 rval = fwnode_property_read_u32_array(fwnode, "data-lanes", NULL, 0); in v4l2_fwnode_endpoint_parse_csi2_bus() 50 if (rval > 0) { in v4l2_fwnode_endpoint_parse_csi2_bus() 54 min_t(int, V4L2_FWNODE_CSI2_MAX_DATA_LANES, rval); in v4l2_fwnode_endpoint_parse_csi2_bus() 68 rval = fwnode_property_read_u32_array(fwnode, in v4l2_fwnode_endpoint_parse_csi2_bus() 71 if (rval > 0) { in v4l2_fwnode_endpoint_parse_csi2_bus() 72 if (rval != 1 + bus->num_data_lanes /* clock+data */) { in v4l2_fwnode_endpoint_parse_csi2_bus() 74 1 + bus->num_data_lanes, rval); in v4l2_fwnode_endpoint_parse_csi2_bus() 207 int rval; in v4l2_fwnode_endpoint_parse() local 219 rval = v4l2_fwnode_endpoint_parse_csi2_bus(fwnode, vep); in v4l2_fwnode_endpoint_parse() [all …]
|
D | v4l2-subdev.c | 185 int rval; in subdev_do_ioctl() local 259 rval = check_format(sd, format); in subdev_do_ioctl() 260 if (rval) in subdev_do_ioctl() 261 return rval; in subdev_do_ioctl() 269 rval = check_format(sd, format); in subdev_do_ioctl() 270 if (rval) in subdev_do_ioctl() 271 return rval; in subdev_do_ioctl() 280 rval = check_crop(sd, crop); in subdev_do_ioctl() 281 if (rval) in subdev_do_ioctl() 282 return rval; in subdev_do_ioctl() [all …]
|
/drivers/scsi/qla4xxx/ |
D | ql4_bsg.c | 23 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 …]
|
D | ql4_nx.c | 429 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/staging/irda/drivers/ |
D | mcs7780.c | 171 __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/ |
D | sun4i-ps2.c | 101 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/mmc/host/ |
D | sunxi-mmc.c | 309 u32 rval; in sunxi_mmc_reset_host() local 313 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_reset_host() 314 } while (time_before(jiffies, expire) && (rval & SDXC_HARDWARE_RESET)); in sunxi_mmc_reset_host() 316 if (rval & SDXC_HARDWARE_RESET) { in sunxi_mmc_reset_host() 326 u32 rval; in sunxi_mmc_init_host() local 351 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_init_host() 352 rval |= SDXC_INTERRUPT_ENABLE_BIT; in sunxi_mmc_init_host() 354 rval &= ~SDXC_ACCESS_DONE_DIRECT; in sunxi_mmc_init_host() 355 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_init_host() 424 u32 rval; in sunxi_mmc_start_dma() local [all …]
|