Lines Matching refs:parent_rate

102 	unsigned long parent_rate;  in _clk_simple_round_rate()  local
104 parent_rate = clk_get_rate(clk->parent); in _clk_simple_round_rate()
106 div = parent_rate / rate; in _clk_simple_round_rate()
107 if (parent_rate % rate) in _clk_simple_round_rate()
113 return parent_rate / div; in _clk_simple_round_rate()
249 unsigned long parent_rate; in hclk_set_rate() local
251 parent_rate = clk_get_rate(clk->parent); in hclk_set_rate()
253 div = parent_rate / rate; in hclk_set_rate()
255 if (div > 16 || div < 1 || ((parent_rate / div) != rate)) in hclk_set_rate()
290 unsigned long parent_rate; in clk48m_set_rate() local
292 parent_rate = clk_get_rate(clk->parent); in clk48m_set_rate()
294 div = parent_rate / rate; in clk48m_set_rate()
296 if (div > 8 || div < 1 || ((parent_rate / div) != rate)) in clk48m_set_rate()
334 unsigned long parent_rate; in perclk1_set_rate() local
336 parent_rate = clk_get_rate(clk->parent); in perclk1_set_rate()
338 div = parent_rate / rate; in perclk1_set_rate()
340 if (div > 16 || div < 1 || ((parent_rate / div) != rate)) in perclk1_set_rate()
371 unsigned long parent_rate; in perclk2_set_rate() local
373 parent_rate = clk_get_rate(clk->parent); in perclk2_set_rate()
375 div = parent_rate / rate; in perclk2_set_rate()
377 if (div > 16 || div < 1 || ((parent_rate / div) != rate)) in perclk2_set_rate()
408 unsigned long parent_rate; in perclk3_set_rate() local
410 parent_rate = clk_get_rate(clk->parent); in perclk3_set_rate()
412 div = parent_rate / rate; in perclk3_set_rate()
414 if (div > 128 || div < 1 || ((parent_rate / div) != rate)) in perclk3_set_rate()