Lines Matching refs:dp

61 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)  in sparc32_path_component()  argument
66 rprop = of_find_property(dp, "reg", NULL); in sparc32_path_component()
72 dp->name, in sparc32_path_component()
77 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
82 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
88 dp->name, in sbus_path_component()
94 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
100 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
108 dp->name, in pci_path_component()
113 dp->name, in pci_path_component()
119 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
124 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
131 dp->name, in ebus_path_component()
136 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf) in ambapp_path_component() argument
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()
161 prop = of_find_property(dp, "vendor", NULL); in ambapp_path_component()
165 prop = of_find_property(dp, "device", NULL); in ambapp_path_component()
171 dp->name, *vendor, *device, in ambapp_path_component()
175 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
177 struct device_node *parent = dp->parent; in __build_path_component()
182 return pci_path_component(dp, tmp_buf); in __build_path_component()
184 return sbus_path_component(dp, tmp_buf); in __build_path_component()
186 return ebus_path_component(dp, tmp_buf); in __build_path_component()
188 return ambapp_path_component(dp, tmp_buf); in __build_path_component()
194 return sparc32_path_component(dp, tmp_buf); in __build_path_component()
197 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
202 __build_path_component(dp, tmp_buf); in build_path_component()
204 strcpy(tmp_buf, dp->name); in build_path_component()
217 struct device_node *dp; in of_console_init() local
248 for_each_node_by_type(dp, type) { in of_console_init()
252 if (!dp) { in of_console_init()
256 of_console_device = dp; in of_console_init()
258 strcpy(of_console_path, dp->full_name); in of_console_init()
280 dp = of_find_node_by_phandle(node); in of_console_init()
281 type = of_get_property(dp, "device_type", NULL); in of_console_init()
295 of_console_device = dp; in of_console_init()
298 strcpy(of_console_path, dp->full_name); in of_console_init()
310 dp = of_find_node_by_path("/"); in of_console_init()
311 path = of_get_property(dp, "stdout-path", NULL); in of_console_init()
335 void __init irq_trans_init(struct device_node *dp) in irq_trans_init() argument