Lines Matching refs:parent_rate

287 	unsigned long parent_rate;  in _clk_generic_round_rate()  local
289 parent_rate = clk_get_rate(clk->parent); in _clk_generic_round_rate()
291 div = parent_rate / rate; in _clk_generic_round_rate()
292 if (parent_rate % rate) in _clk_generic_round_rate()
298 return parent_rate / div; in _clk_generic_round_rate()
338 unsigned long parent_rate; in _clk_perclkx_set_rate() local
340 parent_rate = clk_get_rate(clk->parent); in _clk_perclkx_set_rate()
345 div = parent_rate / rate; in _clk_perclkx_set_rate()
346 if (div > 64 || div < 1 || ((parent_rate / div) != rate)) in _clk_perclkx_set_rate()
362 unsigned long parent_rate; in _clk_usb_recalc() local
364 parent_rate = clk_get_rate(clk->parent); in _clk_usb_recalc()
368 return parent_rate / (usb_pdf + 1U); in _clk_usb_recalc()
381 unsigned long parent_rate; in _clk_usb_set_rate() local
383 parent_rate = clk_get_rate(clk->parent); in _clk_usb_set_rate()
385 div = parent_rate / rate; in _clk_usb_set_rate()
386 if (div > 8 || div < 1 || ((parent_rate / div) != rate)) in _clk_usb_set_rate()
399 unsigned long parent_rate; in _clk_ssix_recalc() local
401 parent_rate = clk_get_rate(clk->parent); in _clk_ssix_recalc()
405 return 2UL * parent_rate / pdf; in _clk_ssix_recalc()
425 unsigned long parent_rate; in _clk_nfc_recalc() local
427 parent_rate = clk_get_rate(clk->parent); in _clk_nfc_recalc()
432 return parent_rate / (nfc_pdf + 1); in _clk_nfc_recalc()
518 unsigned long parent_rate; in _clk_fclk_get_rate() local
522 parent_rate = clk_get_rate(clk->parent); in _clk_fclk_get_rate()
524 return parent_rate / (div+1); in _clk_fclk_get_rate()
599 unsigned long parent_rate; in _clk_perclkx_recalc() local
601 parent_rate = clk_get_rate(clk->parent); in _clk_perclkx_recalc()
608 return parent_rate / (perclk_pdf + 1); in _clk_perclkx_recalc()
1045 unsigned long parent_rate; in _clk_clko_set_rate() local
1047 parent_rate = clk_get_rate(clk->parent); in _clk_clko_set_rate()
1049 div = parent_rate / rate; in _clk_clko_set_rate()
1051 if (div > 8 || div < 1 || ((parent_rate / div) != rate)) in _clk_clko_set_rate()
1069 unsigned long parent_rate; in _clk_clko_recalc() local
1071 parent_rate = clk_get_rate(clk->parent); in _clk_clko_recalc()
1078 return parent_rate / div; in _clk_clko_recalc()