Lines Matching refs:rtbl
69 static unsigned long pll_calc_rate(struct pll_rate_tbl *rtbl, in pll_calc_rate() argument
75 mode = rtbl[index].mode ? 256 : 1; in pll_calc_rate()
76 rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n)); in pll_calc_rate()
79 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000; in pll_calc_rate()
100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index()
148 struct pll_rate_tbl *rtbl = pll->vco->rtbl; in clk_pll_set_rate() local
159 val |= (rtbl[i].p & PLL_DIV_P_MASK) << PLL_DIV_P_SHIFT; in clk_pll_set_rate()
179 return pll_calc_rate(vco->rtbl, prate, index, NULL); in vco_calc_rate()
234 struct pll_rate_tbl *rtbl = vco->rtbl; in clk_vco_set_rate() local
246 val |= (rtbl[i].mode & PLL_MODE_MASK) << PLL_MODE_SHIFT; in clk_vco_set_rate()
251 val |= (rtbl[i].n & PLL_DIV_N_MASK) << PLL_DIV_N_SHIFT; in clk_vco_set_rate()
254 if (rtbl[i].mode) in clk_vco_set_rate()
255 val |= (rtbl[i].m & PLL_DITH_FDBK_M_MASK) << in clk_vco_set_rate()
258 val |= (rtbl[i].m & PLL_NORM_FDBK_M_MASK) << in clk_vco_set_rate()
278 *cfg_reg, struct pll_rate_tbl *rtbl, u8 rtbl_cnt, in clk_register_vco_pll() argument
289 !rtbl || !rtbl_cnt) { in clk_register_vco_pll()
305 vco->rtbl = rtbl; in clk_register_vco_pll()