/Linux-v5.4/drivers/iio/frequency/ |
D | adf4371.c | 331 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 …]
|
D | adf4350.c | 95 unsigned *readval) in adf4350_reg_access() argument 104 if (readval == NULL) { in adf4350_reg_access() 108 *readval = st->regs_hw[reg]; in adf4350_reg_access()
|
/Linux-v5.4/drivers/iio/adc/ |
D | ad7606_spi.c | 164 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()
|
D | ad7768-1.c | 219 int readval, ret; in ad7768_scan_direct() local 232 readval = ad7768_spi_reg_read(st, AD7768_REG_ADC_DATA, 3); in ad7768_scan_direct() 233 if (readval < 0) in ad7768_scan_direct() 234 return readval; in ad7768_scan_direct() 243 return readval; in ad7768_scan_direct() 249 unsigned int *readval) in ad7768_reg_access() argument 255 if (readval) { in ad7768_reg_access() 259 *readval = ret; in ad7768_reg_access()
|
D | ad7124.c | 183 unsigned int readval; in ad7124_spi_write_mask() local 186 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask() 190 readval &= ~mask; in ad7124_spi_write_mask() 191 readval |= val; in ad7124_spi_write_mask() 193 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask() 380 unsigned int readval, timeout; in ad7124_soft_reset() local 389 ret = ad_sd_read_reg(&st->sd, AD7124_STATUS, 1, &readval); in ad7124_soft_reset() 393 if (!(readval & AD7124_STATUS_POR_FLAG_MSK)) in ad7124_soft_reset()
|
D | ad7949.c | 203 unsigned int *readval) in ad7949_spi_reg_access() argument 208 if (readval) in ad7949_spi_reg_access() 209 *readval = ad7949_adc->cfg; in ad7949_spi_reg_access()
|
D | aspeed_adc.c | 153 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()
|
D | imx7d_adc.c | 394 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()
|
D | rcar-gyroadc.c | 247 unsigned int *readval) in rcar_gyroadc_reg_access() argument 252 if (readval == NULL) in rcar_gyroadc_reg_access() 265 *readval = readl(priv->regs + reg); in rcar_gyroadc_reg_access()
|
D | hi8435.c | 269 unsigned *readval) in hi8435_debugfs_reg_access() argument 275 if (readval != NULL) { in hi8435_debugfs_reg_access() 277 *readval = val; in hi8435_debugfs_reg_access()
|
D | ad7606.c | 66 unsigned int *readval) in ad7606_reg_access() argument 72 if (readval) { in ad7606_reg_access() 76 *readval = ret; in ad7606_reg_access()
|
D | max1027.c | 307 unsigned *readval) in max1027_debugfs_reg_access() argument 312 if (readval != NULL) in max1027_debugfs_reg_access()
|
D | vf610_adc.c | 775 unsigned *readval) in vf610_adc_reg_access() argument 779 if ((readval == NULL) || in vf610_adc_reg_access() 783 *readval = readl(info->regs + reg); in vf610_adc_reg_access()
|
D | ina2xx-adc.c | 874 unsigned reg, unsigned writeval, unsigned *readval) in ina2xx_debug_reg() argument 878 if (!readval) in ina2xx_debug_reg() 881 return regmap_read(chip->regmap, reg, readval); in ina2xx_debug_reg()
|
/Linux-v5.4/drivers/iio/light/ |
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-v5.4/drivers/iio/dac/ |
D | stm32-dac.c | 132 unsigned *readval) in stm32_dac_debugfs_reg_access() argument 136 if (!readval) in stm32_dac_debugfs_reg_access() 139 return regmap_read(dac->common->regmap, reg, readval); in stm32_dac_debugfs_reg_access()
|
D | ad5758.c | 496 unsigned int *readval) in ad5758_reg_access() argument 502 if (readval) { in ad5758_reg_access() 509 *readval = ret; in ad5758_reg_access()
|
/Linux-v5.4/drivers/gpio/ |
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-v5.4/drivers/net/can/sja1000/ |
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-v5.4/drivers/iio/imu/ |
D | adis.c | 223 unsigned int reg, unsigned int writeval, unsigned int *readval) in adis_debugfs_reg_access() argument 227 if (readval) { in adis_debugfs_reg_access() 232 *readval = val16; in adis_debugfs_reg_access()
|
/Linux-v5.4/drivers/iio/common/st_sensors/ |
D | st_sensors_core.c | 40 unsigned *readval) in st_sensors_debugfs_reg_access() argument 45 if (!readval) in st_sensors_debugfs_reg_access() 48 err = regmap_read(sdata->regmap, reg, readval); in st_sensors_debugfs_reg_access()
|
/Linux-v5.4/drivers/media/i2c/ |
D | ov2680.c | 271 u32 readval; in ov2680_mod_reg() local 274 ret = ov2680_read_reg(sensor, reg, &readval); in ov2680_mod_reg() 278 readval &= ~mask; in ov2680_mod_reg() 280 val |= readval; in ov2680_mod_reg()
|
/Linux-v5.4/drivers/iio/accel/ |
D | adxl372.c | 632 unsigned int *readval) in adxl372_reg_access() argument 636 if (readval) in adxl372_reg_access() 637 return regmap_read(st->regmap, reg, readval); in adxl372_reg_access()
|
/Linux-v5.4/include/linux/iio/common/ |
D | st_sensors.h | 295 unsigned *readval);
|
/Linux-v5.4/include/linux/iio/imu/ |
D | adis.h | 291 unsigned int reg, unsigned int writeval, unsigned int *readval);
|