Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property

7  * Copyright (C) 1996-2005 Paul Mackerras.
31 struct property { struct
35 struct property *next; argument
50 struct property *properties; argument
51 struct property *deadprops; /* removed properties */
53 struct device_node *child; member
57 struct proc_dir_entry *pde; /* this node's proc directory */
76 /* Dummy ref counting routines - to be implemented later */
77 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get() argument
79 return node; in of_node_get()
81 static inline void of_node_put(struct device_node *node) in of_node_put() argument
85 extern struct device_node *of_node_get(struct device_node *node);
86 extern void of_node_put(struct device_node *node);
102 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root() argument
104 return node && (node->parent == NULL); in of_node_is_root()
109 return test_bit(flag, &n->_flags); in of_node_check_flag()
114 set_bit(flag, &n->_flags); in of_node_set_flag()
123 /* Helper to read a big number; size is in cells (not bytes) */
127 while (size--) in of_read_number()
155 #define OF_DYNAMIC 1 /* node and properties were allocated via kmalloc */
156 #define OF_DETACHED 2 /* node has been detached from the device tree */
158 #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
159 #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)
161 #define OF_BAD_ADDR ((u64)-1)
164 static inline int of_node_to_nid(struct device_node *np) { return -1; } in of_node_to_nid()
190 extern struct device_node *of_get_parent(const struct device_node *node);
191 extern struct device_node *of_get_next_parent(struct device_node *node);
192 extern struct device_node *of_get_next_child(const struct device_node *node,
194 #define for_each_child_of_node(parent, child) \ argument
195 for (child = of_get_next_child(parent, NULL); child != NULL; \
196 child = of_get_next_child(parent, child))
204 extern struct property *of_find_property(const struct device_node *np,
225 extern const void *of_get_property(const struct device_node *node,
229 for (pp = dn->properties; pp != NULL; pp = pp->next)
234 const struct of_device_id *matches, const struct device_node *node);
235 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
248 extern int prom_add_property(struct device_node* np, struct property* prop);
249 extern int prom_remove_property(struct device_node *np, struct property *prop);
251 struct property *newprop,
252 struct property *oldprop);
268 #define for_each_child_of_node(parent, child) \ argument
277 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
296 return -ENOSYS; in of_property_read_u32_array()
303 return -ENOSYS; in of_property_read_string()
310 return -ENOSYS; in of_property_read_string_index()
316 return -ENOSYS; in of_property_count_strings()
319 static inline const void *of_get_property(const struct device_node *node, in of_get_property() argument
329 return -ENOSYS; in of_property_read_u64()
341 return -ENOSYS; in of_alias_get_id()