Lines Matching full:ratio
141 uint8_t ratio, in is_better() argument
147 uint32_t act_rate = freq / ratio; in is_better()
151 LOG_DBG("Freq %u, ratio %u, act_rate %u", freq, ratio, act_rate); in is_better()
166 uint8_t ratio, in check_pdm_frequencies() argument
176 uint32_t req_freq = req_rate * ratio; in check_pdm_frequencies()
181 is_better(act_freq, ratio, req_rate, best_diff, best_rate, best_freq)) { in check_pdm_frequencies()
199 is_better(act_freq, ratio, req_rate, best_diff, best_rate, best_freq)) { in check_pdm_frequencies()
224 uint32_t req_freq = req_rate * ratio; in check_pdm_frequencies()
236 is_better(act_freq, ratio, req_rate, best_diff, best_rate, best_freq)) { in check_pdm_frequencies()
270 if (is_better(freq_val, ratio, req_rate, in check_pdm_frequencies()
283 * checking next ones for the current ratio after in check_pdm_frequencies()
286 if ((freq_val / ratio) > req_rate) { in check_pdm_frequencies()
335 uint8_t ratio = ratios[r].ratio_val; in find_suitable_clock() local
337 if (check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()
339 config->ratio = ratios[r].ratio_enum; in find_suitable_clock()
350 uint8_t ratio = 64; in find_suitable_clock() local
352 (void)check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()