Lines Matching refs:val_us
312 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()
362 *val_us = ina219_conv_time_tab_subsample[*bits]; in ina219_lookup_int_time()
364 *bits = find_closest(*val_us, ina219_conv_time_tab_average, in ina219_lookup_int_time()
366 *val_us = ina219_conv_time_tab_average[*bits]; in ina219_lookup_int_time()
374 unsigned int val_us, unsigned int *config) in ina219_set_int_time_vbus() argument
377 unsigned int val_us_best = val_us; in ina219_set_int_time_vbus()
392 unsigned int val_us, unsigned int *config) in ina219_set_int_time_vshunt() argument
395 unsigned int val_us_best = val_us; in ina219_set_int_time_vshunt()