Lines Matching refs:characteristics

44 	const struct clk_master_characteristics *characteristics;  member
81 const struct clk_master_characteristics *characteristics = in clk_master_recalc_rate() local
82 master->characteristics; in clk_master_recalc_rate()
91 if (characteristics->have_div3_pres && pres == MASTER_PRES_MAX) in clk_master_recalc_rate()
96 rate /= characteristics->divisors[div]; in clk_master_recalc_rate()
98 if (rate < characteristics->output.min) in clk_master_recalc_rate()
100 else if (rate > characteristics->output.max) in clk_master_recalc_rate()
128 const struct clk_master_characteristics *characteristics) in at91_clk_register_master() argument
150 master->characteristics = characteristics; in at91_clk_register_master()
178 struct clk_master_characteristics *characteristics; in of_at91_clk_master_get_characteristics() local
180 characteristics = kzalloc(sizeof(*characteristics), GFP_KERNEL); in of_at91_clk_master_get_characteristics()
181 if (!characteristics) in of_at91_clk_master_get_characteristics()
184 if (of_at91_get_clk_range(np, "atmel,clk-output-range", &characteristics->output)) in of_at91_clk_master_get_characteristics()
188 characteristics->divisors, 4); in of_at91_clk_master_get_characteristics()
190 characteristics->have_div3_pres = in of_at91_clk_master_get_characteristics()
193 return characteristics; in of_at91_clk_master_get_characteristics()
196 kfree(characteristics); in of_at91_clk_master_get_characteristics()
208 struct clk_master_characteristics *characteristics; in of_at91_clk_master_setup() local
219 characteristics = of_at91_clk_master_get_characteristics(np); in of_at91_clk_master_setup()
220 if (!characteristics) in of_at91_clk_master_setup()
229 characteristics); in of_at91_clk_master_setup()
237 kfree(characteristics); in of_at91_clk_master_setup()