Home
last modified time | relevance | path

Searched refs:val_us (Results 1 – 2 of 2) sorted by relevance

/drivers/iio/adc/
Dina2xx-adc.c312 unsigned int val_us, unsigned int *config) in ina226_set_int_time_vbus() argument
316 if (val_us > 8244 || val_us < 140) in ina226_set_int_time_vbus()
319 bits = find_closest(val_us, ina226_conv_time_tab, in ina226_set_int_time_vbus()
331 unsigned int val_us, unsigned int *config) in ina226_set_int_time_vshunt() argument
335 if (val_us > 8244 || val_us < 140) in ina226_set_int_time_vshunt()
338 bits = find_closest(val_us, ina226_conv_time_tab, in ina226_set_int_time_vshunt()
354 static int ina219_lookup_int_time(unsigned int *val_us, int *bits) in ina219_lookup_int_time() argument
356 if (*val_us > 68100 || *val_us < 84) in ina219_lookup_int_time()
359 if (*val_us <= 532) { in ina219_lookup_int_time()
360 *bits = find_closest(*val_us, ina219_conv_time_tab_subsample, in ina219_lookup_int_time()
[all …]
/drivers/iio/light/
Das73211.c489 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw() local
500 time_ms = (val_us * f_samp_1_024mhz) / 1000; /* 1 ms, 2 ms, ... (power of two) */ in _as73211_write_raw()