Lines Matching refs:dp

55 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)  in sparc32_path_component()  argument
57 const char *name = of_get_property(dp, "name", NULL); in sparc32_path_component()
61 rprop = of_find_property(dp, "reg", NULL); in sparc32_path_component()
72 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
74 const char *name = of_get_property(dp, "name", NULL); in sbus_path_component()
78 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
90 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
92 const char *name = of_get_property(dp, "name", NULL); in pci_path_component()
97 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
116 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
118 const char *name = of_get_property(dp, "name", NULL); in ebus_path_component()
122 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
134 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf) in ambapp_path_component() argument
136 const char *name = of_get_property(dp, "name", NULL); in ambapp_path_component()
146 prop = of_find_property(dp, "reg", NULL); in ambapp_path_component()
148 reg0 = (unsigned int)dp->phandle; in ambapp_path_component()
155 prop = of_find_property(dp, "interrupts", NULL); in ambapp_path_component()
164 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
166 struct device_node *parent = dp->parent; in __build_path_component()
171 return pci_path_component(dp, tmp_buf); in __build_path_component()
173 return sbus_path_component(dp, tmp_buf); in __build_path_component()
175 return ebus_path_component(dp, tmp_buf); in __build_path_component()
177 return ambapp_path_component(dp, tmp_buf); in __build_path_component()
183 return sparc32_path_component(dp, tmp_buf); in __build_path_component()
186 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
188 const char *name = of_get_property(dp, "name", NULL); in build_path_component()
192 __build_path_component(dp, tmp_buf); in build_path_component()
207 struct device_node *dp; in of_console_init() local
238 for_each_node_by_type(dp, type) { in of_console_init()
242 if (!dp) { in of_console_init()
246 of_console_device = dp; in of_console_init()
248 sprintf(of_console_path, "%pOF", dp); in of_console_init()
270 dp = of_find_node_by_phandle(node); in of_console_init()
272 if (!of_node_is_type(dp, "display") && in of_console_init()
273 !of_node_is_type(dp, "serial")) { in of_console_init()
279 of_console_device = dp; in of_console_init()
282 sprintf(of_console_path, "%pOF", dp); in of_console_init()
294 dp = of_find_node_by_path("/"); in of_console_init()
295 path = of_get_property(dp, "stdout-path", NULL); in of_console_init()
319 void __init irq_trans_init(struct device_node *dp) in irq_trans_init() argument