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()
148 prop = of_find_property(dp, "reg", NULL); in ambapp_path_component()
150 reg0 = (unsigned int)dp->phandle; in ambapp_path_component()
157 prop = of_find_property(dp, "interrupts", NULL); in ambapp_path_component()
166 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
168 struct device_node *parent = dp->parent; in __build_path_component()
173 return pci_path_component(dp, tmp_buf); in __build_path_component()
175 return sbus_path_component(dp, tmp_buf); in __build_path_component()
177 return ebus_path_component(dp, tmp_buf); in __build_path_component()
179 return ambapp_path_component(dp, tmp_buf); in __build_path_component()
185 return sparc32_path_component(dp, tmp_buf); in __build_path_component()
188 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
190 const char *name = of_get_property(dp, "name", NULL); in build_path_component()
194 __build_path_component(dp, tmp_buf); in build_path_component()
209 struct device_node *dp; in of_console_init() local
240 for_each_node_by_type(dp, type) { in of_console_init()
244 if (!dp) { in of_console_init()
248 of_console_device = dp; in of_console_init()
250 sprintf(of_console_path, "%pOF", dp); in of_console_init()
272 dp = of_find_node_by_phandle(node); in of_console_init()
274 if (!of_node_is_type(dp, "display") && in of_console_init()
275 !of_node_is_type(dp, "serial")) { in of_console_init()
281 of_console_device = dp; in of_console_init()
284 sprintf(of_console_path, "%pOF", dp); in of_console_init()
296 dp = of_find_node_by_path("/"); in of_console_init()
297 path = of_get_property(dp, "stdout-path", NULL); in of_console_init()
321 void __init irq_trans_init(struct device_node *dp) in irq_trans_init() argument