Lines Matching refs:uv
348 int uv, ret; in ntc_adc_iio_read() local
350 ret = iio_read_channel_processed_scale(channel, &uv, 1000); in ntc_adc_iio_read()
364 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
367 uv = (data->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
371 return uv; in ntc_adc_iio_read()
383 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
390 if (uv == 0) in get_ohm_of_thermistor()
393 if (uv >= puv) in get_ohm_of_thermistor()
398 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
400 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
402 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
403 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
405 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()