Searched refs:fadc (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/iio/adc/ |
H A D | ad7192.c | 537 unsigned int fadc; in ad7192_get_available_filter_freq() local 540 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq() 542 freq[0] = DIV_ROUND_CLOSEST(fadc * 240, 1024); in ad7192_get_available_filter_freq() 544 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq() 546 freq[1] = DIV_ROUND_CLOSEST(fadc * 240, 1024); in ad7192_get_available_filter_freq() 549 freq[2] = DIV_ROUND_CLOSEST(fadc * 230, 1024); in ad7192_get_available_filter_freq() 666 unsigned int fadc; in ad7192_get_3db_filter_freq() local 668 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_3db_filter_freq() 672 return DIV_ROUND_CLOSEST(fadc * 240, 1024); in ad7192_get_3db_filter_freq() 674 return DIV_ROUND_CLOSEST(fadc * 272, 1024); in ad7192_get_3db_filter_freq() [all …]
|
H A D | ad7124.c | 289 unsigned int fadc; in ad7124_get_3db_filter_freq() local 291 fadc = st->channels[channel].cfg.odr; in ad7124_get_3db_filter_freq() 295 return DIV_ROUND_CLOSEST(fadc * 230, 1000); in ad7124_get_3db_filter_freq() 297 return DIV_ROUND_CLOSEST(fadc * 262, 1000); in ad7124_get_3db_filter_freq()
|