Home
last modified time | relevance | path

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

12

/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/adc/
H A Dad7124.c266 unsigned int readval; in ad7124_spi_write_mask() local
269 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask()
273 readval &= ~mask; in ad7124_spi_write_mask()
274 readval |= val; in ad7124_spi_write_mask()
276 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask()
892 unsigned int *readval) in ad7124_reg_access() argument
900 if (readval) in ad7124_reg_access()
902 readval); in ad7124_reg_access()
947 unsigned int readval, timeout; in ad7124_soft_reset() local
957 ret = ad_sd_read_reg(&st->sd, AD7124_STATUS, 1, &readval); in ad7124_soft_reset()
[all …]
H A Dmax14001.c210 unsigned int *readval) in max14001_debugfs_reg_access() argument
214 if (readval) in max14001_debugfs_reg_access()
215 return regmap_read(st->regmap, reg, readval); in max14001_debugfs_reg_access()
H A Dad4134.c289 unsigned int *readval) in ad4134_debugfs_reg_access() argument
293 if (readval) in ad4134_debugfs_reg_access()
294 return regmap_read(st->regmap, reg, readval); in ad4134_debugfs_reg_access()
H A Dimx7d_adc.c396 unsigned *readval) in imx7d_adc_reg_access() argument
400 if (!readval || reg % 4 || reg > IMX7D_REG_ADC_ADC_CFG) in imx7d_adc_reg_access()
403 *readval = readl(info->regs + reg); in imx7d_adc_reg_access()
H A Dimx8qxp-adc.c284 unsigned int writeval, unsigned int *readval) in imx8qxp_adc_reg_access() argument
289 if (!readval || reg % 4 || reg > IMX8QXP_ADR_ADC_TST) in imx8qxp_adc_reg_access()
294 *readval = readl(adc->regs + reg); in imx8qxp_adc_reg_access()
H A Dmax1027.c406 unsigned int *readval) in max1027_debugfs_reg_access() argument
411 if (readval) { in max1027_debugfs_reg_access()
413 *readval = be16_to_cpu(st->buffer[0]); in max1027_debugfs_reg_access()
H A Dhi8435.c264 unsigned *readval) in hi8435_debugfs_reg_access() argument
270 if (readval != NULL) { in hi8435_debugfs_reg_access()
272 *readval = val; in hi8435_debugfs_reg_access()
H A Dexynos_adc.c503 unsigned *readval) in exynos_adc_reg_access() argument
507 if (readval == NULL) in exynos_adc_reg_access()
510 *readval = readl(info->regs + reg); in exynos_adc_reg_access()
H A Daspeed_adc.c403 unsigned int *readval) in aspeed_adc_reg_access() argument
407 if (!readval || reg % 4 || reg > ASPEED_REG_MAX) in aspeed_adc_reg_access()
410 *readval = readl(data->base + reg); in aspeed_adc_reg_access()
H A Dti-ads1119.c405 unsigned int *readval) in ads1119_debugfs_reg_access() argument
413 if (readval) { in ads1119_debugfs_reg_access()
419 *readval = ret; in ads1119_debugfs_reg_access()
H A Dadi-axi-adc.c589 unsigned int writeval, unsigned int *readval) in axi_adc_reg_access() argument
593 if (readval) in axi_adc_reg_access()
594 return regmap_read(st->regmap, reg, readval); in axi_adc_reg_access()
H A Dvf610_adc.c781 unsigned *readval) in vf610_adc_reg_access() argument
785 if ((readval == NULL) || in vf610_adc_reg_access()
789 *readval = readl(info->regs + reg); in vf610_adc_reg_access()
/linux/drivers/iio/light/
H A Dbh1780.c81 unsigned int *readval) in bh1780_debugfs_reg_access() argument
86 if (!readval) in bh1780_debugfs_reg_access()
93 *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/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/dac/
H A Dstm32-dac.c163 unsigned *readval) in stm32_dac_debugfs_reg_access() argument
167 if (!readval) in stm32_dac_debugfs_reg_access()
170 return regmap_read(dac->common->regmap, reg, readval); in stm32_dac_debugfs_reg_access()
H A Dad5758.c494 unsigned int *readval) in ad5758_reg_access() argument
500 if (readval) { in ad5758_reg_access()
507 *readval = ret; in ad5758_reg_access()
H A Dad3552r-hs.c494 unsigned int writeval, unsigned int *readval) in ad3552r_hs_reg_access() argument
506 if (readval) in ad3552r_hs_reg_access()
507 return ad3552r_hs_reg_read(st, reg, readval, 1); in ad3552r_hs_reg_access()
/linux/drivers/iio/imu/
H A Dadis16550.c176 u32 *readval, u32 writeval) in adis16550_spi_xfer() argument
181 bool wr = readval ? false : true; in adis16550_spi_xfer()
233 if (readval) { in adis16550_spi_xfer()
234 *readval = data << 16; in adis16550_spi_xfer()
248 if (readval) { in adis16550_spi_xfer()
249 *readval = (*readval & GENMASK(31, 16)) | data; in adis16550_spi_xfer()
H A Dadis.c230 unsigned int writeval, unsigned int *readval) in adis_debugfs_reg_access() argument
234 if (readval) { in adis_debugfs_reg_access()
240 *readval = val16; in adis_debugfs_reg_access()
/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()
H A Dadf4350.c106 unsigned *readval) in adf4350_reg_access() argument
115 if (readval == NULL) { in adf4350_reg_access()
119 *readval = st->regs_hw[reg]; in adf4350_reg_access()
/linux/drivers/iio/accel/
H A Dbma220_core.c373 unsigned int writeval, unsigned int *readval) in bma220_reg_access() argument
377 if (readval) in bma220_reg_access()
378 return regmap_read(data->regmap, reg, readval); in bma220_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