Lines Matching refs:hclk_div_ratio
37 uint32_t hclk_div_ratio, bclk_div_ratio; in esai_get_clock_rate_config() local
72 hclk_div_ratio = 1; in esai_get_clock_rate_config()
93 hclk_div_ratio = DIV_ROUND_UP(extal_rate, hclk_rate); in esai_get_clock_rate_config()
95 if (hclk_div_ratio > 256) { in esai_get_clock_rate_config()
102 hclk_div_ratio = DIV_ROUND_UP(extal_rate, hclk_rate); in esai_get_clock_rate_config()
104 if (hclk_div_ratio > 256) { in esai_get_clock_rate_config()
113 cfg->hclk_div_ratio = hclk_div_ratio; in esai_get_clock_rate_config()
119 extal_rate = DIV_ROUND_UP(extal_rate, hclk_div_ratio); in esai_get_clock_rate_config()
126 hclk_div_ratio = DIV_ROUND_UP(extal_rate, bclk_rate); in esai_get_clock_rate_config()
129 if (hclk_div_ratio > 256 * 16) { in esai_get_clock_rate_config()
132 hclk_div_ratio = DIV_ROUND_UP(extal_rate, bclk_rate); in esai_get_clock_rate_config()
136 if (hclk_div_ratio < 256) { in esai_get_clock_rate_config()
138 cfg->hclk_div_ratio = hclk_div_ratio; in esai_get_clock_rate_config()
143 hclk_div_ratio = DIV_ROUND_UP(extal_rate / i, bclk_rate); in esai_get_clock_rate_config()
144 bclk_div_ratio = DIV_ROUND_UP(extal_rate / hclk_div_ratio, bclk_rate); in esai_get_clock_rate_config()
149 cfg->hclk_div_ratio = hclk_div_ratio; in esai_get_clock_rate_config()
172 cfg->hclk_div_ratio = hclk_div_ratio; in esai_get_clock_rate_config()
263 cfg->hclk_div_ratio = 1; in esai_get_xceiver_default_config()
306 ESAI_TCCR_TPM(cfg->hclk_div_ratio - 1); in esai_commit_config()
347 ESAI_RCCR_RPM(cfg->hclk_div_ratio - 1); in esai_commit_config()