Home
last modified time | relevance | path

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

12

/drivers/iio/frequency/
Dadf4371.c331 unsigned int readval, reg, bit; in adf4371_read() local
337 ret = regmap_read(st->regmap, ADF4371_REG(0x7C), &readval); in adf4371_read()
341 if (readval == 0x00) { in adf4371_read()
350 ret = regmap_read(st->regmap, reg, &readval); in adf4371_read()
354 val = !(readval & BIT(bit)); in adf4371_read()
375 unsigned int bit, readval, reg; in adf4371_write() local
394 ret = regmap_read(st->regmap, reg, &readval); in adf4371_write()
398 readval &= ~BIT(bit); in adf4371_write()
399 readval |= (!power_down << bit); in adf4371_write()
401 ret = regmap_write(st->regmap, reg, readval); in adf4371_write()
[all …]
Dadf4350.c101 unsigned *readval) in adf4350_reg_access() argument
110 if (readval == NULL) { in adf4350_reg_access()
114 *readval = st->regs_hw[reg]; in adf4350_reg_access()
/drivers/iio/adc/
Dad7606_spi.c164 int readval; in ad7606_spi_write_mask() local
166 readval = st->bops->reg_read(st, addr); in ad7606_spi_write_mask()
167 if (readval < 0) in ad7606_spi_write_mask()
168 return readval; in ad7606_spi_write_mask()
170 readval &= ~mask; in ad7606_spi_write_mask()
171 readval |= val; in ad7606_spi_write_mask()
173 return st->bops->reg_write(st, addr, readval); in ad7606_spi_write_mask()
Dad7124.c234 unsigned int readval; in ad7124_spi_write_mask() local
237 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask()
241 readval &= ~mask; in ad7124_spi_write_mask()
242 readval |= val; in ad7124_spi_write_mask()
244 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask()
642 unsigned int *readval) in ad7124_reg_access() argument
650 if (readval) in ad7124_reg_access()
652 readval); in ad7124_reg_access()
682 unsigned int readval, timeout; in ad7124_soft_reset() local
691 ret = ad_sd_read_reg(&st->sd, AD7124_STATUS, 1, &readval); in ad7124_soft_reset()
[all …]
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()
Dad7949.c194 unsigned int *readval) in ad7949_spi_reg_access() argument
199 if (readval) in ad7949_spi_reg_access()
200 *readval = ad7949_adc->cfg; in ad7949_spi_reg_access()
Daspeed_adc.c153 unsigned int *readval) in aspeed_adc_reg_access() argument
157 if (!readval || reg % 4 || reg > ASPEED_REG_MAX) in aspeed_adc_reg_access()
160 *readval = readl(data->base + reg); in aspeed_adc_reg_access()
Dmax1027.c331 unsigned *readval) in max1027_debugfs_reg_access() argument
336 if (readval) { in max1027_debugfs_reg_access()
338 *readval = be16_to_cpu(st->buffer[0]); in max1027_debugfs_reg_access()
Dad9467.c158 unsigned int writeval, unsigned int *readval) in ad9467_reg_access() argument
164 if (readval == NULL) { in ad9467_reg_access()
175 *readval = ret; in ad9467_reg_access()
Drcar-gyroadc.c242 unsigned int *readval) in rcar_gyroadc_reg_access() argument
247 if (readval == NULL) in rcar_gyroadc_reg_access()
260 *readval = readl(priv->regs + reg); in rcar_gyroadc_reg_access()
Dimx7d_adc.c394 unsigned *readval) in imx7d_adc_reg_access() argument
398 if (!readval || reg % 4 || reg > IMX7D_REG_ADC_ADC_CFG) in imx7d_adc_reg_access()
401 *readval = readl(info->regs + reg); in imx7d_adc_reg_access()
Dhi8435.c267 unsigned *readval) in hi8435_debugfs_reg_access() argument
273 if (readval != NULL) { in hi8435_debugfs_reg_access()
275 *readval = val; in hi8435_debugfs_reg_access()
Dad7606.c66 unsigned int *readval) in ad7606_reg_access() argument
72 if (readval) { in ad7606_reg_access()
76 *readval = ret; in ad7606_reg_access()
/drivers/iio/light/
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()
/drivers/gpio/
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()
/drivers/iio/gyro/
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()
/drivers/net/can/sja1000/
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()
/drivers/iio/dac/
Dstm32-dac.c169 unsigned *readval) in stm32_dac_debugfs_reg_access() argument
173 if (!readval) in stm32_dac_debugfs_reg_access()
176 return regmap_read(dac->common->regmap, reg, readval); in stm32_dac_debugfs_reg_access()
Dad5770r.c393 unsigned int *readval) in ad5770r_reg_access() argument
397 if (readval) in ad5770r_reg_access()
398 return regmap_read(st->regmap, reg, readval); in ad5770r_reg_access()
Dad5758.c496 unsigned int *readval) in ad5758_reg_access() argument
502 if (readval) { in ad5758_reg_access()
509 *readval = ret; in ad5758_reg_access()
/drivers/iio/accel/
Dsca3300.c359 unsigned int *readval) in sca3300_debugfs_reg_access() argument
368 if (!readval) in sca3300_debugfs_reg_access()
375 *readval = value; in sca3300_debugfs_reg_access()
/drivers/iio/imu/
Dadis.c251 unsigned int writeval, unsigned int *readval) in adis_debugfs_reg_access() argument
255 if (readval) { in adis_debugfs_reg_access()
261 *readval = val16; in adis_debugfs_reg_access()
/drivers/media/i2c/
Dov2680.c268 u32 readval; in ov2680_mod_reg() local
271 ret = ov2680_read_reg(sensor, reg, &readval); in ov2680_mod_reg()
275 readval &= ~mask; in ov2680_mod_reg()
277 val |= readval; in ov2680_mod_reg()
/drivers/iio/common/st_sensors/
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()
/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_core.c301 unsigned int writeval, unsigned int *readval) in inv_icm42600_debugfs_reg() argument
308 if (readval) in inv_icm42600_debugfs_reg()
309 ret = regmap_read(st->map, reg, readval); in inv_icm42600_debugfs_reg()

12