Lines Matching refs:freq
136 if (ssp_freq[i].freq % mclk_rate == 0) { in setup_initial_mclk_source()
182 if (ssp_freq[mn->mclk_source_clock].freq % mclk_rate != 0) { in check_current_mclk_source()
262 ssp_freq[mn->mclk_source_clock].freq / in mn_set_mclk()
324 static bool find_mn(uint32_t freq, uint32_t bclk, in find_mn() argument
328 uint32_t scr_div = freq / bclk; in find_mn()
330 tr_info(&mn_tr, "find_mn for freq %d bclk %d", freq, bclk); in find_mn()
332 if (freq % bclk == 0 && scr_div < (SSCR0_SCR_MASK >> 8) + 1) { in find_mn()
341 if ((bclk * 2) >= freq) in find_mn()
352 while (scr_div > 1 && freq % scr_div != 0) in find_mn()
356 mn_div = gcd(bclk, freq / scr_div); in find_mn()
359 n = freq / scr_div / mn_div; in find_mn()
391 if (find_mn(ssp_freq[mn->mclk_source_clock].freq, bclk, scr_div, m, n)) in find_bclk_source()
395 bclk, ssp_freq[mn->mclk_source_clock].freq); in find_bclk_source()
400 if (ssp_freq[i].freq % bclk == 0) { in find_bclk_source()
401 *scr_div = ssp_freq[i].freq / bclk; in find_bclk_source()
407 if (find_mn(ssp_freq[i].freq, bclk, in find_bclk_source()
532 if (find_mn(ssp_freq[mn->bclk_source_mn_clock].freq, bclk, scr_div, m, in setup_current_bclk_mn_source()