Lines Matching +full:dts +full:- +full:node

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
45 extern int auto_label_aliases; /* auto generate labels -> aliases */
46 extern int annotate; /* annotate .dts with input source location */
102 return streq(str + len - suffix_len, suffix); in strends()
105 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
144 for (; (m); (m) = (m)->next)
147 if ((m)->type == (t))
152 if (is_type_marker(m->type)) in next_type_marker()
159 struct marker *next = next_type_marker(m->next); in type_marker_length()
162 return next->offset - m->offset; in type_marker_length()
217 struct node { struct
221 struct node *children; argument
223 struct node *parent; argument
224 struct node *next_sibling; argument
240 for ((l) = (l0); (l); (l) = (l)->next)
244 if (!(l)->deleted)
247 for ((p) = (n)->proplist; (p); (p) = (p)->next)
251 if (!(p)->deleted)
254 for ((c) = (n)->children; (c); (c) = (c)->next_sibling)
258 if (!(c)->deleted)
269 struct node *build_node(struct property *proplist, struct node *children,
271 struct node *build_node_delete(struct srcpos *srcpos);
272 struct node *name_node(struct node *node, const char *name);
273 struct node *omit_node_if_unused(struct node *node);
274 struct node *reference_node(struct node *node);
275 struct node *chain_node(struct node *first, struct node *list);
276 struct node *merge_nodes(struct node *old_node, struct node *new_node);
277 struct node *add_orphan_node(struct node *old_node, struct node *new_node, char *ref);
279 void add_property(struct node *node, struct property *prop);
280 void delete_property_by_name(struct node *node, char *name);
282 void add_child(struct node *parent, struct node *child);
283 void delete_node_by_name(struct node *parent, char *name);
284 void delete_node(struct node *node);
285 void append_to_property(struct node *node,
289 const char *get_unitname(struct node *node);
290 struct property *get_property(struct node *node, const char *propname);
293 struct property *get_property_by_label(struct node *tree, const char *label,
294 struct node **node);
295 struct marker *get_marker_label(struct node *tree, const char *label,
296 struct node **node, struct property **prop);
297 struct node *get_subnode(struct node *node, const char *nodename);
298 struct node *get_node_by_path(struct node *tree, const char *path);
299 struct node *get_node_by_label(struct node *tree, const char *label);
300 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
301 struct node *get_node_by_ref(struct node *tree, const char *ref);
302 cell_t get_node_phandle(struct node *root, struct node *node);
304 uint32_t guess_boot_cpuid(struct node *tree);
327 struct node *dt; /* the device tree */
328 const char *outname; /* filename being written to, "-" for stdout */
331 /* DTS version flags definitions */
332 #define DTSF_V1 0x0001 /* /dts-v1/ */
337 struct node *tree, uint32_t boot_cpuid_phys);