Searched refs:voltage_uv (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/drivers/hwmon/ |
D | ina3221.c | 141 int val, voltage_uv, ret; in ina3221_show_shunt_voltage() local 146 voltage_uv = val * 40; in ina3221_show_shunt_voltage() 148 return snprintf(buf, PAGE_SIZE, "%d\n", voltage_uv); in ina3221_show_shunt_voltage() 180 int val, current_ma, voltage_uv, ret; in ina3221_set_current() local 191 voltage_uv = DIV_ROUND_CLOSEST(current_ma * resistance_uo, 1000); in ina3221_set_current() 194 voltage_uv = clamp_val(voltage_uv, -163800, 163800); in ina3221_set_current() 197 val = DIV_ROUND_CLOSEST(voltage_uv, 5) & 0xfff8; in ina3221_set_current()
|
/Linux-v4.19/drivers/iio/dac/ |
D | ad5624r_spi.c | 227 int ret, voltage_uv = 0; in ad5624r_probe() local 243 voltage_uv = ret; in ad5624r_probe() 250 if (voltage_uv) in ad5624r_probe() 251 st->vref_mv = voltage_uv / 1000; in ad5624r_probe() 265 !!voltage_uv, 16); in ad5624r_probe()
|
D | ad5686.c | 377 int ret, i, voltage_uv = 0; in ad5686_probe() local 400 voltage_uv = ret; in ad5686_probe() 405 if (voltage_uv) in ad5686_probe() 406 st->vref_mv = voltage_uv / 1000; in ad5686_probe() 425 st->use_internal_vref = !voltage_uv; in ad5686_probe() 434 st->use_internal_vref = !voltage_uv; in ad5686_probe() 441 val = (voltage_uv | ref_bit_msk); in ad5686_probe()
|
D | ad5504.c | 279 int ret, voltage_uv = 0; in ad5504_probe() local 294 voltage_uv = ret; in ad5504_probe() 299 if (voltage_uv) in ad5504_probe() 300 st->vref_mv = voltage_uv / 1000; in ad5504_probe()
|
D | ad5446.c | 223 int ret, voltage_uv = 0; in ad5446_probe() local 235 voltage_uv = ret; in ad5446_probe() 262 else if (voltage_uv) in ad5446_probe() 263 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
|
/Linux-v4.19/drivers/staging/iio/adc/ |
D | ad7780.c | 164 int ret, voltage_uv = 0; in ad7780_probe() local 184 voltage_uv = regulator_get_voltage(st->reg); in ad7780_probe() 189 if (voltage_uv) in ad7780_probe() 190 st->int_vref_mv = voltage_uv / 1000; in ad7780_probe()
|
D | ad7192.c | 633 int ret, voltage_uv = 0; in ad7192_probe() local 675 voltage_uv = regulator_get_voltage(st->avdd); in ad7192_probe() 679 else if (voltage_uv) in ad7192_probe() 680 st->int_vref_mv = voltage_uv / 1000; in ad7192_probe()
|
/Linux-v4.19/drivers/iio/adc/ |
D | ad7791.c | 240 int voltage_uv; in ad7791_read_raw() local 242 voltage_uv = regulator_get_voltage(st->reg); in ad7791_read_raw() 243 if (voltage_uv < 0) in ad7791_read_raw() 244 return voltage_uv; in ad7791_read_raw() 246 *val = voltage_uv / 1000; in ad7791_read_raw()
|
/Linux-v4.19/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 695 int ret, voltage_uv = 0; in ad5933_probe() local 722 voltage_uv = regulator_get_voltage(st->reg); in ad5933_probe() 724 if (voltage_uv) in ad5933_probe() 725 st->vref_mv = voltage_uv / 1000; in ad5933_probe()
|