/linux-6.1.9/drivers/leds/flash/ |
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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/video/backlight/ |
D | lm3630a_bl.c | 61 int rval; in lm3630a_read() local 64 rval = regmap_read(pchip->regmap, reg, ®_val); in lm3630a_read() 65 if (rval < 0) in lm3630a_read() 66 return rval; in lm3630a_read() 86 int rval; in lm3630a_chip_init() local 91 rval = lm3630a_write(pchip, REG_FILTER_STRENGTH, 0x03); in lm3630a_chip_init() 93 rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); in lm3630a_chip_init() 95 rval |= lm3630a_write(pchip, REG_BOOST, 0x38); in lm3630a_chip_init() 97 rval |= lm3630a_update(pchip, REG_I_A, 0x1F, 0x1F); in lm3630a_chip_init() 99 rval |= lm3630a_write(pchip, REG_I_B, 0x1F); in lm3630a_chip_init() [all …]
|
/linux-6.1.9/drivers/media/i2c/ccs/ |
D | ccs-core.c | 367 int rval; in ccs_pll_configure() local 369 rval = ccs_write(sensor, VT_PIX_CLK_DIV, pll->vt_bk.pix_clk_div); in ccs_pll_configure() 370 if (rval < 0) in ccs_pll_configure() 371 return rval; in ccs_pll_configure() 373 rval = ccs_write(sensor, VT_SYS_CLK_DIV, pll->vt_bk.sys_clk_div); in ccs_pll_configure() 374 if (rval < 0) in ccs_pll_configure() 375 return rval; in ccs_pll_configure() 377 rval = ccs_write(sensor, PRE_PLL_CLK_DIV, pll->vt_fr.pre_pll_clk_div); in ccs_pll_configure() 378 if (rval < 0) in ccs_pll_configure() 379 return rval; in ccs_pll_configure() [all …]
|
D | ccs-data.c | 180 int rval; in ccs_data_block_parse_header() local 185 rval = ccs_data_parse_length_specifier(&block->length, &hlen, &plen, in ccs_data_block_parse_header() 187 if (rval < 0) in ccs_data_block_parse_header() 188 return rval; in ccs_data_block_parse_header() 327 int rval; in ccs_data_parse_reg_rules() local 332 rval = ccs_data_parse_regs(bin, NULL, __num_regs, payload, endp, dev); in ccs_data_parse_reg_rules() 333 if (rval) in ccs_data_parse_reg_rules() 334 return rval; in ccs_data_parse_reg_rules() 438 int rval; in ccs_data_parse_rules() local 453 rval = ccs_data_parse_length_specifier(__next_rule, &rule_hlen, in ccs_data_parse_rules() [all …]
|
D | ccs-quirk.c | 21 int rval; in ccs_write_addr_8s() local 24 rval = ccs_write_addr(sensor, regs->reg, regs->val); in ccs_write_addr_8s() 25 if (rval < 0) { in ccs_write_addr_8s() 28 rval, regs->reg, regs->val); in ccs_write_addr_8s() 29 return rval; in ccs_write_addr_8s() 123 int rval; in jt8ev1_post_poweron() local 151 rval = ccs_write_addr_8s(sensor, regs, ARRAY_SIZE(regs)); in jt8ev1_post_poweron() 152 if (rval < 0) in jt8ev1_post_poweron() 153 return rval; in jt8ev1_post_poweron() 173 int rval; in jt8ev1_post_streamoff() local [all …]
|
D | ccs-reg-access.c | 120 int rval; in ____ccs_read_addr_8only() local 127 rval = ____ccs_read_addr(sensor, reg + i, 1, &val8); in ____ccs_read_addr_8only() 128 if (rval < 0) in ____ccs_read_addr_8only() 129 return rval; in ____ccs_read_addr_8only() 182 int rval; in __ccs_read_addr() local 185 rval = ____ccs_read_addr(sensor, CCS_REG_ADDR(reg), len, val); in __ccs_read_addr() 187 rval = ____ccs_read_addr_8only(sensor, CCS_REG_ADDR(reg), len, in __ccs_read_addr() 189 if (rval < 0) in __ccs_read_addr() 190 return rval; in __ccs_read_addr() 253 int rval; in ccs_read_addr_raw() local [all …]
|
/linux-6.1.9/arch/powerpc/include/asm/vdso/ |
D | timebase.h | 16 #define mftb() ({unsigned long rval; \ 22 : "=r" (rval) \ 24 rval;}) 26 #define mftb() ({unsigned long rval; \ 27 asm volatile("mftbl %0" : "=r" (rval)); rval;}) 29 #define mftb() ({unsigned long rval; \ 31 "=r" (rval) : "i" (SPRN_TBRL)); rval;}) 35 #define mftbu() ({unsigned long rval; \ 36 asm volatile("mftbu %0" : "=r" (rval)); rval;}) 38 #define mftbu() ({unsigned long rval; \ [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 108 int rval, i; in qla2x00_mailbox_command() local 149 rval = QLA_SUCCESS; in qla2x00_mailbox_command() 199 rval = QLA_ABORTED; in qla2x00_mailbox_command() 214 rval = QLA_ABORTED; in qla2x00_mailbox_command() 294 rval = QLA_ABORTED; in qla2x00_mailbox_command() 306 rval = QLA_ABORTED; in qla2x00_mailbox_command() 328 rval = QLA_FUNCTION_TIMEOUT; in qla2x00_mailbox_command() 349 rval = QLA_ABORTED; in qla2x00_mailbox_command() 389 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() 399 rval = QLA_FUNCTION_FAILED; in qla2x00_mailbox_command() [all …]
|
D | qla_bsg.c | 280 int rval = (DID_ERROR << 16); in qla2x00_process_els() local 303 rval = -EIO; in qla2x00_process_els() 311 rval = -EPERM; in qla2x00_process_els() 323 rval = -EPERM; in qla2x00_process_els() 336 rval = -EIO; in qla2x00_process_els() 347 rval = -ENOMEM; in qla2x00_process_els() 370 rval = -ENOMEM; in qla2x00_process_els() 379 rval = -ENOMEM; in qla2x00_process_els() 390 rval = -EAGAIN; in qla2x00_process_els() 397 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 …]
|
/linux-6.1.9/drivers/power/supply/ |
D | ip5xxx_power.c | 186 unsigned int rval; in ip5xxx_battery_get_status() local 189 ret = ip5xxx_read(ip5xxx, IP5XXX_READ0, &rval); in ip5xxx_battery_get_status() 193 switch (rval & IP5XXX_READ0_CHG_STAT) { in ip5xxx_battery_get_status() 218 unsigned int rval; in ip5xxx_battery_get_charge_type() local 221 ret = ip5xxx_read(ip5xxx, IP5XXX_READ0, &rval); in ip5xxx_battery_get_charge_type() 225 switch (rval & IP5XXX_READ0_CHG_STAT) { in ip5xxx_battery_get_charge_type() 248 unsigned int rval; in ip5xxx_battery_get_health() local 251 ret = ip5xxx_read(ip5xxx, IP5XXX_READ0, &rval); in ip5xxx_battery_get_health() 255 if (rval & IP5XXX_READ0_TIMEOUT) in ip5xxx_battery_get_health() 265 unsigned int rval; in ip5xxx_battery_get_voltage_max() local [all …]
|
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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_dir2.c | 263 int rval; in xfs_dir_createname() local 269 rval = xfs_dir_ino_validate(tp->t_mountp, inum); in xfs_dir_createname() 270 if (rval) in xfs_dir_createname() 271 return rval; in xfs_dir_createname() 294 rval = xfs_dir2_sf_addname(args); in xfs_dir_createname() 298 rval = xfs_dir2_isblock(args, &v); in xfs_dir_createname() 299 if (rval) in xfs_dir_createname() 302 rval = xfs_dir2_block_addname(args); in xfs_dir_createname() 306 rval = xfs_dir2_isleaf(args, &v); in xfs_dir_createname() 307 if (rval) in xfs_dir_createname() [all …]
|
/linux-6.1.9/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 | 459 int rval = QLA_SUCCESS; in qla4_82xx_md_rd_32() local 473 rval = QLA_ERROR; in qla4_82xx_md_rd_32() 479 return rval; in qla4_82xx_md_rd_32() 485 int rval = QLA_SUCCESS; in qla4_82xx_md_wr_32() local 498 rval = QLA_ERROR; in qla4_82xx_md_wr_32() 504 return rval; in qla4_82xx_md_wr_32() 1277 int i, rval = 0; in qla4_82xx_load_from_flash() local 1293 rval = -1; in qla4_82xx_load_from_flash() 1297 rval = qla4_82xx_pci_mem_write_2M(ha, memaddr, &data, 8); in qla4_82xx_load_from_flash() 1298 if (rval) in qla4_82xx_load_from_flash() [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/clk/ |
D | clk-bd718x7.c | 62 int rval; in bd71837_clk_is_enabled() local 65 rval = regmap_read(c->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 131 rval = devm_clk_hw_register(&pdev->dev, &c->hw); in bd71837_clk_probe() 132 if (rval) { in bd71837_clk_probe() 134 return rval; in bd71837_clk_probe() 136 rval = devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get, in bd71837_clk_probe() 138 if (rval) in bd71837_clk_probe() [all …]
|