Lines Matching defs:device_node

44 struct device_node {
52 struct device_node *parent;
53 struct device_node *child;
54 struct device_node *sibling;
55 struct device_node *next; /* next device of same type */
56 struct device_node *allnext; /* next in list of all nodes */
70 struct device_node *np;
76 extern struct device_node *of_node_get(struct device_node *node);
77 extern void of_node_put(struct device_node *node);
80 static inline struct device_node *of_node_get(struct device_node *node)
84 static inline void of_node_put(struct device_node *node) { }
90 extern struct device_node *allnodes;
91 extern struct device_node *of_chosen;
92 extern struct device_node *of_aliases;
100 static inline bool of_node_is_root(const struct device_node *node)
105 static inline int of_node_check_flag(struct device_node *n, unsigned long flag)
110 static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
115 extern struct device_node *of_find_all_nodes(struct device_node *prev);
162 static inline int of_node_to_nid(struct device_node *np) { return -1; }
166 extern struct device_node *of_find_node_by_name(struct device_node *from,
171 extern struct device_node *of_find_node_by_type(struct device_node *from,
176 extern struct device_node *of_find_compatible_node(struct device_node *from,
181 extern struct device_node *of_find_matching_node(struct device_node *from,
186 extern struct device_node *of_find_node_by_path(const char *path);
187 extern struct device_node *of_find_node_by_phandle(phandle handle);
188 extern struct device_node *of_get_parent(const struct device_node *node);
189 extern struct device_node *of_get_next_parent(struct device_node *node);
190 extern struct device_node *of_get_next_child(const struct device_node *node,
191 struct device_node *prev);
196 extern struct device_node *of_find_node_with_property(
197 struct device_node *from, const char *prop_name);
202 extern struct property *of_find_property(const struct device_node *np,
205 extern int of_property_read_u32_array(const struct device_node *np,
209 extern int of_property_read_u64(const struct device_node *np,
212 extern int of_property_read_string(struct device_node *np,
215 extern int of_property_read_string_index(struct device_node *np,
218 extern int of_property_match_string(struct device_node *np,
221 extern int of_property_count_strings(struct device_node *np,
223 extern int of_device_is_compatible(const struct device_node *device,
225 extern int of_device_is_available(const struct device_node *device);
226 extern const void *of_get_property(const struct device_node *node,
232 extern int of_n_addr_cells(struct device_node *np);
233 extern int of_n_size_cells(struct device_node *np);
235 const struct of_device_id *matches, const struct device_node *node);
236 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
237 extern struct device_node *of_parse_phandle(struct device_node *np,
240 extern int of_parse_phandle_with_args(struct device_node *np,
245 extern int of_alias_get_id(struct device_node *np, const char *stem);
249 extern int prom_add_property(struct device_node* np, struct property* prop);
250 extern int prom_remove_property(struct device_node *np, struct property *prop);
251 extern int prom_update_property(struct device_node *np,
257 extern void of_attach_node(struct device_node *);
258 extern void of_detach_node(struct device_node *);
272 static inline int of_device_is_compatible(const struct device_node *device,
278 static inline struct property *of_find_property(const struct device_node *np,
285 static inline struct device_node *of_find_compatible_node(
286 struct device_node *from,
293 static inline int of_property_read_u32_array(const struct device_node *np,
300 static inline int of_property_read_string(struct device_node *np,
307 static inline int of_property_read_string_index(struct device_node *np,
314 static inline int of_property_count_strings(struct device_node *np,
320 static inline const void *of_get_property(const struct device_node *node,
327 static inline int of_property_read_u64(const struct device_node *np,
333 static inline struct device_node *of_parse_phandle(struct device_node *np,
340 static inline int of_alias_get_id(struct device_node *np, const char *stem)
362 static inline bool of_property_read_bool(const struct device_node *np,
370 static inline int of_property_read_u32(const struct device_node *np,