Lines Matching refs:index

26 int clk_get_by_index_platdata(struct udevice *dev, int index,  in clk_get_by_index_platdata()  argument
31 if (index != 0) in clk_get_by_index_platdata()
60 int index, struct clk *clk) in clk_get_by_indexed_prop() argument
67 debug("%s(dev=%p, index=%d, clk=%p)\n", __func__, dev, index, clk); in clk_get_by_indexed_prop()
73 index, &args); in clk_get_by_indexed_prop()
103 int clk_get_by_index(struct udevice *dev, int index, struct clk *clk) in clk_get_by_index() argument
105 return clk_get_by_indexed_prop(dev, "clocks", index, clk); in clk_get_by_index()
144 int index; in clk_set_default_parents() local
156 for (index = 0; index < num_parents; index++) { in clk_set_default_parents()
158 index, &parent_clk); in clk_set_default_parents()
161 __func__, index, dev_read_name(dev)); in clk_set_default_parents()
166 index, &clk); in clk_set_default_parents()
169 __func__, index, dev_read_name(dev)); in clk_set_default_parents()
184 __func__, index, dev_read_name(dev)); in clk_set_default_parents()
195 int index; in clk_set_default_rates() local
214 for (index = 0; index < num_rates; index++) { in clk_set_default_rates()
216 index, &clk); in clk_set_default_rates()
219 __func__, index, dev_read_name(dev)); in clk_set_default_rates()
223 ret = clk_set_rate(&clk, rates[index]); in clk_set_default_rates()
226 __func__, index, dev_read_name(dev)); in clk_set_default_rates()
261 int index; in clk_get_by_name() local
266 index = dev_read_stringlist_search(dev, "clock-names", name); in clk_get_by_name()
267 if (index < 0) { in clk_get_by_name()
268 debug("fdt_stringlist_search() failed: %d\n", index); in clk_get_by_name()
269 return index; in clk_get_by_name()
272 return clk_get_by_index(dev, index, clk); in clk_get_by_name()