Lines Matching refs:uv
329 int raw, uv, ret; in ntc_adc_iio_read() local
337 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
340 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
343 return uv; in ntc_adc_iio_read()
445 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
453 if (uv == 0) in get_ohm_of_thermistor()
456 if (uv >= puv) in get_ohm_of_thermistor()
461 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
463 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
465 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
466 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
468 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()