Searched refs:val_us (Results 1 – 3 of 3) sorted by relevance
312 unsigned int val_us, unsigned int *config) in ina226_set_int_time_vbus() argument316 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 …]
1491 u32 val_ms, val_us; in adxl380_write_event_value() local1531 val_us = val * 1000000 + val2; in adxl380_write_event_value()1534 val_us); in adxl380_write_event_value()1536 val_us = val * 1000000 + val2; in adxl380_write_event_value()1539 val_us); in adxl380_write_event_value()
559 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw() local570 time_ms = (val_us * f_samp_1_024mhz) / 1000; /* 1 ms, 2 ms, ... (power of two) */ in _as73211_write_raw()