Lines Matching refs:post_div_m
361 u32 post_div_m; in ti_fapll_synth_get_frac_rate() local
364 post_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M; in ti_fapll_synth_get_frac_rate()
365 frac_rate = current_rate * post_div_m; in ti_fapll_synth_get_frac_rate()
374 u32 post_div_m, synth_int_div = 0, synth_frac_div = 0, v; in ti_fapll_synth_set_frac_rate() local
376 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate()
377 post_div_m = post_div_m / SYNTH_MAX_INT_DIV; in ti_fapll_synth_set_frac_rate()
378 if (post_div_m > SYNTH_MAX_DIV_M) in ti_fapll_synth_set_frac_rate()
380 if (!post_div_m) in ti_fapll_synth_set_frac_rate()
381 post_div_m = 1; in ti_fapll_synth_set_frac_rate()
383 for (; post_div_m < SYNTH_MAX_DIV_M; post_div_m++) { in ti_fapll_synth_set_frac_rate()
387 rate * post_div_m); in ti_fapll_synth_set_frac_rate()
405 return post_div_m; in ti_fapll_synth_set_frac_rate()
448 u32 post_div_m = 0, v; in ti_fapll_synth_set_rate() local
459 post_div_m = DIV_ROUND_UP(frac_rate, rate); in ti_fapll_synth_set_rate()
460 if (post_div_m && (post_div_m <= SYNTH_MAX_DIV_M)) in ti_fapll_synth_set_rate()
461 post_rate = DIV_ROUND_UP(frac_rate, post_div_m); in ti_fapll_synth_set_rate()
468 post_div_m = ti_fapll_synth_set_frac_rate(synth, in ti_fapll_synth_set_rate()
474 v |= post_div_m; in ti_fapll_synth_set_rate()