Lines Matching refs:dp

66 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf)  in sun4v_path_component()  argument
68 const char *name = of_get_property(dp, "name", NULL); in sun4v_path_component()
73 rprop = of_find_property(dp, "reg", NULL); in sun4v_path_component()
78 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
108 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
110 const char *name = of_get_property(dp, "name", NULL); in sun4u_path_component()
114 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component()
119 if (!of_node_is_root(dp->parent)) { in sun4u_path_component()
127 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
129 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component()
144 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
146 const char *name = of_get_property(dp, "name", NULL); in sbus_path_component()
150 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
162 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
164 const char *name = of_get_property(dp, "name", NULL); in pci_path_component()
169 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
188 static void __init upa_path_component(struct device_node *dp, char *tmp_buf) in upa_path_component() argument
190 const char *name = of_get_property(dp, "name", NULL); in upa_path_component()
194 prop = of_find_property(dp, "reg", NULL); in upa_path_component()
200 prop = of_find_property(dp, "upa-portid", NULL); in upa_path_component()
211 static void __init vdev_path_component(struct device_node *dp, char *tmp_buf) in vdev_path_component() argument
213 const char *name = of_get_property(dp, "name", NULL); in vdev_path_component()
217 prop = of_find_property(dp, "reg", NULL); in vdev_path_component()
227 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
229 const char *name = of_get_property(dp, "name", NULL); in ebus_path_component()
233 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
246 static void __init i2c_path_component(struct device_node *dp, char *tmp_buf) in i2c_path_component() argument
248 const char *name = of_get_property(dp, "name", NULL); in i2c_path_component()
252 prop = of_find_property(dp, "reg", NULL); in i2c_path_component()
266 static void __init usb_path_component(struct device_node *dp, char *tmp_buf) in usb_path_component() argument
268 const char *name = of_get_property(dp, "name", NULL); in usb_path_component()
272 prop = of_find_property(dp, "reg", NULL); in usb_path_component()
288 static void __init ieee1394_path_component(struct device_node *dp, char *tmp_buf) in ieee1394_path_component() argument
290 const char *name = of_get_property(dp, "name", NULL); in ieee1394_path_component()
294 prop = of_find_property(dp, "reg", NULL); in ieee1394_path_component()
309 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
311 struct device_node *parent = dp->parent; in __build_path_component()
316 pci_path_component(dp, tmp_buf); in __build_path_component()
320 sbus_path_component(dp, tmp_buf); in __build_path_component()
324 upa_path_component(dp, tmp_buf); in __build_path_component()
328 ebus_path_component(dp, tmp_buf); in __build_path_component()
333 usb_path_component(dp, tmp_buf); in __build_path_component()
337 i2c_path_component(dp, tmp_buf); in __build_path_component()
341 ieee1394_path_component(dp, tmp_buf); in __build_path_component()
345 vdev_path_component(dp, tmp_buf); in __build_path_component()
353 sun4v_path_component(dp, tmp_buf); in __build_path_component()
356 sun4u_path_component(dp, tmp_buf); in __build_path_component()
360 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
362 const char *name = of_get_property(dp, "name", NULL); in build_path_component()
366 __build_path_component(dp, tmp_buf); in build_path_component()
436 struct device_node *dp; in of_iterate_over_cpus() local
440 for_each_node_by_type(dp, "cpu") { in of_iterate_over_cpus()
441 int cpuid = of_getintprop_default(dp, mid_prop, -1); in of_iterate_over_cpus()
447 cpuid = of_getintprop_default(dp, this_mid_prop, -1); in of_iterate_over_cpus()
462 ret = func(dp, cpuid, arg); in of_iterate_over_cpus()
469 static void *check_cpu_node(struct device_node *dp, int cpuid, int id) in check_cpu_node() argument
472 return dp; in check_cpu_node()
481 static void *record_one_cpu(struct device_node *dp, int cpuid, int arg) in record_one_cpu() argument
502 static void *fill_in_one_cpu(struct device_node *dp, int cpuid, int arg) in fill_in_one_cpu() argument
507 if (of_property_present(dp, "cpuid")) { in fill_in_one_cpu()
510 portid_parent = dp; in fill_in_one_cpu()
533 of_getintprop_default(dp, "clock-frequency", 0); in fill_in_one_cpu()
537 of_getintprop_default(dp, "l1-dcache-size", in fill_in_one_cpu()
540 of_getintprop_default(dp, "l1-dcache-line-size", in fill_in_one_cpu()
543 of_getintprop_default(dp, "l1-icache-size", in fill_in_one_cpu()
546 of_getintprop_default(dp, "l1-icache-line-size", in fill_in_one_cpu()
549 of_getintprop_default(dp, "l2-cache-size", 0); in fill_in_one_cpu()
551 of_getintprop_default(dp, "l2-cache-line-size", 0); in fill_in_one_cpu()
567 of_getintprop_default(dp, "dcache-size", 16 * 1024); in fill_in_one_cpu()
569 of_getintprop_default(dp, "dcache-line-size", 32); in fill_in_one_cpu()
572 of_getintprop_default(dp, "icache-size", 16 * 1024); in fill_in_one_cpu()
574 of_getintprop_default(dp, "icache-line-size", 32); in fill_in_one_cpu()
577 of_getintprop_default(dp, "ecache-size", in fill_in_one_cpu()
580 of_getintprop_default(dp, "ecache-line-size", 64); in fill_in_one_cpu()
602 struct device_node *dp; in of_console_init() local
624 dp = of_find_node_by_phandle(node); in of_console_init()
626 if (!of_node_is_type(dp, "display") && !of_node_is_type(dp, "serial")) { in of_console_init()
632 of_console_device = dp; in of_console_init()