Lines Matching refs:postdiv
818 u8 postdiv;
826 postdiv = 1;
828 postdiv = 2;
830 postdiv = 4;
832 postdiv = 8;
842 tmp = fout * p * postdiv;
849 do_div(tmp, p * postdiv);
868 tc358746->pll_post_div = postdiv;
876 dev_dbg(dev, "Found PLL settings: freq:%lu prediv:%u multi:%u postdiv:%u\n",
877 best_freq, p_best, m_best, postdiv);
1096 unsigned int postdiv, mclkdiv;
1134 postdiv = mclkdiv / prediv[i];
1136 if (postdiv % 2)
1139 if (postdiv >= 4 && postdiv <= 512) {
1141 mclk_postdiv = postdiv;
1142 best_mclk_rate = pll_rate / (prediv[i] * postdiv);
1147 /* No suitable prediv found, so try to adjust the postdiv */
1148 for (postdiv = 4; postdiv <= 512; postdiv += 2) {
1151 pre = mclkdiv / postdiv;
1154 mclk_postdiv = postdiv;
1155 best_mclk_rate = pll_rate / (pre * postdiv);
1174 dev_dbg(dev, "Found MCLK settings: freq:%lu prediv:%u postdiv:%u\n",
1184 unsigned int prediv, postdiv;
1192 postdiv = FIELD_GET(MCLK_LOW_MASK, val) + 1;
1193 postdiv += FIELD_GET(MCLK_HIGH_MASK, val) + 1;
1207 return tc358746->pll_rate / (prediv * postdiv);