Searched refs:diff_rate (Results 1 – 2 of 2) sorted by relevance
400 unsigned int diff_rate; in mchp_i2s_mcc_clk_get_rate_diff() local406 diff_rate = abs(rate - round_rate); in mchp_i2s_mcc_clk_get_rate_diff()407 if (diff_rate < *best_diff_rate) { in mchp_i2s_mcc_clk_get_rate_diff()409 *best_diff_rate = diff_rate; in mchp_i2s_mcc_clk_get_rate_diff()
577 unsigned long diff_rate; in mchp_pdmc_hw_params() local583 diff_rate = abs((fs * 16 * osr_start) - round_rate); in mchp_pdmc_hw_params()584 if (diff_rate < best_diff_rate) { in mchp_pdmc_hw_params()585 best_diff_rate = diff_rate; in mchp_pdmc_hw_params()