Lines Matching full:clks

16 					struct clk_bulk_data *clks)  in of_clk_bulk_get()  argument
22 clks[i].id = NULL; in of_clk_bulk_get()
23 clks[i].clk = NULL; in of_clk_bulk_get()
27 of_property_read_string_index(np, "clock-names", i, &clks[i].id); in of_clk_bulk_get()
28 clks[i].clk = of_clk_get(np, i); in of_clk_bulk_get()
29 if (IS_ERR(clks[i].clk)) { in of_clk_bulk_get()
30 ret = PTR_ERR(clks[i].clk); in of_clk_bulk_get()
33 clks[i].clk = NULL; in of_clk_bulk_get()
41 clk_bulk_put(i, clks); in of_clk_bulk_get()
47 struct clk_bulk_data **clks) in of_clk_bulk_get_all() argument
67 *clks = clk_bulk; in of_clk_bulk_get_all()
72 void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) in clk_bulk_put() argument
75 clk_put(clks[num_clks].clk); in clk_bulk_put()
76 clks[num_clks].clk = NULL; in clk_bulk_put()
82 struct clk_bulk_data *clks, bool optional) in __clk_bulk_get() argument
88 clks[i].clk = NULL; in __clk_bulk_get()
91 clks[i].clk = clk_get(dev, clks[i].id); in __clk_bulk_get()
92 if (IS_ERR(clks[i].clk)) { in __clk_bulk_get()
93 ret = PTR_ERR(clks[i].clk); in __clk_bulk_get()
94 clks[i].clk = NULL; in __clk_bulk_get()
101 clks[i].id, ret); in __clk_bulk_get()
109 clk_bulk_put(i, clks); in __clk_bulk_get()
115 struct clk_bulk_data *clks) in clk_bulk_get() argument
117 return __clk_bulk_get(dev, num_clks, clks, false); in clk_bulk_get()
122 struct clk_bulk_data *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
130 if (IS_ERR_OR_NULL(clks)) in clk_bulk_put_all()
133 clk_bulk_put(num_clks, clks); in clk_bulk_put_all()
135 kfree(clks); in clk_bulk_put_all()
140 struct clk_bulk_data **clks) in clk_bulk_get_all() argument
147 return of_clk_bulk_get_all(np, clks); in clk_bulk_get_all()
156 * @clks: the clk_bulk_data table being unprepared
161 void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_unprepare() argument
164 clk_unprepare(clks[num_clks].clk); in clk_bulk_unprepare()
171 * @clks: the clk_bulk_data table being prepared
177 const struct clk_bulk_data *clks) in clk_bulk_prepare() argument
183 ret = clk_prepare(clks[i].clk); in clk_bulk_prepare()
186 clks[i].id, ret); in clk_bulk_prepare()
194 clk_bulk_unprepare(i, clks); in clk_bulk_prepare()
205 * @clks: the clk_bulk_data table being gated
211 void clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_disable() argument
215 clk_disable(clks[num_clks].clk); in clk_bulk_disable()
222 * @clks: the clk_bulk_data table being ungated
227 int __must_check clk_bulk_enable(int num_clks, const struct clk_bulk_data *clks) in clk_bulk_enable() argument
233 ret = clk_enable(clks[i].clk); in clk_bulk_enable()
236 clks[i].id, ret); in clk_bulk_enable()
244 clk_bulk_disable(i, clks); in clk_bulk_enable()