/linux-6.1.9/drivers/iio/dac/ |
D | ltc2632.c | 36 const int vref_mv; member 49 int vref_mv; member 103 *val = st->vref_mv; in ltc2632_read_raw() 219 .vref_mv = 2500, 224 .vref_mv = 2500, 229 .vref_mv = 2500, 234 .vref_mv = 4096, 239 .vref_mv = 4096, 244 .vref_mv = 4096, 249 .vref_mv = 2500, [all …]
|
D | max517.c | 35 unsigned short vref_mv[8]; member 77 *val = data->vref_mv[chan->channel]; in max517_read_raw() 183 data->vref_mv[chan] = 5000; /* mV */ in max517_probe() 185 data->vref_mv[chan] = platform_data->vref_mv[chan]; in max517_probe()
|
D | ad5791.c | 89 unsigned short vref_mv; member 265 *val = st->vref_mv; in ad5791_read_raw() 270 do_div(val64, st->vref_mv); in ad5791_read_raw() 383 st->vref_mv = (pos_voltage_uv + neg_voltage_uv) / 1000; in ad5791_probe() 386 st->vref_mv = pdata->vref_pos_mv + pdata->vref_neg_mv; in ad5791_probe() 400 st->ctrl = AD5761_CTRL_LINCOMP(st->chip_info->get_lin_comp(st->vref_mv)) in ad5791_probe()
|
D | ad5504.c | 53 unsigned short vref_mv; member 112 *val = st->vref_mv; in ad5504_read_raw() 298 st->vref_mv = voltage_uv / 1000; in ad5504_probe() 300 st->vref_mv = pdata->vref_mv; in ad5504_probe()
|
D | mcp4922.c | 32 unsigned int vref_mv; member 74 *val = state->vref_mv; in mcp4922_read_raw() 153 state->vref_mv = ret / 1000; in mcp4922_probe()
|
D | ad5624r_spi.c | 55 *val = st->vref_mv; in ad5624r_read_raw() 266 st->vref_mv = voltage_uv / 1000; in ad5624r_probe() 268 st->vref_mv = st->chip_info->int_vref_mv; in ad5624r_probe()
|
D | ad5446.c | 47 unsigned short vref_mv; member 184 *val = st->vref_mv; in ad5446_read_raw() 268 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe() 270 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
|
D | stm32-dac-core.h | 34 int vref_mv; member
|
D | max5821.c | 36 unsigned short vref_mv; member 247 *val = data->vref_mv; in max5821_read_raw() 351 data->vref_mv = ret / 1000; in max5821_probe()
|
D | ad5624r.h | 58 unsigned short vref_mv; member
|
D | stm32-dac-core.c | 139 priv->common.vref_mv = ret / 1000; in stm32_dac_probe() 140 dev_dbg(dev, "vref+=%dmV\n", priv->common.vref_mv); in stm32_dac_probe()
|
/linux-6.1.9/drivers/hwmon/ |
D | ads7828.c | 110 unsigned int vref_mv = ADS7828_INT_VREF_MV; in ads7828_probe() local 125 if (ext_vref && pdata->vref_mv) in ads7828_probe() 126 vref_mv = pdata->vref_mv; in ads7828_probe() 133 vref_mv = DIV_ROUND_CLOSEST(vref_uv, 1000); in ads7828_probe() 134 if (vref_mv < ADS7828_EXT_VREF_MV_MIN || in ads7828_probe() 135 vref_mv > ADS7828_EXT_VREF_MV_MAX) in ads7828_probe() 148 vref_mv = clamp_val(vref_mv, ADS7828_EXT_VREF_MV_MIN, in ads7828_probe() 153 data->lsb_resol = DIV_ROUND_CLOSEST(vref_mv * 1000, 4096); in ads7828_probe() 157 data->lsb_resol = DIV_ROUND_CLOSEST(vref_mv * 1000, 256); in ads7828_probe()
|
/linux-6.1.9/drivers/iio/adc/ |
D | aspeed_adc.c | 118 int vref_mv; member 321 *val = data->vref_mv; in aspeed_adc_read_raw() 421 data->vref_mv = data->model_data->vref_fixed_mv; in aspeed_adc_vref_config() 435 data->vref_mv = regulator_get_voltage(data->regulator); in aspeed_adc_vref_config() 437 data->vref_mv /= 1000; in aspeed_adc_vref_config() 438 if ((data->vref_mv >= 1550) && (data->vref_mv <= 2700)) in aspeed_adc_vref_config() 444 else if ((data->vref_mv >= 900) && (data->vref_mv <= 1650)) in aspeed_adc_vref_config() 452 data->vref_mv); in aspeed_adc_vref_config() 458 data->vref_mv = 2500000; in aspeed_adc_vref_config() 461 &data->vref_mv); in aspeed_adc_vref_config() [all …]
|
D | ti-ads8688.c | 69 unsigned int vref_mv; member 124 ads8688_range_def[0].scale * st->vref_mv, in ads8688_show_scales() 125 ads8688_range_def[1].scale * st->vref_mv, in ads8688_show_scales() 126 ads8688_range_def[2].scale * st->vref_mv); in ads8688_show_scales() 262 scale_mv = st->vref_mv; in ads8688_read_raw() 303 if (offset == 0 && val2 == ads8688_range_def[0].scale * st->vref_mv) { in ads8688_write_raw() 310 if (val2 == ads8688_range_def[i].scale * st->vref_mv && in ads8688_write_raw() 436 st->vref_mv = ret / 1000; in ads8688_probe() 439 st->vref_mv = ADS8688_VREF_MV; in ads8688_probe()
|
D | ad7292.c | 81 unsigned short vref_mv; member 238 *val = st->vref_mv * ret; in ad7292_read_raw() 297 st->vref_mv = ret / 1000; in ad7292_probe() 300 st->vref_mv = 1250; in ad7292_probe()
|
D | ad7793.c | 257 unsigned int vref_mv) in ad7793_setup() argument 331 scale_uv = ((u64)vref_mv * 100000000) in ad7793_setup() 782 int ret, vref_mv = 0; in ad7793_probe() local 815 vref_mv = regulator_get_voltage(st->reg); in ad7793_probe() 816 if (vref_mv < 0) in ad7793_probe() 817 return vref_mv; in ad7793_probe() 819 vref_mv /= 1000; in ad7793_probe() 821 vref_mv = 1170; /* Build-in ref */ in ad7793_probe() 837 ret = ad7793_setup(indio_dev, pdata, vref_mv); in ad7793_probe()
|
D | nau7802.c | 56 u32 vref_mv; member 343 *val = st->vref_mv; in nau7802_read_raw() 455 st->vref_mv = tmp; in nau7802_probe() 479 st->scale_avail[i] = (((u64)st->vref_mv) * 1000000000ULL) in nau7802_probe()
|
D | ad7266.c | 29 unsigned long vref_mv; member 167 scale_mv = st->vref_mv; in ad7266_read_raw() 414 st->vref_mv = ret / 1000; in ad7266_probe() 420 st->vref_mv = 2500; in ad7266_probe()
|
D | ad7124.c | 153 unsigned int vref_mv; member 372 cfg->vref_mv = regulator_get_voltage(st->vref[refsel]); in ad7124_init_config_vref() 374 cfg->vref_mv /= 1000; in ad7124_init_config_vref() 377 cfg->vref_mv = 2500; in ad7124_init_config_vref() 595 *val = st->channels[chan->address].cfg.vref_mv; in ad7124_read_raw() 659 vref = st->channels[chan->address].cfg.vref_mv * 1000000LL; in ad7124_write_raw()
|
D | ti-ads131e08.c | 98 unsigned int vref_mv; member 381 st->vref_mv == ADS131E08_VREF_4V_mV); in ads131e08_config_reference_voltage() 527 *value = st->vref_mv; in ads131e08_read_raw() 707 st->vref_mv = ADS131E08_VREF_2V4_mV; in ads131e08_alloc_channels() 710 st->vref_mv = ADS131E08_VREF_4V_mV; in ads131e08_alloc_channels()
|
/linux-6.1.9/include/linux/iio/dac/ |
D | max517.h | 11 u16 vref_mv[8]; member
|
D | ad5504.h | 12 u16 vref_mv; member
|
/linux-6.1.9/include/linux/platform_data/ |
D | ads7828.h | 23 unsigned int vref_mv; member
|
/linux-6.1.9/include/linux/spi/ |
D | ads7846.h | 7 u16 vref_mv; /* external vref value, milliVolts member
|
/linux-6.1.9/drivers/input/touchscreen/ |
D | ads7846.c | 105 u16 vref_mv; member 503 retval *= ts->vref_mv; in SHOW() 558 if (!ts->vref_mv) { in ads784x_hwmon_register() 560 ts->vref_mv = 2500; in ads784x_hwmon_register() 566 if (!ts->vref_mv) { in ads784x_hwmon_register() 1156 of_property_read_u16(node, "ti,vref-mv", &pdata->vref_mv); in ads7846_probe_dt() 1277 ts->vref_mv = pdata->vref_mv; in ads7846_probe()
|