Lines Matching refs:DIV_ROUND_CLOSEST
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()
548 fadc = DIV_ROUND_CLOSEST(st->fclk, AD7192_MODE_RATE(st->mode)); in ad7192_get_available_filter_freq()
549 freq[2] = DIV_ROUND_CLOSEST(fadc * 230, 1024); in ad7192_get_available_filter_freq()
550 freq[3] = DIV_ROUND_CLOSEST(fadc * 272, 1024); in ad7192_get_available_filter_freq()
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()
676 return DIV_ROUND_CLOSEST(fadc * 230, 1024); in ad7192_get_3db_filter_freq()