Lines Matching refs:flo

202 	struct stm32_dfsdm_filter_osr *flo = &fl->flo[fast];  in stm32_dfsdm_compute_osrs()  local
257 if (res >= flo->res) { in stm32_dfsdm_compute_osrs()
258 flo->res = res; in stm32_dfsdm_compute_osrs()
259 flo->fosr = fosr; in stm32_dfsdm_compute_osrs()
260 flo->iosr = iosr; in stm32_dfsdm_compute_osrs()
262 bits = fls(flo->res); in stm32_dfsdm_compute_osrs()
264 max = flo->res << 8; in stm32_dfsdm_compute_osrs()
267 if (flo->res > BIT(bits - 1)) in stm32_dfsdm_compute_osrs()
281 flo->rshift = 0; in stm32_dfsdm_compute_osrs()
282 flo->lshift = shift; in stm32_dfsdm_compute_osrs()
294 flo->rshift = 1 - shift; in stm32_dfsdm_compute_osrs()
295 flo->lshift = 1; in stm32_dfsdm_compute_osrs()
296 max >>= flo->rshift; in stm32_dfsdm_compute_osrs()
298 flo->max = (s32)max; in stm32_dfsdm_compute_osrs()
299 flo->bits = bits; in stm32_dfsdm_compute_osrs()
302 fast, flo->fosr, flo->iosr, in stm32_dfsdm_compute_osrs()
303 flo->res, bits, flo->rshift, in stm32_dfsdm_compute_osrs()
304 flo->lshift); in stm32_dfsdm_compute_osrs()
309 if (!flo->res) in stm32_dfsdm_compute_osrs()
322 memset(&fl->flo[0], 0, sizeof(fl->flo[0])); in stm32_dfsdm_compute_all_osrs()
323 memset(&fl->flo[1], 0, sizeof(fl->flo[1])); in stm32_dfsdm_compute_all_osrs()
461 struct stm32_dfsdm_filter_osr *flo = &fl->flo[0]; in stm32_dfsdm_channels_configure() local
473 if (fl->flo[1].res >= fl->flo[0].res) { in stm32_dfsdm_channels_configure()
475 flo = &fl->flo[1]; in stm32_dfsdm_channels_configure()
479 if (!flo->res) in stm32_dfsdm_channels_configure()
483 min(flo->bits, (u32)DFSDM_DATA_RES - 1)); in stm32_dfsdm_channels_configure()
492 DFSDM_CHCFGR2_DTRBS(flo->rshift)); in stm32_dfsdm_channels_configure()
507 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fl->fast]; in stm32_dfsdm_filter_configure() local
515 DFSDM_FCR_IOSR(flo->iosr - 1)); in stm32_dfsdm_filter_configure()
521 DFSDM_FCR_FOSR(flo->fosr - 1)); in stm32_dfsdm_filter_configure()
899 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fl->fast]; in stm32_dfsdm_process_data() local
907 if (*ptr > flo->max) in stm32_dfsdm_process_data()
913 *ptr <<= flo->lshift; in stm32_dfsdm_process_data()
1313 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fl->fast]; in stm32_dfsdm_read_raw() local
1314 u32 max = flo->max << (flo->lshift - chan->scan_type.shift); in stm32_dfsdm_read_raw()
1318 if (flo->lshift < chan->scan_type.shift) in stm32_dfsdm_read_raw()
1319 max = flo->max >> (chan->scan_type.shift - flo->lshift); in stm32_dfsdm_read_raw()