Lines Matching defs:node
65 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev,
90 err = of_pdt_prom_ops->nextprop(node, prev, p->name);
95 p->length = of_pdt_prom_ops->getproplen(node, p->name);
102 len = of_pdt_prom_ops->getproperty(node, p->name,
112 static struct property * __init of_pdt_build_prop_list(phandle node)
116 head = tail = of_pdt_build_one_prop(node, NULL,
117 ".node", &node, sizeof(node));
119 tail->next = of_pdt_build_one_prop(node, NULL, NULL, NULL, 0);
122 tail->next = of_pdt_build_one_prop(node, tail->name,
130 static char * __init of_pdt_get_one_property(phandle node, const char *name)
135 len = of_pdt_prom_ops->getproplen(node, name);
138 len = of_pdt_prom_ops->getproperty(node, name, buf, len);
144 static struct device_node * __init of_pdt_create_node(phandle node,
149 if (!node)
157 dp->name = of_pdt_get_one_property(node, "name");
158 dp->phandle = node;
160 dp->properties = of_pdt_build_prop_list(node);
170 phandle node)
176 dp = of_pdt_create_node(node, parent);
187 dp->child = of_pdt_build_tree(dp, of_pdt_prom_ops->getchild(node));
189 node = of_pdt_prom_ops->getsibling(node);