Searched refs:voltage_uv (Results 1 – 9 of 9) sorted by relevance
/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()
|
/drivers/iio/dac/ |
D | ad5624r_spi.c | 228 int ret, voltage_uv = 0; in ad5624r_probe() local 244 voltage_uv = ret; in ad5624r_probe() 251 if (voltage_uv) in ad5624r_probe() 252 st->vref_mv = voltage_uv / 1000; in ad5624r_probe() 266 !!voltage_uv, 16); in ad5624r_probe()
|
D | ad5686.c | 316 int ret, voltage_uv = 0; in ad5686_probe() local 335 voltage_uv = ret; in ad5686_probe() 341 if (voltage_uv) in ad5686_probe() 342 st->vref_mv = voltage_uv / 1000; in ad5686_probe() 359 !!voltage_uv, 0); in ad5686_probe()
|
D | ad5504.c | 280 int ret, voltage_uv = 0; in ad5504_probe() local 295 voltage_uv = ret; in ad5504_probe() 300 if (voltage_uv) in ad5504_probe() 301 st->vref_mv = voltage_uv / 1000; in ad5504_probe()
|
D | ad5446.c | 224 int ret, voltage_uv = 0; in ad5446_probe() local 236 voltage_uv = ret; in ad5446_probe() 263 else if (voltage_uv) in ad5446_probe() 264 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
|
/drivers/staging/iio/adc/ |
D | ad7780.c | 165 int ret, voltage_uv = 0; in ad7780_probe() local 182 voltage_uv = regulator_get_voltage(st->reg); in ad7780_probe() 188 if (voltage_uv) in ad7780_probe() 189 st->int_vref_mv = voltage_uv / 1000; in ad7780_probe()
|
D | ad7192.c | 653 int ret, voltage_uv = 0; in ad7192_probe() local 677 voltage_uv = regulator_get_voltage(st->reg); in ad7192_probe() 682 else if (voltage_uv) in ad7192_probe() 683 st->int_vref_mv = voltage_uv / 1000; in ad7192_probe()
|
/drivers/iio/adc/ |
D | ad7791.c | 228 int voltage_uv; in ad7791_read_raw() local 230 voltage_uv = regulator_get_voltage(st->reg); in ad7791_read_raw() 231 if (voltage_uv < 0) in ad7791_read_raw() 232 return voltage_uv; in ad7791_read_raw() 234 *val = voltage_uv / 1000; in ad7791_read_raw()
|
/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 711 int ret, voltage_uv = 0; in ad5933_probe() local 732 voltage_uv = regulator_get_voltage(st->reg); in ad5933_probe() 735 if (voltage_uv) in ad5933_probe() 736 st->vref_mv = voltage_uv / 1000; in ad5933_probe()
|