Lines Matching refs:dp

57 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)  in sparc32_path_component()  argument
59 const char *name = of_get_property(dp, "name", NULL); in sparc32_path_component()
63 rprop = of_find_property(dp, "reg", NULL); in sparc32_path_component()
74 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
76 const char *name = of_get_property(dp, "name", NULL); in sbus_path_component()
80 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
92 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
94 const char *name = of_get_property(dp, "name", NULL); in pci_path_component()
99 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
118 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
120 const char *name = of_get_property(dp, "name", NULL); in ebus_path_component()
124 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
136 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf) in ambapp_path_component() argument
138 const char *name = of_get_property(dp, "name", NULL); in ambapp_path_component()
147 prop = of_find_property(dp, "reg", NULL); in ambapp_path_component()
149 reg0 = (unsigned int)dp->phandle; in ambapp_path_component()
156 prop = of_find_property(dp, "interrupts", NULL); in ambapp_path_component()
162 prop = of_find_property(dp, "vendor", NULL); in ambapp_path_component()
166 prop = of_find_property(dp, "device", NULL); in ambapp_path_component()
176 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
178 struct device_node *parent = dp->parent; in __build_path_component()
183 return pci_path_component(dp, tmp_buf); in __build_path_component()
185 return sbus_path_component(dp, tmp_buf); in __build_path_component()
187 return ebus_path_component(dp, tmp_buf); in __build_path_component()
189 return ambapp_path_component(dp, tmp_buf); in __build_path_component()
195 return sparc32_path_component(dp, tmp_buf); in __build_path_component()
198 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
200 const char *name = of_get_property(dp, "name", NULL); in build_path_component()
204 __build_path_component(dp, tmp_buf); in build_path_component()
219 struct device_node *dp; in of_console_init() local
250 for_each_node_by_type(dp, type) { in of_console_init()
254 if (!dp) { in of_console_init()
258 of_console_device = dp; in of_console_init()
260 sprintf(of_console_path, "%pOF", dp); in of_console_init()
282 dp = of_find_node_by_phandle(node); in of_console_init()
284 if (!of_node_is_type(dp, "display") && in of_console_init()
285 !of_node_is_type(dp, "serial")) { in of_console_init()
291 of_console_device = dp; in of_console_init()
294 sprintf(of_console_path, "%pOF", dp); in of_console_init()
306 dp = of_find_node_by_path("/"); in of_console_init()
307 path = of_get_property(dp, "stdout-path", NULL); in of_console_init()
331 void __init irq_trans_init(struct device_node *dp) in irq_trans_init() argument