Home
last modified time | relevance | path

Searched refs:readval (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/iio/adc/
H A Dad7124.c240 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 Dad7606_spi.c202 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 Dad7768-1.c224 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 Dad7949.c257 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 Dadi-axi-adc.c312 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 Dimx7d_adc.c397 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 Dmax1027.c420 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 Daspeed_adc.c359 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 Dti-ads1298.c416 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 Dti-ads1119.c398 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 Dad4695.c871 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 Dina2xx-adc.c877 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 Dti-ads131e08.c579 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 Dv4l2-cci.c156 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 Dbh1780.c82 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 Dgpio-htc-egpio.c108 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 Dadxrs290.c441 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 Dsja1000_isa.c95 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 Dadmv4420.c127 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 Dadis.c239 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 Dsca3300.c566 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 Dad5758.c495 unsigned int *readval) in ad5758_reg_access() argument
501 if (readval) { in ad5758_reg_access()
508 *readval = ret; in ad5758_reg_access()
H A Dad8460.c615 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 Dadi-axi-dac.c559 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 Dst_sensors_core.c35 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()

12