Lines Matching refs:post_div_m
362 u32 post_div_m; in ti_fapll_synth_get_frac_rate() local
365 post_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M; in ti_fapll_synth_get_frac_rate()
366 frac_rate = current_rate * post_div_m; in ti_fapll_synth_get_frac_rate()
375 u32 post_div_m, synth_int_div = 0, synth_frac_div = 0, v; in ti_fapll_synth_set_frac_rate() local
377 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate()
378 post_div_m = post_div_m / SYNTH_MAX_INT_DIV; in ti_fapll_synth_set_frac_rate()
379 if (post_div_m > SYNTH_MAX_DIV_M) in ti_fapll_synth_set_frac_rate()
381 if (!post_div_m) in ti_fapll_synth_set_frac_rate()
382 post_div_m = 1; in ti_fapll_synth_set_frac_rate()
384 for (; post_div_m < SYNTH_MAX_DIV_M; post_div_m++) { in ti_fapll_synth_set_frac_rate()
388 rate * post_div_m); in ti_fapll_synth_set_frac_rate()
406 return post_div_m; in ti_fapll_synth_set_frac_rate()
449 u32 post_div_m = 0, v; in ti_fapll_synth_set_rate() local
460 post_div_m = DIV_ROUND_UP(frac_rate, rate); in ti_fapll_synth_set_rate()
461 if (post_div_m && (post_div_m <= SYNTH_MAX_DIV_M)) in ti_fapll_synth_set_rate()
462 post_rate = DIV_ROUND_UP(frac_rate, post_div_m); in ti_fapll_synth_set_rate()
469 post_div_m = ti_fapll_synth_set_frac_rate(synth, in ti_fapll_synth_set_rate()
475 v |= post_div_m; in ti_fapll_synth_set_rate()