Lines Matching refs:uv
326 int uv, ret; in ntc_adc_iio_read() local
328 ret = iio_read_channel_processed_scale(channel, &uv, 1000); in ntc_adc_iio_read()
342 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
345 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
349 return uv; in ntc_adc_iio_read()
451 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
459 if (uv == 0) in get_ohm_of_thermistor()
462 if (uv >= puv) in get_ohm_of_thermistor()
467 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
469 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
471 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
472 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
474 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()