Searched refs:div100 (Results 1 – 1 of 1) sorted by relevance
122 unsigned long div100 = 100 * (reg & JH71X0_CLK_INT_MASK) + in jh71x0_clk_frac_recalc_rate() local125 return (div100 >= JH71X0_CLK_FRAC_MIN) ? 100 * parent_rate / div100 : 0; in jh71x0_clk_frac_recalc_rate()133 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(parent100, rate), in jh71x0_clk_frac_determine_rate() local135 unsigned long result = parent100 / div100; in jh71x0_clk_frac_determine_rate()138 if (result > req->max_rate && div100 < JH71X0_CLK_FRAC_MAX) in jh71x0_clk_frac_determine_rate()139 result = parent100 / (div100 + 1); in jh71x0_clk_frac_determine_rate()140 if (result < req->min_rate && div100 > JH71X0_CLK_FRAC_MIN) in jh71x0_clk_frac_determine_rate()141 result = parent100 / (div100 - 1); in jh71x0_clk_frac_determine_rate()152 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(100 * parent_rate, rate), in jh71x0_clk_frac_set_rate() local154 u32 value = ((div100 % 100) << JH71X0_CLK_FRAC_SHIFT) | (div100 / 100); in jh71x0_clk_frac_set_rate()