Lines Matching refs:np
31 static struct clk *__of_clk_get(struct device_node *np, int index, in __of_clk_get() argument
41 rc = of_parse_phandle_with_args(np, "clocks", "#clock-cells", index, in __of_clk_get()
47 of_node_put(clkspec.np); in __of_clk_get()
52 struct clk *of_clk_get(struct device_node *np, int index) in of_clk_get() argument
54 return __of_clk_get(np, index, np->full_name, NULL); in of_clk_get()
58 static struct clk *__of_clk_get_by_name(struct device_node *np, in __of_clk_get_by_name() argument
65 while (np) { in __of_clk_get_by_name()
74 index = of_property_match_string(np, "clock-names", name); in __of_clk_get_by_name()
75 clk = __of_clk_get(np, index, dev_id, name); in __of_clk_get_by_name()
81 np->full_name, name ? name : "", index); in __of_clk_get_by_name()
90 np = np->parent; in __of_clk_get_by_name()
91 if (np && !of_get_property(np, "clock-ranges", NULL)) in __of_clk_get_by_name()
107 struct clk *of_clk_get_by_name(struct device_node *np, const char *name) in of_clk_get_by_name() argument
109 if (!np) in of_clk_get_by_name()
112 return __of_clk_get_by_name(np, np->full_name, name); in of_clk_get_by_name()
118 static struct clk *__of_clk_get_by_name(struct device_node *np, in __of_clk_get_by_name() argument