/linux-6.3-rc2/drivers/iio/frequency/ |
A D | adf4371.c | 331 unsigned int readval, reg, bit; in adf4371_read() local 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() 461 unsigned int *readval) in adf4371_reg_access() argument [all …]
|
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()
|
A D | adf4350.c | 102 unsigned *readval) in adf4350_reg_access() argument 111 if (readval == NULL) { in adf4350_reg_access() 115 *readval = st->regs_hw[reg]; in adf4350_reg_access()
|
/linux-6.3-rc2/drivers/iio/adc/ |
A 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()
|
A D | ad7124.c | 236 unsigned int readval; in ad7124_spi_write_mask() local 243 readval &= ~mask; in ad7124_spi_write_mask() 244 readval |= val; in ad7124_spi_write_mask() 688 unsigned int *readval) in ad7124_reg_access() argument 696 if (readval) in ad7124_reg_access() 698 readval); in ad7124_reg_access() 757 unsigned int readval, timeout; in ad7124_soft_reset() local 770 if (!(readval & AD7124_STATUS_POR_FLAG_MSK)) in ad7124_soft_reset() 784 unsigned int readval, chip_id, silicon_rev; in ad7124_check_chip_id() local 791 chip_id = AD7124_DEVICE_ID_GET(readval); in ad7124_check_chip_id() [all …]
|
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()
|
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()
|
A D | ad9467.c | 158 unsigned int writeval, unsigned int *readval) in ad9467_reg_access() argument 164 if (readval == NULL) { in ad9467_reg_access() 174 *readval = ret; in ad9467_reg_access()
|
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()
|
A D | imx8qxp-adc.c | 286 unsigned int writeval, unsigned int *readval) in imx8qxp_adc_reg_access() argument 291 if (!readval || reg % 4 || reg > IMX8QXP_ADR_ADC_TST) in imx8qxp_adc_reg_access() 296 *readval = readl(adc->regs + reg); in imx8qxp_adc_reg_access()
|
A D | rcar-gyroadc.c | 242 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()
|
A D | hi8435.c | 267 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()
|
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()
|
A D | ad7606.c | 67 unsigned int *readval) in ad7606_reg_access() argument 73 if (readval) { in ad7606_reg_access() 77 *readval = ret; in ad7606_reg_access()
|
/linux-6.3-rc2/include/media/ |
A D | ov_16bit_addr_reg_helpers.h | 80 u32 readval; in ov_update_reg() local 83 ret = ov_read_reg8(client, reg, &readval); in ov_update_reg() 87 val = (readval & ~mask) | (val & mask); in ov_update_reg()
|
/linux-6.3-rc2/drivers/iio/light/ |
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-6.3-rc2/drivers/gpio/ |
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-6.3-rc2/drivers/iio/gyro/ |
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-6.3-rc2/drivers/net/can/sja1000/ |
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-6.3-rc2/drivers/iio/dac/ |
A D | stm32-dac.c | 171 unsigned *readval) in stm32_dac_debugfs_reg_access() argument 175 if (!readval) in stm32_dac_debugfs_reg_access() 178 return regmap_read(dac->common->regmap, reg, readval); in stm32_dac_debugfs_reg_access()
|
A D | ad5770r.c | 393 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()
|
/linux-6.3-rc2/include/linux/iio/adc/ |
A D | adi-axi-adc.h | 50 unsigned int writeval, unsigned int *readval);
|
/linux-6.3-rc2/drivers/iio/imu/ |
A D | adis.c | 251 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()
|
/linux-6.3-rc2/drivers/iio/accel/ |
A D | sca3300.c | 567 unsigned int *readval) in sca3300_debugfs_reg_access() argument 576 if (!readval) in sca3300_debugfs_reg_access() 583 *readval = value; in sca3300_debugfs_reg_access()
|
/linux-6.3-rc2/drivers/iio/common/st_sensors/ |
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()
|