• Home
  • Raw
  • Download

Lines Matching refs:dp

29 void __initdata (*of_pdt_build_more)(struct device_node *dp,
39 static char * __init of_pdt_build_full_name(struct device_node *dp) in of_pdt_build_full_name() argument
44 dp->path_component_name = build_path_component(dp); in of_pdt_build_full_name()
46 plen = strlen(dp->parent->full_name); in of_pdt_build_full_name()
47 ourlen = strlen(dp->path_component_name); in of_pdt_build_full_name()
51 strcpy(n, dp->parent->full_name); in of_pdt_build_full_name()
52 if (!of_node_is_root(dp->parent)) { in of_pdt_build_full_name()
56 strcpy(n + plen, dp->path_component_name); in of_pdt_build_full_name()
64 static inline void irq_trans_init(struct device_node *dp) { } in irq_trans_init() argument
66 static char * __init of_pdt_build_full_name(struct device_node *dp) in of_pdt_build_full_name() argument
72 if (of_pdt_prom_ops->pkg2path(dp->phandle, NULL, 0, &len)) in of_pdt_build_full_name()
76 if (of_pdt_prom_ops->pkg2path(dp->phandle, buf, len, &len)) in of_pdt_build_full_name()
81 buf = prom_early_alloc(strlen(dp->parent->full_name) + in of_pdt_build_full_name()
82 strlen(dp->name) + 16); in of_pdt_build_full_name()
84 of_node_is_root(dp->parent) ? "" : dp->parent->full_name, in of_pdt_build_full_name()
85 dp->name, failsafe_id++); in of_pdt_build_full_name()
174 struct device_node *dp; in of_pdt_create_node() local
179 dp = prom_early_alloc(sizeof(*dp)); in of_pdt_create_node()
180 of_pdt_incr_unique_id(dp); in of_pdt_create_node()
181 dp->parent = parent; in of_pdt_create_node()
183 kref_init(&dp->kref); 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()
191 irq_trans_init(dp); in of_pdt_create_node()
193 return dp; in of_pdt_create_node()
201 struct device_node *dp; in of_pdt_build_tree() local
204 dp = of_pdt_create_node(node, parent); in of_pdt_build_tree()
205 if (!dp) in of_pdt_build_tree()
209 prev_sibling->sibling = dp; in of_pdt_build_tree()
212 ret = dp; in of_pdt_build_tree()
213 prev_sibling = dp; in of_pdt_build_tree()
215 *(*nextp) = dp; in of_pdt_build_tree()
216 *nextp = &dp->allnext; in of_pdt_build_tree()
218 dp->full_name = of_pdt_build_full_name(dp); in of_pdt_build_tree()
220 dp->child = of_pdt_build_tree(dp, in of_pdt_build_tree()
224 of_pdt_build_more(dp, nextp); in of_pdt_build_tree()