Lines Matching refs:device_node

39 static struct device_node *of_aliases;
42 static struct device_node *of_chosen;
45 static struct device_node *of_stdout;
65 struct device_node *np;
70 int of_n_addr_cells(const struct device_node *np) in of_n_addr_cells()
86 int of_n_size_cells(const struct device_node *np) in of_n_size_cells()
102 int of_simple_addr_cells(const struct device_node *np) in of_simple_addr_cells()
114 int of_simple_size_cells(const struct device_node *np) in of_simple_size_cells()
126 struct property *of_find_property(const struct device_node *np, in of_find_property()
147 struct device_node *of_find_all_nodes(struct device_node *prev) in of_find_all_nodes()
149 struct device_node *np; in of_find_all_nodes()
169 const void *of_get_property(const struct device_node *np, const char *name, in of_get_property()
177 const struct property *of_get_first_property(const struct device_node *np) in of_get_first_property()
185 const struct property *of_get_next_property(const struct device_node *np, in of_get_next_property()
194 const void *of_get_property_by_prop(const struct device_node *np, in of_get_property_by_prop()
226 int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
265 bool of_device_is_available(const struct device_node *device) in of_device_is_available()
285 struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
287 const struct device_node *np; in of_get_parent()
294 return (struct device_node *)np; in of_get_parent()
297 static struct device_node *__of_get_next_child(const struct device_node *node, in __of_get_next_child()
298 struct device_node *prev) in __of_get_next_child()
300 struct device_node *next; in __of_get_next_child()
323 static struct device_node *__of_find_node_by_path(struct device_node *parent, in __of_find_node_by_path()
326 struct device_node *child; in __of_find_node_by_path()
346 struct device_node *of_find_node_opts_by_path(struct device_node *root, in of_find_node_opts_by_path()
350 struct device_node *np = NULL; in of_find_node_opts_by_path()
394 struct device_node *tmp = np; in of_find_node_opts_by_path()
407 struct device_node *of_find_compatible_node(struct device_node *from, in of_find_compatible_node()
410 struct device_node *np; in of_find_compatible_node()
421 static int of_device_has_prop_value(const struct device_node *device, in of_device_has_prop_value()
432 struct device_node *of_find_node_by_prop_value(struct device_node *from, in of_find_node_by_prop_value()
436 struct device_node *np; in of_find_node_by_prop_value()
448 struct device_node *of_find_node_by_phandle(struct device_node *root, in of_find_node_by_phandle()
451 struct device_node *np; in of_find_node_by_phandle()
476 static void *of_find_property_value_of_size(const struct device_node *np, in of_find_property_value_of_size()
489 int of_read_u8(const struct device_node *np, const char *propname, u8 *outp) in of_read_u8()
508 int of_read_u16(const struct device_node *np, const char *propname, u16 *outp) in of_read_u16()
527 int of_read_u32(const struct device_node *np, const char *propname, u32 *outp) in of_read_u32()
532 int of_read_u32_array(const struct device_node *np, const char *propname, in of_read_u32_array()
551 int of_read_u32_index(const struct device_node *np, const char *propname, in of_read_u32_index()
573 int of_read_u64(const struct device_node *np, const char *propname, u64 *outp) in of_read_u64()
593 int of_property_match_string(const struct device_node *np, const char *propname, in of_property_match_string()
632 int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
658 static int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
667 struct device_node *node = NULL; in __of_parse_phandle_with_args()
775 struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
790 int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
802 int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
810 static void of_alias_add(struct alias_prop *ap, struct device_node *np, in of_alias_add()
846 struct device_node *np; in of_alias_scan()
884 int of_alias_get_id(const struct device_node *np, const char *stem) in of_alias_get_id()
922 struct device_node *of_get_stdout(void) in of_get_stdout()
927 int of_write_prop(struct device_node *np, const char *propname, int len, in of_write_prop()
970 int of_add_subnode(struct device_node *parent, const char *name, int len, in of_add_subnode()
971 struct device_node **childp) in of_add_subnode()
973 struct device_node *child, *new, *last_sibling = NULL; in of_add_subnode()
992 new = calloc(1, sizeof(struct device_node)); in of_add_subnode()