Searched refs:best_diff (Results 1 – 3 of 3) sorted by relevance
104 uint32_t *best_diff, in is_better() argument114 if (diff < *best_diff) { in is_better()115 *best_diff = diff; in is_better()128 uint32_t *best_diff, in check_pdm_frequencies() argument164 best_diff, best_rate, best_freq)) { in check_pdm_frequencies()199 best_diff, best_rate, best_freq)) { in check_pdm_frequencies()203 if (*best_diff == 0) { in check_pdm_frequencies()230 uint32_t best_diff = UINT32_MAX; in find_suitable_clock() local243 for (int r = 0; best_diff != 0 && r < ARRAY_SIZE(ratios); ++r) { in find_suitable_clock()247 &best_diff, &best_rate, &best_freq)) { in find_suitable_clock()[all …]
66 uint32_t best_diff = UINT32_MAX; in dsi_mcux_best_clock() local138 if ((cand_freq - target_freq) < best_diff) { in dsi_mcux_best_clock()140 best_diff = (cand_freq - target_freq); in dsi_mcux_best_clock()145 if (best_diff == 0U) { in dsi_mcux_best_clock()
92 uint32_t best_diff = UINT32_MAX; in find_suitable_clock() local97 for (r = 0; (best_diff != 0) && (r < ARRAY_SIZE(ratios)); ++r) { in find_suitable_clock()129 if (diff < best_diff) { in find_suitable_clock()133 best_diff = diff; in find_suitable_clock()155 for (uint8_t d = 0; (best_diff != 0) && (d < ARRAY_SIZE(dividers)); ++d) { in find_suitable_clock()165 if (diff < best_diff) { in find_suitable_clock()169 best_diff = diff; in find_suitable_clock()