Home
last modified time | relevance | path

Searched refs:oversampling_ratio (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/iio/adc/
H A Dad7280a.c176 u8 oversampling_ratio; member
277 st->oversampling_ratio)); in ad7280_read_reg()
288 st->oversampling_ratio)); in ad7280_read_reg()
329 st->oversampling_ratio)); in ad7280_read_channel()
341 st->oversampling_ratio)); in ad7280_read_channel()
380 st->oversampling_ratio)); in ad7280_read_all_channels()
411 FIELD_PREP(AD7280A_CTRL_HB_CONV_AVG_MSK, st->oversampling_ratio)); in ad7280_sw_power_down()
465 FIELD_PREP(AD7280A_CTRL_HB_CONV_AVG_MSK, st->oversampling_ratio)); in ad7280_chain_setup()
873 (AD7280A_NUM_CH * ad7280a_n_avg[st->oversampling_ratio & 0x3])) - in ad7280_update_delay()
915 *val = ad7280a_n_avg[st->oversampling_ratio]; in ad7280_read_raw()
[all …]
H A Dat91-sama5d2_adc.c610 unsigned int oversampling_ratio; member
855 u32 oversampling_ratio, u32 trackx) in at91_adc_config_emr() argument
864 if (oversampling_ratio == st->soc_info.platform->oversampling_avail[i]) in at91_adc_config_emr()
871 switch (oversampling_ratio) { in at91_adc_config_emr()
910 st->oversampling_ratio = oversampling_ratio; in at91_adc_config_emr()
919 if (st->oversampling_ratio == 1) in at91_adc_adjust_val_osr()
921 else if (st->oversampling_ratio == 4) in at91_adc_adjust_val_osr()
923 else if (st->oversampling_ratio == 16) in at91_adc_adjust_val_osr()
925 else if (st->oversampling_ratio == 64) in at91_adc_adjust_val_osr()
927 else if (st->oversampling_ratio == 256) in at91_adc_adjust_val_osr()
[all …]
H A Dti-tsc2046.c130 unsigned int oversampling_ratio; member
285 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_read_one()
363 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_group_set_layout()
718 priv->ch_cfg[i].oversampling_ratio = 1; in tsc2046_adc_parse_fwnode()
745 priv->ch_cfg[reg].oversampling_ratio = overs; in tsc2046_adc_parse_fwnode()
/openbmc/linux/drivers/iio/accel/
H A Dbma400_core.c105 int oversampling_ratio; member
590 data->oversampling_ratio = -1; in bma400_get_accel_oversampling_ratio()
596 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio()
601 data->oversampling_ratio = -1; in bma400_get_accel_oversampling_ratio()
607 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio()
610 data->oversampling_ratio = 0; in bma400_get_accel_oversampling_ratio()
613 data->oversampling_ratio = -1; in bma400_get_accel_oversampling_ratio()
646 data->oversampling_ratio = val; in bma400_set_accel_oversampling_ratio()
662 data->oversampling_ratio = val; in bma400_set_accel_oversampling_ratio()
1006 if (data->oversampling_ratio < 0) in bma400_read_raw()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio128 What: /sys/bus/iio/devices/iio:deviceX/oversampling_ratio