Lines Matching refs:node
92 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop() argument
117 err = of_pdt_prom_ops->nextprop(node, prev, p->name); in of_pdt_build_one_prop()
122 p->length = of_pdt_prom_ops->getproplen(node, p->name); in of_pdt_build_one_prop()
129 len = of_pdt_prom_ops->getproperty(node, p->name, in of_pdt_build_one_prop()
139 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() argument
143 head = tail = of_pdt_build_one_prop(node, NULL, in of_pdt_build_prop_list()
144 ".node", &node, sizeof(node)); in of_pdt_build_prop_list()
146 tail->next = of_pdt_build_one_prop(node, NULL, NULL, NULL, 0); in of_pdt_build_prop_list()
149 tail->next = of_pdt_build_one_prop(node, tail->name, in of_pdt_build_prop_list()
157 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() argument
162 len = of_pdt_prom_ops->getproplen(node, name); in of_pdt_get_one_property()
165 len = of_pdt_prom_ops->getproperty(node, name, buf, len); in of_pdt_get_one_property()
171 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node() argument
176 if (!node) in of_pdt_create_node()
185 dp->name = of_pdt_get_one_property(node, "name"); in of_pdt_create_node()
186 dp->type = of_pdt_get_one_property(node, "device_type"); in of_pdt_create_node()
187 dp->phandle = node; in of_pdt_create_node()
189 dp->properties = of_pdt_build_prop_list(node); in of_pdt_create_node()
197 phandle node, in of_pdt_build_tree() argument
204 dp = of_pdt_create_node(node, parent); in of_pdt_build_tree()
221 of_pdt_prom_ops->getchild(node), nextp); in of_pdt_build_tree()
226 node = of_pdt_prom_ops->getsibling(node); in of_pdt_build_tree()