Searched refs:find_closest (Results 1 – 14 of 14) sorted by relevance
/Linux-v5.10/drivers/iio/adc/ |
D | ina2xx-adc.c | 293 bits = find_closest(val, ina226_avg_tab, in ina226_set_average() 316 bits = find_closest(val_us, ina226_conv_time_tab, in ina226_set_int_time_vbus() 335 bits = find_closest(val_us, ina226_conv_time_tab, in ina226_set_int_time_vshunt() 357 *bits = find_closest(*val_us, ina219_conv_time_tab_subsample, in ina219_lookup_int_time() 361 *bits = find_closest(*val_us, ina219_conv_time_tab_average, in ina219_lookup_int_time() 437 bits = find_closest(gain, ina219_vshunt_gain_tab, in ina219_set_vshunt_pga_gain()
|
D | ad7606.c | 265 i = find_closest(val2, st->scale_avail, st->num_scales); in ad7606_write_raw() 280 i = find_closest(val, st->oversampling_avail, in ad7606_write_raw()
|
/Linux-v5.10/include/linux/ |
D | util_macros.h | 27 #define find_closest(x, a, as) __find_closest(x, a, as, <=) macro
|
/Linux-v5.10/drivers/hwmon/ |
D | ina3221.c | 396 idx = find_closest(val, ina3221_avg_samples, in ina3221_write_chip() 410 idx = find_closest(tmp, ina3221_conv_time, in ina3221_write_chip()
|
D | tc654.c | 402 data->duty_cycle = find_closest(val, tc654_pwm_map, in pwm_store()
|
D | ina2xx.c | 176 avg_bits = find_closest(avg, ina226_avg_tab, in ina226_interval_to_reg()
|
D | lm75.c | 408 index = find_closest(val, data->params->sample_times, in lm75_update_interval()
|
D | lm85.c | 182 return find_closest(range, lm85_range_map, ARRAY_SIZE(lm85_range_map)); in RANGE_TO_REG() 203 return find_closest(freq, map, map_size); in FREQ_TO_REG()
|
D | adt7475.c | 681 val = find_closest(val, autorange_table, ARRAY_SIZE(autorange_table)); in point2_store() 996 out = find_closest(val, pwmfreq_table, ARRAY_SIZE(pwmfreq_table)); in pwmfreq_store()
|
D | adt7470.c | 739 index = find_closest(freq, adt7470_freq_map, in pwm1_freq_store()
|
/Linux-v5.10/drivers/iio/light/ |
D | vl6180.c | 371 i = find_closest(gain, vl6180_als_gain_tab, in vl6180_set_als_gain()
|
D | max44000.c | 368 int alspga = find_closest(valus, in max44000_write_raw()
|
D | si1133.c | 665 scale_integer = find_closest(scale_integer, si1133_scale_available, in si1133_scale_to_swgain()
|
/Linux-v5.10/drivers/hwmon/pmbus/ |
D | max20730.c | 511 idx = find_closest(direct_to_val(word, PSC_CURRENT_OUT, info), in max20730_write_word_data()
|