Lines Matching refs:pres
241 u32 pres; in clk_master_pres_determine_rate() local
253 pres = 3; in clk_master_pres_determine_rate()
255 pres = 1 << i; in clk_master_pres_determine_rate()
257 req_parent.rate = req->rate * pres; in clk_master_pres_determine_rate()
262 &best_diff, &best_rate, pres); in clk_master_pres_determine_rate()
275 unsigned int pres; in clk_master_pres_set_rate() local
277 pres = DIV_ROUND_CLOSEST(parent_rate, rate); in clk_master_pres_set_rate()
278 if (pres > MASTER_PRES_MAX) in clk_master_pres_set_rate()
281 else if (pres == 3) in clk_master_pres_set_rate()
282 pres = MASTER_PRES_MAX; in clk_master_pres_set_rate()
283 else if (pres) in clk_master_pres_set_rate()
284 pres = ffs(pres) - 1; in clk_master_pres_set_rate()
289 (pres << master->layout->pres_shift)); in clk_master_pres_set_rate()
305 unsigned int val, pres; in clk_master_pres_recalc_rate() local
311 pres = (val >> master->layout->pres_shift) & MASTER_PRES_MASK; in clk_master_pres_recalc_rate()
312 if (pres == MASTER_PRES_MAX && characteristics->have_div3_pres) in clk_master_pres_recalc_rate()
313 pres = 3; in clk_master_pres_recalc_rate()
315 pres = (1 << pres); in clk_master_pres_recalc_rate()
317 return DIV_ROUND_CLOSEST_ULL(parent_rate, pres); in clk_master_pres_recalc_rate()