Home
last modified time | relevance | path

Searched refs:raw_sample (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/include/linux/iio/adc/
Dad_sigma_delta.h55 int (*postprocess_sample)(struct ad_sigma_delta *, unsigned int raw_sample);
148 unsigned int raw_sample) in ad_sigma_delta_postprocess_sample() argument
151 return sd->info->postprocess_sample(sd, raw_sample); in ad_sigma_delta_postprocess_sample()
/linux-5.19.10/drivers/iio/adc/
Dad7780.c185 unsigned int raw_sample) in ad7780_postprocess_sample() argument
190 if ((raw_sample & AD7780_ERR) || in ad7780_postprocess_sample()
191 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample()
195 st->gain = ad778x_gain[raw_sample & AD7780_GAIN]; in ad7780_postprocess_sample()
196 st->odr = ad778x_odr_avail[raw_sample & AD7780_FILTER]; in ad7780_postprocess_sample()
Dad_sigma_delta.c280 unsigned int sample, raw_sample; in ad_sigma_delta_single_conversion() local
314 &raw_sample); in ad_sigma_delta_single_conversion()
331 sample = raw_sample >> chan->scan_type.shift; in ad_sigma_delta_single_conversion()
335 ret = ad_sigma_delta_postprocess_sample(sigma_delta, raw_sample); in ad_sigma_delta_single_conversion()