• Home
  • Raw
  • Download

Lines Matching refs:clks

51 	clk_data->clk_data.clks = clk_table;  in hisi_clk_alloc()
80 clk_data->clk_data.clks = clk_table; in hisi_clk_init()
91 int hisi_clk_register_fixed_rate(const struct hisi_fixed_rate_clock *clks, in hisi_clk_register_fixed_rate() argument
98 clk = clk_register_fixed_rate(NULL, clks[i].name, in hisi_clk_register_fixed_rate()
99 clks[i].parent_name, in hisi_clk_register_fixed_rate()
100 clks[i].flags, in hisi_clk_register_fixed_rate()
101 clks[i].fixed_rate); in hisi_clk_register_fixed_rate()
104 __func__, clks[i].name); in hisi_clk_register_fixed_rate()
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()
120 int hisi_clk_register_fixed_factor(const struct hisi_fixed_factor_clock *clks, in hisi_clk_register_fixed_factor() argument
128 clk = clk_register_fixed_factor(NULL, clks[i].name, in hisi_clk_register_fixed_factor()
129 clks[i].parent_name, in hisi_clk_register_fixed_factor()
130 clks[i].flags, clks[i].mult, in hisi_clk_register_fixed_factor()
131 clks[i].div); in hisi_clk_register_fixed_factor()
134 __func__, clks[i].name); in hisi_clk_register_fixed_factor()
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()
150 int hisi_clk_register_mux(const struct hisi_mux_clock *clks, in hisi_clk_register_mux() argument
158 u32 mask = BIT(clks[i].width) - 1; in hisi_clk_register_mux()
160 clk = clk_register_mux_table(NULL, clks[i].name, in hisi_clk_register_mux()
161 clks[i].parent_names, in hisi_clk_register_mux()
162 clks[i].num_parents, clks[i].flags, in hisi_clk_register_mux()
163 base + clks[i].offset, clks[i].shift, in hisi_clk_register_mux()
164 mask, clks[i].mux_flags, in hisi_clk_register_mux()
165 (u32 *)clks[i].table, &hisi_clk_lock); in hisi_clk_register_mux()
168 __func__, clks[i].name); in hisi_clk_register_mux()
172 if (clks[i].alias) in hisi_clk_register_mux()
173 clk_register_clkdev(clk, clks[i].alias, NULL); in hisi_clk_register_mux()
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()
189 const struct hisi_phase_clock *clks, in hisi_clk_register_phase() argument
197 clk = clk_register_hisi_phase(dev, &clks[i], base, in hisi_clk_register_phase()
201 clks[i].name); in hisi_clk_register_phase()
205 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_phase()
212 int hisi_clk_register_divider(const struct hisi_divider_clock *clks, in hisi_clk_register_divider() argument
220 clk = clk_register_divider_table(NULL, clks[i].name, in hisi_clk_register_divider()
221 clks[i].parent_name, in hisi_clk_register_divider()
222 clks[i].flags, in hisi_clk_register_divider()
223 base + clks[i].offset, in hisi_clk_register_divider()
224 clks[i].shift, clks[i].width, in hisi_clk_register_divider()
225 clks[i].div_flags, in hisi_clk_register_divider()
226 clks[i].table, in hisi_clk_register_divider()
230 __func__, clks[i].name); in hisi_clk_register_divider()
234 if (clks[i].alias) in hisi_clk_register_divider()
235 clk_register_clkdev(clk, clks[i].alias, NULL); in hisi_clk_register_divider()
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()
250 int hisi_clk_register_gate(const struct hisi_gate_clock *clks, in hisi_clk_register_gate() argument
258 clk = clk_register_gate(NULL, clks[i].name, in hisi_clk_register_gate()
259 clks[i].parent_name, in hisi_clk_register_gate()
260 clks[i].flags, in hisi_clk_register_gate()
261 base + clks[i].offset, in hisi_clk_register_gate()
262 clks[i].bit_idx, in hisi_clk_register_gate()
263 clks[i].gate_flags, in hisi_clk_register_gate()
267 __func__, clks[i].name); in hisi_clk_register_gate()
271 if (clks[i].alias) in hisi_clk_register_gate()
272 clk_register_clkdev(clk, clks[i].alias, NULL); in hisi_clk_register_gate()
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()
287 void hisi_clk_register_gate_sep(const struct hisi_gate_clock *clks, in hisi_clk_register_gate_sep() argument
295 clk = hisi_register_clkgate_sep(NULL, clks[i].name, in hisi_clk_register_gate_sep()
296 clks[i].parent_name, in hisi_clk_register_gate_sep()
297 clks[i].flags, in hisi_clk_register_gate_sep()
298 base + clks[i].offset, in hisi_clk_register_gate_sep()
299 clks[i].bit_idx, in hisi_clk_register_gate_sep()
300 clks[i].gate_flags, in hisi_clk_register_gate_sep()
304 __func__, clks[i].name); in hisi_clk_register_gate_sep()
308 if (clks[i].alias) in hisi_clk_register_gate_sep()
309 clk_register_clkdev(clk, clks[i].alias, NULL); in hisi_clk_register_gate_sep()
311 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_gate_sep()
316 void __init hi6220_clk_register_divider(const struct hi6220_divider_clock *clks, in hi6220_clk_register_divider() argument
324 clk = hi6220_register_clkdiv(NULL, clks[i].name, in hi6220_clk_register_divider()
325 clks[i].parent_name, in hi6220_clk_register_divider()
326 clks[i].flags, in hi6220_clk_register_divider()
327 base + clks[i].offset, in hi6220_clk_register_divider()
328 clks[i].shift, in hi6220_clk_register_divider()
329 clks[i].width, in hi6220_clk_register_divider()
330 clks[i].mask_bit, in hi6220_clk_register_divider()
334 __func__, clks[i].name); in hi6220_clk_register_divider()
338 if (clks[i].alias) in hi6220_clk_register_divider()
339 clk_register_clkdev(clk, clks[i].alias, NULL); in hi6220_clk_register_divider()
341 data->clk_data.clks[clks[i].id] = clk; in hi6220_clk_register_divider()