• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/dtc/

Lines Matching refs:node

64 struct node *build_node(struct property *proplist, struct node *children)
66 struct node *new = xmalloc(sizeof(*new));
67 struct node *child;
81 struct node *name_node(struct node *node, char *name, char * label)
83 assert(node->name == NULL);
85 node->name = name;
87 node->label = label;
89 return node;
92 struct node *chain_node(struct node *first, struct node *list)
100 void add_property(struct node *node, struct property *prop)
106 p = &node->proplist;
113 void add_child(struct node *parent, struct node *child)
115 struct node **p;
170 struct node *tree, uint32_t boot_cpuid_phys)
186 const char *get_unitname(struct node *node)
188 if (node->name[node->basenamelen] == '\0')
191 return node->name + node->basenamelen + 1;
194 struct property *get_property(struct node *node, const char *propname)
198 for_each_property(node, prop)
211 struct node *get_subnode(struct node *node, const char *nodename)
213 struct node *child;
215 for_each_child(node, child)
222 struct node *get_node_by_path(struct node *tree, const char *path)
225 struct node *child;
245 struct node *get_node_by_label(struct node *tree, const char *label)
247 struct node *child, *node;
255 node = get_node_by_label(child, label);
256 if (node)
257 return node;
263 struct node *get_node_by_phandle(struct node *tree, cell_t phandle)
265 struct node *child, *node;
273 node = get_node_by_phandle(child, phandle);
274 if (node)
275 return node;
281 struct node *get_node_by_ref(struct node *tree, const char *ref)
289 cell_t get_node_phandle(struct node *root, struct node *node)
293 if ((node->phandle != 0) && (node->phandle != -1))
294 return node->phandle;
296 assert(! get_property(node, "linux,phandle"));
301 node->phandle = phandle;
302 add_property(node,
307 return node->phandle;