Lines Matching refs:clk_data

29 	struct hisi_clock_data *clk_data;  in hisi_clk_alloc()  local
33 clk_data = devm_kmalloc(&pdev->dev, sizeof(*clk_data), GFP_KERNEL); in hisi_clk_alloc()
34 if (!clk_data) in hisi_clk_alloc()
40 clk_data->base = devm_ioremap(&pdev->dev, in hisi_clk_alloc()
42 if (!clk_data->base) in hisi_clk_alloc()
51 clk_data->clk_data.clks = clk_table; in hisi_clk_alloc()
52 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_alloc()
54 return clk_data; in hisi_clk_alloc()
61 struct hisi_clock_data *clk_data; in hisi_clk_init() local
71 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in hisi_clk_init()
72 if (!clk_data) in hisi_clk_init()
75 clk_data->base = base; in hisi_clk_init()
80 clk_data->clk_data.clks = clk_table; in hisi_clk_init()
81 clk_data->clk_data.clk_num = nr_clks; in hisi_clk_init()
82 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data->clk_data); in hisi_clk_init()
83 return clk_data; in hisi_clk_init()
85 kfree(clk_data); in hisi_clk_init()
107 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_fixed_rate()
114 clk_unregister_fixed_rate(data->clk_data.clks[clks[i].id]); in hisi_clk_register_fixed_rate()
137 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_fixed_factor()
144 clk_unregister_fixed_factor(data->clk_data.clks[clks[i].id]); in hisi_clk_register_fixed_factor()
175 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_mux()
182 clk_unregister_mux(data->clk_data.clks[clks[i].id]); in hisi_clk_register_mux()
205 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_phase()
237 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_divider()
244 clk_unregister_divider(data->clk_data.clks[clks[i].id]); in hisi_clk_register_divider()
274 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_gate()
281 clk_unregister_gate(data->clk_data.clks[clks[i].id]); in hisi_clk_register_gate()
311 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_gate_sep()
341 data->clk_data.clks[clks[i].id] = clk; in hi6220_clk_register_divider()