/linux/drivers/iio/adc/ |
H A D | ad7124.c | 240 unsigned int readval; in ad7124_spi_write_mask() local 243 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask() 247 readval &= ~mask; in ad7124_spi_write_mask() 248 readval |= val; in ad7124_spi_write_mask() 250 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask() 687 unsigned int *readval) in ad7124_reg_access() argument 695 if (readval) in ad7124_reg_access() 697 readval); in ad7124_reg_access() 756 unsigned int readval, timeout; in ad7124_soft_reset() local 766 ret = ad_sd_read_reg(&st->sd, AD7124_STATUS, 1, &readval); in ad7124_soft_reset() [all …]
|
H A D | ad7606_spi.c | 202 int readval; in ad7606_spi_write_mask() local 204 readval = st->bops->reg_read(st, addr); in ad7606_spi_write_mask() 205 if (readval < 0) in ad7606_spi_write_mask() 206 return readval; in ad7606_spi_write_mask() 208 readval &= ~mask; in ad7606_spi_write_mask() 209 readval |= val; in ad7606_spi_write_mask() 211 return st->bops->reg_write(st, addr, readval); in ad7606_spi_write_mask()
|
H A D | ad7768-1.c | 224 int readval, ret; in ad7768_scan_direct() local 237 readval = ad7768_spi_reg_read(st, AD7768_REG_ADC_DATA, 3); in ad7768_scan_direct() 238 if (readval < 0) in ad7768_scan_direct() 239 return readval; in ad7768_scan_direct() 248 return readval; in ad7768_scan_direct() 254 unsigned int *readval) in ad7768_reg_access() argument 260 if (readval) { in ad7768_reg_access() 264 *readval = ret; in ad7768_reg_access()
|
H A D | ad7949.c | 257 unsigned int *readval) in ad7949_spi_reg_access() argument 262 if (readval) in ad7949_spi_reg_access() 263 *readval = ad7949_adc->cfg; in ad7949_spi_reg_access()
|
H A D | adi-axi-adc.c | 312 unsigned int writeval, unsigned int *readval) in axi_adc_reg_access() argument 316 if (readval) in axi_adc_reg_access() 317 return regmap_read(st->regmap, reg, readval); in axi_adc_reg_access()
|
H A D | imx7d_adc.c | 397 unsigned *readval) in imx7d_adc_reg_access() argument 401 if (!readval || reg % 4 || reg > IMX7D_REG_ADC_ADC_CFG) in imx7d_adc_reg_access() 404 *readval = readl(info->regs + reg); in imx7d_adc_reg_access()
|
H A D | max1027.c | 420 unsigned int *readval) in max1027_debugfs_reg_access() argument 425 if (readval) { in max1027_debugfs_reg_access() 427 *readval = be16_to_cpu(st->buffer[0]); in max1027_debugfs_reg_access()
|
H A D | aspeed_adc.c | 359 unsigned int *readval) in aspeed_adc_reg_access() argument 363 if (!readval || reg % 4 || reg > ASPEED_REG_MAX) in aspeed_adc_reg_access() 366 *readval = readl(data->base + reg); in aspeed_adc_reg_access()
|
H A D | ti-ads1298.c | 416 unsigned int writeval, unsigned int *readval) in ads1298_reg_access() argument 420 if (readval) in ads1298_reg_access() 421 return regmap_read(priv->regmap, reg, readval); in ads1298_reg_access()
|
H A D | ti-ads1119.c | 398 unsigned int *readval) in ads1119_debugfs_reg_access() argument 406 if (readval) { in ads1119_debugfs_reg_access() 412 *readval = ret; in ads1119_debugfs_reg_access()
|
H A D | ad4695.c | 871 unsigned int *readval) in ad4695_debugfs_reg_access() argument 876 if (readval) { in ad4695_debugfs_reg_access() 879 return regmap_read(st->regmap, reg, readval); in ad4695_debugfs_reg_access() 882 return regmap_read(st->regmap16, reg, readval); in ad4695_debugfs_reg_access()
|
H A D | ina2xx-adc.c | 877 unsigned reg, unsigned writeval, unsigned *readval) in ina2xx_debug_reg() argument 881 if (!readval) in ina2xx_debug_reg() 884 return regmap_read(chip->regmap, reg, readval); in ina2xx_debug_reg()
|
H A D | ti-ads131e08.c | 579 unsigned int reg, unsigned int writeval, unsigned int *readval) in ads131e08_debugfs_reg_access() argument 583 if (readval) { in ads131e08_debugfs_reg_access() 585 *readval = ret; in ads131e08_debugfs_reg_access()
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-cci.c | 156 u64 readval; in cci_update_bits() local 159 ret = cci_read(map, reg, &readval, err); in cci_update_bits() 163 val = (readval & ~mask) | (val & mask); in cci_update_bits()
|
/linux/drivers/iio/light/ |
H A D | bh1780.c | 82 unsigned int *readval) in bh1780_debugfs_reg_access() argument 87 if (!readval) in bh1780_debugfs_reg_access() 94 *readval = ret; in bh1780_debugfs_reg_access()
|
/linux/drivers/gpio/ |
H A D | gpio-htc-egpio.c | 108 unsigned long readval = egpio_readw(ei, ei->ack_register); in egpio_handler() local 109 pr_debug("IRQ reg: %x\n", (unsigned int)readval); in egpio_handler() 113 readval &= ei->irqs_enabled; in egpio_handler() 114 for_each_set_bit(irqpin, &readval, ei->nirqs) { in egpio_handler()
|
/linux/drivers/iio/gyro/ |
H A D | adxrs290.c | 441 unsigned int *readval) in adxrs290_reg_access_rw() argument 449 *readval = ret; in adxrs290_reg_access_rw() 455 unsigned int writeval, unsigned int *readval) in adxrs290_reg_access() argument 459 if (readval) in adxrs290_reg_access() 460 return adxrs290_reg_access_rw(st->spi, reg, readval); in adxrs290_reg_access()
|
/linux/drivers/net/can/sja1000/ |
H A D | sja1000_isa.c | 95 u8 readval; in sja1000_isa_port_read_reg_indirect() local 99 readval = inb(base + 1); in sja1000_isa_port_read_reg_indirect() 102 return readval; in sja1000_isa_port_read_reg_indirect()
|
/linux/drivers/iio/frequency/ |
H A D | admv4420.c | 127 u32 *readval) in admv4420_reg_access() argument 131 if (readval) in admv4420_reg_access() 132 return regmap_read(st->regmap, reg, readval); in admv4420_reg_access()
|
/linux/drivers/iio/imu/ |
H A D | adis.c | 239 unsigned int writeval, unsigned int *readval) in adis_debugfs_reg_access() argument 243 if (readval) { in adis_debugfs_reg_access() 249 *readval = val16; in adis_debugfs_reg_access()
|
/linux/drivers/iio/accel/ |
H A D | sca3300.c | 566 unsigned int *readval) in sca3300_debugfs_reg_access() argument 575 if (!readval) in sca3300_debugfs_reg_access() 582 *readval = value; in sca3300_debugfs_reg_access()
|
/linux/drivers/iio/dac/ |
H A D | ad5758.c | 495 unsigned int *readval) in ad5758_reg_access() argument 501 if (readval) { in ad5758_reg_access() 508 *readval = ret; in ad5758_reg_access()
|
H A D | ad8460.c | 615 unsigned int writeval, unsigned int *readval) in ad8460_reg_access() argument 619 if (readval) in ad8460_reg_access() 620 return regmap_read(state->regmap, reg, readval); in ad8460_reg_access()
|
H A D | adi-axi-dac.c | 559 unsigned int writeval, unsigned int *readval) in axi_dac_reg_access() argument 563 if (readval) in axi_dac_reg_access() 564 return regmap_read(st->regmap, reg, readval); in axi_dac_reg_access()
|
/linux/drivers/iio/common/st_sensors/ |
H A D | st_sensors_core.c | 35 unsigned *readval) in st_sensors_debugfs_reg_access() argument 40 if (!readval) in st_sensors_debugfs_reg_access() 43 err = regmap_read(sdata->regmap, reg, readval); in st_sensors_debugfs_reg_access()
|