Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/adc/
H A 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()
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()
356 if (*val_us > 68100 || *val_us < 84) in ina219_lookup_int_time()
359 if (*val_us <= 532) { in ina219_lookup_int_time()
362 *val_us = ina219_conv_time_tab_subsample[*bits]; in ina219_lookup_int_time()
366 *val_us = ina219_conv_time_tab_average[*bits]; in ina219_lookup_int_time()
377 unsigned int val_us_best = val_us; in ina219_set_int_time_vbus()
[all …]
/openbmc/linux/drivers/iio/light/
H A 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()