Lines Matching refs:dp

57 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)
59 const char *name = of_get_property(dp, "name", NULL);
63 rprop = of_find_property(dp, "reg", NULL);
74 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf)
76 const char *name = of_get_property(dp, "name", NULL);
80 prop = of_find_property(dp, "reg", NULL);
92 static void __init pci_path_component(struct device_node *dp, char *tmp_buf)
94 const char *name = of_get_property(dp, "name", NULL);
99 prop = of_find_property(dp, "reg", NULL);
118 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf)
120 const char *name = of_get_property(dp, "name", NULL);
124 prop = of_find_property(dp, "reg", NULL);
136 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf)
138 const char *name = of_get_property(dp, "name", NULL);
148 prop = of_find_property(dp, "reg", NULL);
150 reg0 = (unsigned int)dp->phandle;
157 prop = of_find_property(dp, "interrupts", NULL);
166 static void __init __build_path_component(struct device_node *dp, char *tmp_buf)
168 struct device_node *parent = dp->parent;
173 return pci_path_component(dp, tmp_buf);
175 return sbus_path_component(dp, tmp_buf);
177 return ebus_path_component(dp, tmp_buf);
179 return ambapp_path_component(dp, tmp_buf);
185 return sparc32_path_component(dp, tmp_buf);
188 char * __init build_path_component(struct device_node *dp)
190 const char *name = of_get_property(dp, "name", NULL);
194 __build_path_component(dp, tmp_buf);
209 struct device_node *dp;
240 for_each_node_by_type(dp, type) {
244 if (!dp) {
248 of_console_device = dp;
250 sprintf(of_console_path, "%pOF", dp);
272 dp = of_find_node_by_phandle(node);
274 if (!of_node_is_type(dp, "display") &&
275 !of_node_is_type(dp, "serial")) {
281 of_console_device = dp;
284 sprintf(of_console_path, "%pOF", dp);
296 dp = of_find_node_by_path("/");
297 path = of_get_property(dp, "stdout-path", NULL);
321 void __init irq_trans_init(struct device_node *dp)