Lines Matching full:uv
347 int uv, ret; in ntc_adc_iio_read() local
349 ret = iio_read_channel_processed_scale(channel, &uv, 1000); in ntc_adc_iio_read()
363 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
366 uv = (data->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
370 return uv; in ntc_adc_iio_read()
382 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
389 if (uv == 0) in get_ohm_of_thermistor()
392 if (uv >= puv) in get_ohm_of_thermistor()
397 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
399 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
401 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
402 puo * uv - pdo * (puv - uv)); in get_ohm_of_thermistor()
404 n = div64_u64_safe(pdo * puo * uv, pdo * (puv - uv) - puo * uv); in get_ohm_of_thermistor()
583 ret = device_property_read_u32(dev, "pullup-uv", &data->pullup_uv); in ntc_thermistor_parse_props()
585 return dev_err_probe(dev, ret, "pullup-uv not specified\n"); in ntc_thermistor_parse_props()