Home
last modified time | relevance | path

Searched refs:best_diff (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/drivers/audio/
Ddmic_nrfx_pdm.c104 uint32_t *best_diff, in is_better() argument
114 if (diff < *best_diff) { in is_better()
115 *best_diff = diff; in is_better()
128 uint32_t *best_diff, in check_pdm_frequencies() argument
164 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() local
243 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 …]
/Zephyr-Core-3.7.0/drivers/mipi_dsi/
Ddsi_mcux.c66 uint32_t best_diff = UINT32_MAX; in dsi_mcux_best_clock() local
138 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()
/Zephyr-Core-3.7.0/drivers/i2s/
Di2s_nrfx.c92 uint32_t best_diff = UINT32_MAX; in find_suitable_clock() local
97 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()