Lines Matching refs:dp
73 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument
79 rprop = of_find_property(dp, "reg", NULL); in sun4v_path_component()
84 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
86 dp->name, in sun4v_path_component()
101 dp->name, prefix, in sun4v_path_component()
105 dp->name, in sun4v_path_component()
110 dp->name, high_bits); in sun4v_path_component()
114 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
119 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component()
124 if (!of_node_is_root(dp->parent)) { in sun4u_path_component()
126 dp->name, in sun4u_path_component()
132 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
134 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component()
142 dp->name, in sun4u_path_component()
149 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
154 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
160 dp->name, in sbus_path_component()
166 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
172 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
180 dp->name, in pci_path_component()
185 dp->name, in pci_path_component()
191 static void __init upa_path_component(struct device_node *dp, char *tmp_buf) in upa_path_component() argument
196 prop = of_find_property(dp, "reg", NULL); in upa_path_component()
202 prop = of_find_property(dp, "upa-portid", NULL); in upa_path_component()
207 dp->name, in upa_path_component()
213 static void __init vdev_path_component(struct device_node *dp, char *tmp_buf) in vdev_path_component() argument
218 prop = of_find_property(dp, "reg", NULL); in vdev_path_component()
224 sprintf(tmp_buf, "%s@%x", dp->name, *regs); in vdev_path_component()
228 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
233 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
240 dp->name, in ebus_path_component()
246 static void __init i2c_path_component(struct device_node *dp, char *tmp_buf) in i2c_path_component() argument
251 prop = of_find_property(dp, "reg", NULL); in i2c_path_component()
261 dp->name, regs[0], regs[1]); in i2c_path_component()
265 static void __init usb_path_component(struct device_node *dp, char *tmp_buf) in usb_path_component() argument
270 prop = of_find_property(dp, "reg", NULL); in usb_path_component()
278 dp->name, regs[0]); in usb_path_component()
281 dp->name, regs[0], regs[1]); in usb_path_component()
286 static void __init ieee1394_path_component(struct device_node *dp, char *tmp_buf) in ieee1394_path_component() argument
291 prop = of_find_property(dp, "reg", NULL); in ieee1394_path_component()
299 dp->name, regs[0], regs[1], regs[2], regs[3]); in ieee1394_path_component()
302 dp->name, regs[0], regs[1]); in ieee1394_path_component()
306 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
308 struct device_node *parent = dp->parent; in __build_path_component()
313 pci_path_component(dp, tmp_buf); in __build_path_component()
317 sbus_path_component(dp, tmp_buf); in __build_path_component()
321 upa_path_component(dp, tmp_buf); in __build_path_component()
325 ebus_path_component(dp, tmp_buf); in __build_path_component()
330 usb_path_component(dp, tmp_buf); in __build_path_component()
334 i2c_path_component(dp, tmp_buf); in __build_path_component()
338 ieee1394_path_component(dp, tmp_buf); in __build_path_component()
342 vdev_path_component(dp, tmp_buf); in __build_path_component()
350 sun4v_path_component(dp, tmp_buf); in __build_path_component()
353 sun4u_path_component(dp, tmp_buf); in __build_path_component()
357 char * __init build_path_component(struct device_node *dp) in build_path_component() argument
362 __build_path_component(dp, tmp_buf); in build_path_component()
364 strcpy(tmp_buf, dp->name); in build_path_component()
432 struct device_node *dp; in of_iterate_over_cpus() local
436 for_each_node_by_type(dp, "cpu") { in of_iterate_over_cpus()
437 int cpuid = of_getintprop_default(dp, mid_prop, -1); in of_iterate_over_cpus()
443 cpuid = of_getintprop_default(dp, this_mid_prop, -1); in of_iterate_over_cpus()
458 ret = func(dp, cpuid, arg); in of_iterate_over_cpus()
465 static void *check_cpu_node(struct device_node *dp, int cpuid, int id) in check_cpu_node() argument
468 return dp; in check_cpu_node()
477 static void *record_one_cpu(struct device_node *dp, int cpuid, int arg) in record_one_cpu() argument
496 static void *fill_in_one_cpu(struct device_node *dp, int cpuid, int arg) in fill_in_one_cpu() argument
501 if (of_find_property(dp, "cpuid", NULL)) { in fill_in_one_cpu()
504 portid_parent = dp; in fill_in_one_cpu()
527 of_getintprop_default(dp, "clock-frequency", 0); in fill_in_one_cpu()
531 of_getintprop_default(dp, "l1-dcache-size", in fill_in_one_cpu()
534 of_getintprop_default(dp, "l1-dcache-line-size", in fill_in_one_cpu()
537 of_getintprop_default(dp, "l1-icache-size", in fill_in_one_cpu()
540 of_getintprop_default(dp, "l1-icache-line-size", in fill_in_one_cpu()
543 of_getintprop_default(dp, "l2-cache-size", 0); in fill_in_one_cpu()
545 of_getintprop_default(dp, "l2-cache-line-size", 0); in fill_in_one_cpu()
561 of_getintprop_default(dp, "dcache-size", 16 * 1024); in fill_in_one_cpu()
563 of_getintprop_default(dp, "dcache-line-size", 32); in fill_in_one_cpu()
566 of_getintprop_default(dp, "icache-size", 16 * 1024); in fill_in_one_cpu()
568 of_getintprop_default(dp, "icache-line-size", 32); in fill_in_one_cpu()
571 of_getintprop_default(dp, "ecache-size", in fill_in_one_cpu()
574 of_getintprop_default(dp, "ecache-line-size", 64); in fill_in_one_cpu()
596 struct device_node *dp; in of_console_init() local
619 dp = of_find_node_by_phandle(node); in of_console_init()
620 type = of_get_property(dp, "device_type", NULL); in of_console_init()
632 of_console_device = dp; in of_console_init()