Lines Matching full:mult
50 /* Valid PLL MULT Table */
53 /* Valid PLL MULT range, (max, min) */
82 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local
85 mult = readl_relaxed(pll->base + pll->cfg_offset); in clk_pllv4_recalc_rate()
86 mult &= BM_PLL_MULT; in clk_pllv4_recalc_rate()
87 mult >>= BP_PLL_MULT; in clk_pllv4_recalc_rate()
95 return (parent_rate * mult) + (u32)temp64; in clk_pllv4_recalc_rate()
107 u32 mult; in clk_pllv4_round_rate() local
112 mult = temp64; in clk_pllv4_round_rate()
113 if (mult >= pllv4_mult_range[1] && in clk_pllv4_round_rate()
114 mult <= pllv4_mult_range[0]) { in clk_pllv4_round_rate()
115 round_rate = parent_rate * mult; in clk_pllv4_round_rate()
158 static bool clk_pllv4_is_valid_mult(struct clk_pllv4 *pll, unsigned int mult) in clk_pllv4_is_valid_mult() argument
162 /* check if mult is in valid MULT table */ in clk_pllv4_is_valid_mult()
164 if (mult >= pllv4_mult_range[1] && in clk_pllv4_is_valid_mult()
165 mult <= pllv4_mult_range[0]) in clk_pllv4_is_valid_mult()
169 if (pllv4_mult_table[i] == mult) in clk_pllv4_is_valid_mult()
181 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local
184 mult = rate / parent_rate; in clk_pllv4_set_rate()
186 if (!clk_pllv4_is_valid_mult(pll, mult)) in clk_pllv4_set_rate()
192 temp64 = (u64)(rate - mult * parent_rate); in clk_pllv4_set_rate()
199 val |= mult << BP_PLL_MULT; in clk_pllv4_set_rate()