Lines Matching refs:node

90 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev,  in of_pdt_build_one_prop()  argument
115 err = of_pdt_prom_ops->nextprop(node, prev, p->name); in of_pdt_build_one_prop()
120 p->length = of_pdt_prom_ops->getproplen(node, p->name); in of_pdt_build_one_prop()
127 len = of_pdt_prom_ops->getproperty(node, p->name, in of_pdt_build_one_prop()
137 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() argument
141 head = tail = of_pdt_build_one_prop(node, NULL, in of_pdt_build_prop_list()
142 ".node", &node, sizeof(node)); in of_pdt_build_prop_list()
144 tail->next = of_pdt_build_one_prop(node, NULL, NULL, NULL, 0); in of_pdt_build_prop_list()
147 tail->next = of_pdt_build_one_prop(node, tail->name, in of_pdt_build_prop_list()
155 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() argument
160 len = of_pdt_prom_ops->getproplen(node, name); in of_pdt_get_one_property()
163 len = of_pdt_prom_ops->getproperty(node, name, buf, len); in of_pdt_get_one_property()
169 static struct device_node * __init of_pdt_create_node(phandle node, in of_pdt_create_node() argument
174 if (!node) in of_pdt_create_node()
182 dp->name = of_pdt_get_one_property(node, "name"); in of_pdt_create_node()
183 dp->type = of_pdt_get_one_property(node, "device_type"); in of_pdt_create_node()
184 dp->phandle = node; in of_pdt_create_node()
186 dp->properties = of_pdt_build_prop_list(node); in of_pdt_create_node()
194 phandle node) in of_pdt_build_tree() argument
200 dp = of_pdt_create_node(node, parent); in of_pdt_build_tree()
213 dp->child = of_pdt_build_tree(dp, of_pdt_prom_ops->getchild(node)); in of_pdt_build_tree()
218 node = of_pdt_prom_ops->getsibling(node); in of_pdt_build_tree()