Lines Matching refs:uv
231 int raw, uv, ret; in ntc_adc_iio_read() local
239 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
242 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
245 return uv; in ntc_adc_iio_read()
350 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
358 if (uv == 0) in get_ohm_of_thermistor()
361 if (uv >= puv) in get_ohm_of_thermistor()
366 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
368 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
370 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
371 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
373 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()