Lines Matching refs:oversamp
78 unsigned int oversamp; member
192 unsigned int fast, unsigned int oversamp) in stm32_dfsdm_compute_osrs() argument
201 pr_debug("Requested oversampling: %d\n", oversamp); in stm32_dfsdm_compute_osrs()
229 if (d > oversamp) in stm32_dfsdm_compute_osrs()
231 else if (d != oversamp) in stm32_dfsdm_compute_osrs()
313 unsigned int oversamp) in stm32_dfsdm_compute_all_osrs() argument
322 ret0 = stm32_dfsdm_compute_osrs(fl, 0, oversamp); in stm32_dfsdm_compute_all_osrs()
323 ret1 = stm32_dfsdm_compute_osrs(fl, 1, oversamp); in stm32_dfsdm_compute_all_osrs()
683 unsigned int oversamp; in dfsdm_adc_set_samp_freq() local
686 oversamp = DIV_ROUND_CLOSEST(spi_freq, sample_freq); in dfsdm_adc_set_samp_freq()
690 sample_freq, spi_freq / oversamp); in dfsdm_adc_set_samp_freq()
692 ret = stm32_dfsdm_compute_all_osrs(indio_dev, oversamp); in dfsdm_adc_set_samp_freq()
696 adc->sample_freq = spi_freq / oversamp; in dfsdm_adc_set_samp_freq()
697 adc->oversamp = oversamp; in dfsdm_adc_set_samp_freq()
1199 adc->oversamp = val; in stm32_dfsdm_write_raw()
1254 *val = adc->oversamp; in stm32_dfsdm_read_raw()
1440 adc->oversamp = DFSDM_DEFAULT_OVERSAMPLING; in stm32_dfsdm_adc_init()
1441 ret = stm32_dfsdm_compute_all_osrs(indio_dev, adc->oversamp); in stm32_dfsdm_adc_init()