/kernel/linux/linux-5.10/drivers/leds/ |
D | leds-as3645a.c | 159 int rval; in as3645a_write() local 161 rval = i2c_smbus_write_byte_data(client, addr, val); in as3645a_write() 164 rval < 0 ? "fail" : "ok"); in as3645a_write() 166 return rval; in as3645a_write() 173 int rval; in as3645a_read() local 175 rval = i2c_smbus_read_byte_data(client, addr); in as3645a_read() 177 dev_dbg(&client->dev, "Read Addr:%02X Val:%02X %s\n", addr, rval, in as3645a_read() 178 rval < 0 ? "fail" : "ok"); in as3645a_read() 180 return rval; in as3645a_read() 254 int rval; in as3645a_get_fault() local [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
D | lm3560.c | 70 int rval = -EINVAL; in lm3560_mode_ctrl() local 74 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 78 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 82 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 86 return rval; in lm3560_mode_ctrl() 93 int rval; in lm3560_enable_ctrl() local 97 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 100 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 104 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 107 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() [all …]
|
D | lm3646.c | 103 int rval; in lm3646_get_ctrl() local 108 rval = regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_get_ctrl() 109 if (rval < 0) in lm3646_get_ctrl() 110 return rval; in lm3646_get_ctrl() 137 int rval; in lm3646_set_ctrl() local 155 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl() 156 if (rval < 0 || ((reg_val & MASK_ENABLE) != MODE_SHDN)) in lm3646_set_ctrl() 157 return rval; in lm3646_set_ctrl() 168 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl() 169 if (rval < 0) in lm3646_set_ctrl() [all …]
|
D | adp1653.c | 43 int rval; in adp1653_update_hw() local 66 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_update_hw() 67 if (rval < 0) in adp1653_update_hw() 68 return rval; in adp1653_update_hw() 70 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_CONFIG, config); in adp1653_update_hw() 71 if (rval < 0) in adp1653_update_hw() 72 return rval; in adp1653_update_hw() 81 int rval; in adp1653_get_fault() local 93 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_get_fault() 94 if (rval < 0) in adp1653_get_fault() [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 76 int rval; in smiapp_read_all_smia_limits() local 81 rval = smiapp_read( in smiapp_read_all_smia_limits() 83 if (rval) in smiapp_read_all_smia_limits() 84 return rval; in smiapp_read_all_smia_limits() 106 int rval; in smiapp_read_frame_fmt() local 108 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_TYPE, in smiapp_read_frame_fmt() 110 if (rval) in smiapp_read_frame_fmt() 111 return rval; in smiapp_read_frame_fmt() 113 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_SUBTYPE, in smiapp_read_frame_fmt() 115 if (rval) in smiapp_read_frame_fmt() [all …]
|
D | smiapp-quirk.c | 24 int rval; in smiapp_write_8s() local 27 rval = smiapp_write_8(sensor, regs->reg, regs->val); in smiapp_write_8s() 28 if (rval < 0) { in smiapp_write_8s() 31 rval, regs->reg, regs->val); in smiapp_write_8s() 32 return rval; in smiapp_write_8s() 139 int rval; in jt8ev1_post_poweron() local 167 rval = smiapp_write_8s(sensor, regs, ARRAY_SIZE(regs)); in jt8ev1_post_poweron() 168 if (rval < 0) in jt8ev1_post_poweron() 169 return rval; in jt8ev1_post_poweron() 189 int rval; in jt8ev1_post_streamoff() local [all …]
|
D | smiapp-regs.c | 120 int rval; in ____smiapp_read_8only() local 127 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only() 128 if (rval < 0) in ____smiapp_read_8only() 129 return rval; in ____smiapp_read_8only() 145 int rval; in __smiapp_read() local 152 rval = ____smiapp_read(sensor, SMIAPP_REG_ADDR(reg), len, val); in __smiapp_read() 154 rval = ____smiapp_read_8only(sensor, SMIAPP_REG_ADDR(reg), len, in __smiapp_read() 156 if (rval < 0) in __smiapp_read() 157 return rval; in __smiapp_read() 176 int rval; in smiapp_read_quirk() local [all …]
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | lm3630a_bl.c | 60 int rval; in lm3630a_read() local 63 rval = regmap_read(pchip->regmap, reg, ®_val); in lm3630a_read() 64 if (rval < 0) in lm3630a_read() 65 return rval; in lm3630a_read() 85 int rval; in lm3630a_chip_init() local 90 rval = lm3630a_write(pchip, REG_FILTER_STRENGTH, 0x03); in lm3630a_chip_init() 92 rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); in lm3630a_chip_init() 94 rval |= lm3630a_write(pchip, REG_BOOST, 0x38); in lm3630a_chip_init() 96 rval |= lm3630a_update(pchip, REG_I_A, 0x1F, 0x1F); in lm3630a_chip_init() 98 rval |= lm3630a_write(pchip, REG_I_B, 0x1F); in lm3630a_chip_init() [all …]
|
/kernel/linux/linux-5.10/drivers/media/radio/si4713/ |
D | si4713.c | 160 int rval = -EINVAL; in usecs_to_dev() local 164 rval = array[i * 2]; in usecs_to_dev() 168 return rval; in usecs_to_dev() 297 int rval; in si4713_write_property() local 314 rval = si4713_send_command(sdev, SI4713_CMD_SET_PROPERTY, in si4713_write_property() 319 if (rval < 0) in si4713_write_property() 320 return rval; in si4713_write_property() 333 return rval; in si4713_write_property() 467 int rval; in si4713_checkrev() local 470 rval = si4713_send_command(sdev, SI4713_CMD_GET_REV, in si4713_checkrev() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
D | sh_css_stream_format.c | 22 unsigned int rval; in sh_css_stream_format_2_bits_per_subpixel() local 26 rval = 4; in sh_css_stream_format_2_bits_per_subpixel() 29 rval = 5; in sh_css_stream_format_2_bits_per_subpixel() 34 rval = 6; in sh_css_stream_format_2_bits_per_subpixel() 37 rval = 7; in sh_css_stream_format_2_bits_per_subpixel() 53 rval = 8; in sh_css_stream_format_2_bits_per_subpixel() 58 rval = 10; in sh_css_stream_format_2_bits_per_subpixel() 61 rval = 12; in sh_css_stream_format_2_bits_per_subpixel() 64 rval = 14; in sh_css_stream_format_2_bits_per_subpixel() 69 rval = 16; in sh_css_stream_format_2_bits_per_subpixel() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_dir2.c | 251 int rval; in xfs_dir_createname() local 257 rval = xfs_dir_ino_validate(tp->t_mountp, inum); in xfs_dir_createname() 258 if (rval) in xfs_dir_createname() 259 return rval; in xfs_dir_createname() 282 rval = xfs_dir2_sf_addname(args); in xfs_dir_createname() 286 rval = xfs_dir2_isblock(args, &v); in xfs_dir_createname() 287 if (rval) in xfs_dir_createname() 290 rval = xfs_dir2_block_addname(args); in xfs_dir_createname() 294 rval = xfs_dir2_isleaf(args, &v); in xfs_dir_createname() 295 if (rval) in xfs_dir_createname() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 108 int rval, i; in qla2x00_mailbox_command() local 149 rval = QLA_SUCCESS; in qla2x00_mailbox_command() 194 rval = QLA_ABORTED; in qla2x00_mailbox_command() 209 rval = QLA_ABORTED; in qla2x00_mailbox_command() 287 rval = QLA_ABORTED; in qla2x00_mailbox_command() 297 rval = QLA_ABORTED; in qla2x00_mailbox_command() 318 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 337 rval = QLA_ABORTED; in qla2x00_mailbox_command() 377 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() 387 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() [all …]
|
D | qla_bsg.c | 266 int rval = (DID_ERROR << 16); in qla2x00_process_els() local 285 rval = -EIO; in qla2x00_process_els() 293 rval = -EPERM; in qla2x00_process_els() 305 rval = -EPERM; in qla2x00_process_els() 318 rval = -EIO; in qla2x00_process_els() 329 rval = -ENOMEM; in qla2x00_process_els() 352 rval = -ENOMEM; in qla2x00_process_els() 361 rval = -ENOMEM; in qla2x00_process_els() 372 rval = -EAGAIN; in qla2x00_process_els() 379 rval = -ENOMEM; in qla2x00_process_els() [all …]
|
D | qla_gs.c | 123 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() 172 rval = QLA_NOT_LOGGED_IN; in qla2x00_chk_ms_status() 178 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_chk_ms_status() 189 return rval; in qla2x00_chk_ms_status() 202 int rval; in qla2x00_ga_nxt() local 233 rval = qla2x00_issue_iocb(vha, ha->ms_iocb, ha->ms_iocb_dma, in qla2x00_ga_nxt() 235 if (rval != QLA_SUCCESS) { in qla2x00_ga_nxt() [all …]
|
D | qla_init.c | 152 int rval = QLA_FUNCTION_FAILED; in qla24xx_async_abort_cmd() local 157 return rval; in qla24xx_async_abort_cmd() 181 rval = qla2x00_start_sp(sp); in qla24xx_async_abort_cmd() 182 if (rval != QLA_SUCCESS) { in qla24xx_async_abort_cmd() 184 return rval; in qla24xx_async_abort_cmd() 189 rval = abt_iocb->u.abt.comp_status == CS_COMPLETE ? in qla24xx_async_abort_cmd() 194 return rval; in qla24xx_async_abort_cmd() 314 int rval = QLA_FUNCTION_FAILED; in qla2x00_async_login() local 321 return rval; in qla2x00_async_login() 356 rval = qla2x00_start_sp(sp); in qla2x00_async_login() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/camera/util/src/ |
D | util.c | 29 unsigned int rval = 0; in ia_css_util_input_format_bpp() local 39 rval = 8; in ia_css_util_input_format_bpp() 44 rval = 10; in ia_css_util_input_format_bpp() 48 rval = 16; in ia_css_util_input_format_bpp() 51 rval = 4; in ia_css_util_input_format_bpp() 54 rval = 5; in ia_css_util_input_format_bpp() 57 rval = 65; in ia_css_util_input_format_bpp() 61 rval = 6; in ia_css_util_input_format_bpp() 64 rval = 7; in ia_css_util_input_format_bpp() 67 rval = 12; in ia_css_util_input_format_bpp() [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/et8ek8/ |
D | et8ek8_driver.c | 227 int rval; in et8ek8_i2c_buffered_write_regs() local 245 rval = i2c_transfer(client->adapter, msg, wcnt); in et8ek8_i2c_buffered_write_regs() 246 if (rval < 0) in et8ek8_i2c_buffered_write_regs() 247 return rval; in et8ek8_i2c_buffered_write_regs() 253 rval = i2c_transfer(client->adapter, msg, wcnt); in et8ek8_i2c_buffered_write_regs() 255 return rval < 0 ? rval : 0; in et8ek8_i2c_buffered_write_regs() 585 int cbh_mode, cbv_mode, tp_mode, din_sw, r1420, rval; in et8ek8_set_test_pattern() local 610 rval = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT, 0x111B, in et8ek8_set_test_pattern() 612 if (rval) in et8ek8_set_test_pattern() 613 return rval; in et8ek8_set_test_pattern() [all …]
|
/kernel/linux/linux-5.10/drivers/rapidio/switches/ |
D | idt_gen3.c | 40 u32 rval; in idtg3_route_add_entry() local 65 RIO_SWP_INFO_CAR, &rval); in idtg3_route_add_entry() 69 if (table >= RIO_GET_TOTAL_PORTS(rval)) in idtg3_route_add_entry() 82 u32 rval; in idtg3_route_get_entry() local 89 RIO_SWP_INFO_CAR, &rval); in idtg3_route_get_entry() 99 table = RIO_GET_PORT_NUM(rval); in idtg3_route_get_entry() 100 else if (table >= RIO_GET_TOTAL_PORTS(rval)) in idtg3_route_get_entry() 105 &rval); in idtg3_route_get_entry() 109 if (rval == RIO_RT_ENTRY_DROP_PKT) in idtg3_route_get_entry() 112 *route_port = (u8)rval; in idtg3_route_get_entry() [all …]
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | mp2629_charger.c | 176 unsigned int rval; in mp2629_get_prop() local 178 ret = regmap_field_read(charger->regmap_fields[fld], &rval); in mp2629_get_prop() 182 val->intval = rval * props[fld].step + props[fld].min; in mp2629_get_prop() 191 unsigned int rval; in mp2629_set_prop() local 196 rval = (val->intval - props[fld].min) / props[fld].step; in mp2629_set_prop() 197 return regmap_field_write(charger->regmap_fields[fld], rval); in mp2629_set_prop() 225 unsigned int rval; in mp2629_charger_battery_get_prop() local 277 ret = regmap_read(charger->regmap, MP2629_REG_STATUS, &rval); in mp2629_charger_battery_get_prop() 281 rval = (rval & MP2629_MASK_CHARGE_TYPE) >> 3; in mp2629_charger_battery_get_prop() 282 switch (rval) { in mp2629_charger_battery_get_prop() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/ |
D | ql4_bsg.c | 22 int rval = -EINVAL; in qla4xxx_read_flash() local 31 rval = -EBUSY; in qla4xxx_read_flash() 38 rval = -EBUSY; in qla4xxx_read_flash() 51 rval = -ENOMEM; in qla4xxx_read_flash() 55 rval = qla4xxx_get_flash(ha, flash_dma, offset, length); in qla4xxx_read_flash() 56 if (rval) { in qla4xxx_read_flash() 59 rval = -EIO; in qla4xxx_read_flash() 73 return rval; in qla4xxx_read_flash() 88 int rval = -EINVAL; in qla4xxx_update_flash() local 97 rval = -EBUSY; in qla4xxx_update_flash() [all …]
|
D | ql4_nx.c | 430 int rval = QLA_SUCCESS; in qla4_82xx_md_rd_32() local 444 rval = QLA_ERROR; in qla4_82xx_md_rd_32() 450 return rval; in qla4_82xx_md_rd_32() 456 int rval = QLA_SUCCESS; in qla4_82xx_md_wr_32() local 469 rval = QLA_ERROR; in qla4_82xx_md_wr_32() 475 return rval; in qla4_82xx_md_wr_32() 1290 int i, rval = 0; in qla4_82xx_load_from_flash() local 1306 rval = -1; in qla4_82xx_load_from_flash() 1310 rval = qla4_82xx_pci_mem_write_2M(ha, memaddr, &data, 8); in qla4_82xx_load_from_flash() 1311 if (rval) in qla4_82xx_load_from_flash() [all …]
|
/kernel/linux/linux-5.10/sound/soc/qcom/ |
D | apq8016_sbc.c | 42 int i, rval; in apq8016_sbc_dai_init() local 72 rval = snd_soc_card_jack_new(card, "Headset Jack", in apq8016_sbc_dai_init() 80 if (rval < 0) { in apq8016_sbc_dai_init() 82 return rval; in apq8016_sbc_dai_init() 98 rval = snd_soc_component_set_sysclk(component, 0, 0, DEFAULT_MCLK_RATE, in apq8016_sbc_dai_init() 100 if (rval != 0 && rval != -ENOTSUPP) { in apq8016_sbc_dai_init() 101 dev_warn(card->dev, "Failed to set mclk: %d\n", rval); in apq8016_sbc_dai_init() 102 return rval; in apq8016_sbc_dai_init() 104 rval = snd_soc_component_set_jack(component, &pdata->jack, NULL); in apq8016_sbc_dai_init() 105 if (rval != 0 && rval != -ENOTSUPP) { in apq8016_sbc_dai_init() [all …]
|
/kernel/linux/linux-5.10/drivers/input/serio/ |
D | sun4i-ps2.c | 102 u32 rval; in sun4i_ps2_interrupt() local 116 rval = PS2_LSTS_TXTDO | PS2_LSTS_STOPERR | PS2_LSTS_ACKERR | in sun4i_ps2_interrupt() 118 writel(rval, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt() 123 rval = PS2_FSTS_TXUF | PS2_FSTS_TXOF | PS2_FSTS_TXRDY | in sun4i_ps2_interrupt() 125 writel(rval, drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt() 128 rval = (fifo_status >> 16) & 0x3; in sun4i_ps2_interrupt() 129 while (rval--) { in sun4i_ps2_interrupt() 148 u32 rval; in sun4i_ps2_open() local 152 rval = PS2_LCTL_STOPERREN | PS2_LCTL_ACKERREN in sun4i_ps2_open() 154 writel(rval, drvdata->reg_base + PS2_REG_LCTL); in sun4i_ps2_open() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-bd718x7.c | 62 int rval; in bd71837_clk_is_enabled() local 65 rval = regmap_read(c->mfd->regmap, c->reg, &enabled); in bd71837_clk_is_enabled() 67 if (rval) in bd71837_clk_is_enabled() 68 return rval; in bd71837_clk_is_enabled() 82 int rval = -ENOMEM; in bd71837_clk_probe() local 129 rval = devm_clk_hw_register(&pdev->dev, &c->hw); in bd71837_clk_probe() 130 if (rval) { in bd71837_clk_probe() 132 return rval; in bd71837_clk_probe() 134 rval = devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get, in bd71837_clk_probe() 136 if (rval) in bd71837_clk_probe() [all …]
|
/kernel/linux/linux-5.10/arch/microblaze/kernel/ |
D | ptrace.c | 81 int rval; in arch_ptrace() local 89 rval = 0; in arch_ptrace() 103 rval = -EIO; in arch_ptrace() 125 rval = -EIO; in arch_ptrace() 127 if (rval == 0 && request == PTRACE_PEEKUSR) in arch_ptrace() 128 rval = put_user(val, (unsigned long __user *)data); in arch_ptrace() 131 rval = ptrace_request(child, request, addr, data); in arch_ptrace() 133 return rval; in arch_ptrace()
|