Home
last modified time | relevance | path

Searched refs:min_mult (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/clk/renesas/
H A Drcar-gen4-cpg.c104 unsigned int min_mult, max_mult, ni, nf; in cpg_pll_8_25_clk_determine_rate() local
109 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_8_25_clk_determine_rate()
111 if (max_mult < min_mult) in cpg_pll_8_25_clk_determine_rate()
116 if (ni < min_mult) { in cpg_pll_8_25_clk_determine_rate()
117 ni = min_mult; in cpg_pll_8_25_clk_determine_rate()
126 ni = clamp(ni, min_mult, max_mult); in cpg_pll_8_25_clk_determine_rate()
296 unsigned int min_mult, max_mult, mult; in cpg_z_clk_determine_rate() local
311 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate()
313 if (max_mult < min_mult) in cpg_z_clk_determine_rate()
317 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
H A Drcar-gen3-cpg.c69 unsigned int min_mult, max_mult, mult; in cpg_pll_clk_determine_rate() local
73 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_clk_determine_rate()
75 if (max_mult < min_mult) in cpg_pll_clk_determine_rate()
79 mult = clamp(mult, min_mult, max_mult); in cpg_pll_clk_determine_rate()
193 unsigned int min_mult, max_mult, mult; in cpg_z_clk_determine_rate() local
208 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate()
210 if (max_mult < min_mult) in cpg_z_clk_determine_rate()
214 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
H A Drcar-gen2-cpg.c70 unsigned int min_mult, max_mult, mult; in cpg_z_clk_determine_rate() local
72 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate()
74 if (max_mult < min_mult) in cpg_z_clk_determine_rate()
78 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()