Lines Matching refs:num_clks
15 static int __must_check of_clk_bulk_get(struct device_node *np, int num_clks, in of_clk_bulk_get() argument
21 for (i = 0; i < num_clks; i++) { in of_clk_bulk_get()
26 for (i = 0; i < num_clks; i++) { in of_clk_bulk_get()
50 int num_clks; in of_clk_bulk_get_all() local
53 num_clks = of_clk_get_parent_count(np); in of_clk_bulk_get_all()
54 if (!num_clks) in of_clk_bulk_get_all()
57 clk_bulk = kmalloc_array(num_clks, sizeof(*clk_bulk), GFP_KERNEL); in of_clk_bulk_get_all()
61 ret = of_clk_bulk_get(np, num_clks, clk_bulk); in of_clk_bulk_get_all()
69 return num_clks; in of_clk_bulk_get_all()
72 void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) in clk_bulk_put() argument
74 while (--num_clks >= 0) { in clk_bulk_put()
75 clk_put(clks[num_clks].clk); in clk_bulk_put()
76 clks[num_clks].clk = NULL; in clk_bulk_put()
81 static int __clk_bulk_get(struct device *dev, int num_clks, in __clk_bulk_get() argument
87 for (i = 0; i < num_clks; i++) in __clk_bulk_get()
90 for (i = 0; i < num_clks; i++) { in __clk_bulk_get()
114 int __must_check clk_bulk_get(struct device *dev, int num_clks, in clk_bulk_get() argument
117 return __clk_bulk_get(dev, num_clks, clks, false); in clk_bulk_get()
121 int __must_check clk_bulk_get_optional(struct device *dev, int num_clks, in clk_bulk_get_optional() argument
124 return __clk_bulk_get(dev, num_clks, clks, true); in clk_bulk_get_optional()
128 void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks) in clk_bulk_put_all() argument
133 clk_bulk_put(num_clks, clks); in clk_bulk_put_all()
161 void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_unprepare() argument
163 while (--num_clks >= 0) in clk_bulk_unprepare()
164 clk_unprepare(clks[num_clks].clk); in clk_bulk_unprepare()
176 int __must_check clk_bulk_prepare(int num_clks, in clk_bulk_prepare() argument
182 for (i = 0; i < num_clks; i++) { in clk_bulk_prepare()
211 void clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_disable() argument
214 while (--num_clks >= 0) in clk_bulk_disable()
215 clk_disable(clks[num_clks].clk); in clk_bulk_disable()
227 int __must_check clk_bulk_enable(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_enable() argument
232 for (i = 0; i < num_clks; i++) { in clk_bulk_enable()