Lines Matching refs:flo

199 	struct stm32_dfsdm_filter_osr *flo = &fl->flo[fast];  in stm32_dfsdm_compute_osrs()  local
254 if (res >= flo->res) { in stm32_dfsdm_compute_osrs()
255 flo->res = res; in stm32_dfsdm_compute_osrs()
256 flo->fosr = fosr; in stm32_dfsdm_compute_osrs()
257 flo->iosr = iosr; in stm32_dfsdm_compute_osrs()
259 bits = fls(flo->res); in stm32_dfsdm_compute_osrs()
261 max = flo->res << 8; in stm32_dfsdm_compute_osrs()
264 if (flo->res > BIT(bits - 1)) in stm32_dfsdm_compute_osrs()
278 flo->rshift = 0; in stm32_dfsdm_compute_osrs()
279 flo->lshift = shift; in stm32_dfsdm_compute_osrs()
291 flo->rshift = 1 - shift; in stm32_dfsdm_compute_osrs()
292 flo->lshift = 1; in stm32_dfsdm_compute_osrs()
293 max >>= flo->rshift; in stm32_dfsdm_compute_osrs()
295 flo->max = (s32)max; in stm32_dfsdm_compute_osrs()
296 flo->bits = bits; in stm32_dfsdm_compute_osrs()
299 fast, flo->fosr, flo->iosr, in stm32_dfsdm_compute_osrs()
300 flo->res, bits, flo->rshift, in stm32_dfsdm_compute_osrs()
301 flo->lshift); in stm32_dfsdm_compute_osrs()
306 if (!flo->res) in stm32_dfsdm_compute_osrs()
319 memset(&fl->flo[0], 0, sizeof(fl->flo[0])); in stm32_dfsdm_compute_all_osrs()
320 memset(&fl->flo[1], 0, sizeof(fl->flo[1])); in stm32_dfsdm_compute_all_osrs()
458 struct stm32_dfsdm_filter_osr *flo = &fl->flo[0]; in stm32_dfsdm_channels_configure() local
470 if (fl->flo[1].res >= fl->flo[0].res) { in stm32_dfsdm_channels_configure()
472 flo = &fl->flo[1]; in stm32_dfsdm_channels_configure()
476 if (!flo->res) in stm32_dfsdm_channels_configure()
480 min(flo->bits, (u32)DFSDM_DATA_RES - 1)); in stm32_dfsdm_channels_configure()
489 DFSDM_CHCFGR2_DTRBS(flo->rshift)); in stm32_dfsdm_channels_configure()
504 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fl->fast]; in stm32_dfsdm_filter_configure() local
512 DFSDM_FCR_IOSR(flo->iosr - 1)); in stm32_dfsdm_filter_configure()
518 DFSDM_FCR_FOSR(flo->fosr - 1)); in stm32_dfsdm_filter_configure()
830 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fl->fast]; in stm32_dfsdm_process_data() local
838 if (*ptr > flo->max) in stm32_dfsdm_process_data()
844 *ptr <<= flo->lshift; in stm32_dfsdm_process_data()