Lines Matching refs:parent_rate
27 unsigned long parent_rate) in at91sam9x5_clk_smd_recalc_rate() argument
36 return parent_rate / (smddiv + 1); in at91sam9x5_clk_smd_recalc_rate()
40 unsigned long *parent_rate) in at91sam9x5_clk_smd_round_rate() argument
46 if (rate >= *parent_rate) in at91sam9x5_clk_smd_round_rate()
47 return *parent_rate; in at91sam9x5_clk_smd_round_rate()
49 div = *parent_rate / rate; in at91sam9x5_clk_smd_round_rate()
51 return *parent_rate / (SMD_MAX_DIV + 1); in at91sam9x5_clk_smd_round_rate()
53 bestrate = *parent_rate / div; in at91sam9x5_clk_smd_round_rate()
54 tmp = *parent_rate / (div + 1); in at91sam9x5_clk_smd_round_rate()
85 unsigned long parent_rate) in at91sam9x5_clk_smd_set_rate() argument
88 unsigned long div = parent_rate / rate; in at91sam9x5_clk_smd_set_rate()
90 if (parent_rate % rate || div < 1 || div > (SMD_MAX_DIV + 1)) in at91sam9x5_clk_smd_set_rate()