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 */
90 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
123 for (; (m); (m) = (m)->next)
126 if ((m)->type == (t))
181 struct node { struct
185 struct node *children; argument
187 struct node *parent; argument
188 struct node *next_sibling; argument
204 for ((l) = (l0); (l); (l) = (l)->next)
208 if (!(l)->deleted)
211 for ((p) = (n)->proplist; (p); (p) = (p)->next)
215 if (!(p)->deleted)
218 for ((c) = (n)->children; (c); (c) = (c)->next_sibling)
222 if (!(c)->deleted)
233 struct node *build_node(struct property *proplist, struct node *children,
235 struct node *build_node_delete(struct srcpos *srcpos);
236 struct node *name_node(struct node *node, char *name);
237 struct node *omit_node_if_unused(struct node *node);
238 struct node *reference_node(struct node *node);
239 struct node *chain_node(struct node *first, struct node *list);
240 struct node *merge_nodes(struct node *old_node, struct node *new_node);
241 struct node *add_orphan_node(struct node *old_node, struct node *new_node, char *ref);
243 void add_property(struct node *node, struct property *prop);
244 void delete_property_by_name(struct node *node, char *name);
246 void add_child(struct node *parent, struct node *child);
247 void delete_node_by_name(struct node *parent, char *name);
248 void delete_node(struct node *node);
249 void append_to_property(struct node *node,
253 const char *get_unitname(struct node *node);
254 struct property *get_property(struct node *node, const char *propname);
257 struct property *get_property_by_label(struct node *tree, const char *label,
258 struct node **node);
259 struct marker *get_marker_label(struct node *tree, const char *label,
260 struct node **node, struct property **prop);
261 struct node *get_subnode(struct node *node, const char *nodename);
262 struct node *get_node_by_path(struct node *tree, const char *path);
263 struct node *get_node_by_label(struct node *tree, const char *label);
264 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
265 struct node *get_node_by_ref(struct node *tree, const char *ref);
266 cell_t get_node_phandle(struct node *root, struct node *node);
268 uint32_t guess_boot_cpuid(struct node *tree);
291 struct node *dt; /* the device tree */
292 const char *outname; /* filename being written to, "-" for stdout */
295 /* DTS version flags definitions */
296 #define DTSF_V1 0x0001 /* /dts-v1/ */
301 struct node *tree, uint32_t boot_cpuid_phys);