Lines Matching full:ratio
102 uint8_t ratio, in is_better() argument
108 uint32_t act_rate = freq / ratio; in is_better()
112 LOG_DBG("Freq %u, ratio %u, act_rate %u", freq, ratio, act_rate); in is_better()
127 uint8_t ratio, in check_pdm_frequencies() argument
150 uint32_t req_freq = req_rate * ratio; in check_pdm_frequencies()
163 is_better(act_freq, ratio, req_rate, in check_pdm_frequencies()
198 if (is_better(freq_val, ratio, req_rate, in check_pdm_frequencies()
211 * checking next ones for the current ratio after in check_pdm_frequencies()
214 if ((freq_val / ratio) > req_rate) { in check_pdm_frequencies()
244 uint8_t ratio = ratios[r].ratio_val; in find_suitable_clock() local
246 if (check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()
248 config->ratio = ratios[r].ratio_enum; in find_suitable_clock()
259 uint8_t ratio = 64; in find_suitable_clock() local
261 (void)check_pdm_frequencies(drv_cfg, config, pdm_cfg, ratio, in find_suitable_clock()