Lines Matching refs:main

143 	struct clk_main_osc *main = to_clk_main_osc(clk);  in clk_main_osc_enable()  local
144 void __iomem *reg = main->reg; in clk_main_osc_enable()
170 struct clk_main_osc *main = to_clk_main_osc(clk); in clk_main_osc_disable() local
171 void __iomem *reg = main->reg; in clk_main_osc_disable()
196 struct clk_main_osc *main; in at91_clk_main_osc() local
203 main = kzalloc(sizeof(*main), GFP_KERNEL); in at91_clk_main_osc()
204 if (!main) in at91_clk_main_osc()
207 main->reg = reg; in at91_clk_main_osc()
208 clk = &main->clk; in at91_clk_main_osc()
218 kfree(main); in at91_clk_main_osc()
250 struct clk_main *main = to_clk_main(clk); in clk_rm9200_main_enable() local
252 return clk_main_probe_frequency(main->reg); in clk_rm9200_main_enable()
262 struct clk_main *main; in at91_clk_rm9200_main() local
269 main = kzalloc(sizeof(*main), GFP_KERNEL); in at91_clk_rm9200_main()
270 if (!main) in at91_clk_rm9200_main()
273 main->reg = reg; in at91_clk_rm9200_main()
274 clk = &main->clk; in at91_clk_rm9200_main()
279 kfree(main); in at91_clk_rm9200_main()
304 struct clk_main *main = to_clk_main(clk); in clk_sam9x5_main_enable() local
305 void __iomem *reg = main->reg; in clk_sam9x5_main_enable()
317 struct clk_main *main = to_clk_main(clk); in clk_sam9x5_main_set_parent() local
318 void __iomem *reg = main->reg; in clk_sam9x5_main_set_parent()
321 index = at91_clk_mux_val_to_index(main->clk_mux_table, in clk_sam9x5_main_set_parent()
322 main->num_parents, AT91_CLK_ID_TO_DID(parent->id)); in clk_sam9x5_main_set_parent()
353 struct clk_main *main = NULL; in at91_clk_sam9x5_main() local
360 main = kzalloc(sizeof(*main), GFP_KERNEL); in at91_clk_sam9x5_main()
361 if (!main) in at91_clk_sam9x5_main()
364 main->reg = reg; in at91_clk_sam9x5_main()
365 main->parent_names = parent_names; in at91_clk_sam9x5_main()
366 main->num_parents = num_parents; in at91_clk_sam9x5_main()
367 main->clk_mux_table = clk_mux_table; in at91_clk_sam9x5_main()
368 main->type = type; in at91_clk_sam9x5_main()
369 clk = &main->clk; in at91_clk_sam9x5_main()
373 main->parent_names[clk_main_parent_select(val)]); in at91_clk_sam9x5_main()
375 kfree(main); in at91_clk_sam9x5_main()