Lines Matching refs:i
95 int i; in hisi_clk_register_fixed_rate() local
97 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_rate()
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()
113 while (i--) in hisi_clk_register_fixed_rate()
114 clk_unregister_fixed_rate(data->clk_data.clks[clks[i].id]); in hisi_clk_register_fixed_rate()
125 int i; in hisi_clk_register_fixed_factor() local
127 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_factor()
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()
143 while (i--) in hisi_clk_register_fixed_factor()
144 clk_unregister_fixed_factor(data->clk_data.clks[clks[i].id]); in hisi_clk_register_fixed_factor()
155 int i; in hisi_clk_register_mux() local
157 for (i = 0; i < nums; i++) { in hisi_clk_register_mux()
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 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()
181 while (i--) in hisi_clk_register_mux()
182 clk_unregister_mux(data->clk_data.clks[clks[i].id]); in hisi_clk_register_mux()
194 int i; in hisi_clk_register_phase() local
196 for (i = 0; i < nums; i++) { in hisi_clk_register_phase()
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()
217 int i; in hisi_clk_register_divider() local
219 for (i = 0; i < nums; i++) { in hisi_clk_register_divider()
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()
243 while (i--) in hisi_clk_register_divider()
244 clk_unregister_divider(data->clk_data.clks[clks[i].id]); in hisi_clk_register_divider()
255 int i; in hisi_clk_register_gate() local
257 for (i = 0; i < nums; i++) { in hisi_clk_register_gate()
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()
280 while (i--) in hisi_clk_register_gate()
281 clk_unregister_gate(data->clk_data.clks[clks[i].id]); in hisi_clk_register_gate()
292 int i; in hisi_clk_register_gate_sep() local
294 for (i = 0; i < nums; i++) { in hisi_clk_register_gate_sep()
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()
321 int i; in hi6220_clk_register_divider() local
323 for (i = 0; i < nums; i++) { in hi6220_clk_register_divider()
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()