Lines Matching full:pl
32 /* PL: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 */
36 static u32 pl_to_div(u32 pl) in pl_to_div() argument
38 if (pl >= ARRAY_SIZE(_pl_to_div)) in pl_to_div()
41 return _pl_to_div[pl]; in pl_to_div()
46 u32 pl; in div_to_pl() local
48 for (pl = 0; pl < ARRAY_SIZE(_pl_to_div) - 1; pl++) { in div_to_pl()
49 if (_pl_to_div[pl] >= div) in div_to_pl()
50 return pl; in div_to_pl()
73 pll->pl = (val >> GPCPLL_COEFF_P_SHIFT) & MASK(GPCPLL_COEFF_P_WIDTH); in gk20a_pllg_read_mnp()
84 val |= (pll->pl & MASK(GPCPLL_COEFF_P_WIDTH)) << GPCPLL_COEFF_P_SHIFT; in gk20a_pllg_write_mnp()
95 divider = pll->m * clk->pl_to_div(pll->pl); in gk20a_pllg_calc_rate()
111 u32 pl; in gk20a_pllg_calc_mnp() local
139 for (pl = low_pl; pl <= high_pl; pl++) { in gk20a_pllg_calc_mnp()
142 target_vco_f = target_clk_f * clk->pl_to_div(pl); in gk20a_pllg_calc_mnp()
171 lwv = (vco_f + (clk->pl_to_div(pl) / 2)) in gk20a_pllg_calc_mnp()
172 / clk->pl_to_div(pl); in gk20a_pllg_calc_mnp()
179 best_pl = pl; in gk20a_pllg_calc_mnp()
199 pll->pl = best_pl; in gk20a_pllg_calc_mnp()
204 "actual target freq %d KHz, M %d, N %d, PL %d(div%d)\n", in gk20a_pllg_calc_mnp()
205 target_freq / KHZ, pll->m, pll->n, pll->pl, in gk20a_pllg_calc_mnp()
206 clk->pl_to_div(pll->pl)); in gk20a_pllg_calc_mnp()
343 /* just do NDIV slide if there is no change to M and PL */ in gk20a_pllg_program_mnp_slide()
344 if (pll->m == cur_pll.m && pll->pl == cur_pll.pl) in gk20a_pllg_program_mnp_slide()