Lines Matching refs:node
68 bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument
70 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available()
543 int __init of_scan_flat_dt(int (*it)(unsigned long node, in of_scan_flat_dt() argument
574 int (*it)(unsigned long node, in of_scan_flat_dt_subnodes() argument
580 int node; in of_scan_flat_dt_subnodes() local
582 fdt_for_each_subnode(node, blob, parent) { in of_scan_flat_dt_subnodes()
586 pathp = fdt_get_name(blob, node, NULL); in of_scan_flat_dt_subnodes()
587 rc = it(node, pathp, data); in of_scan_flat_dt_subnodes()
602 int __init of_get_flat_dt_subnode_by_name(unsigned long node, const char *uname) in of_get_flat_dt_subnode_by_name() argument
604 return fdt_subnode_offset(initial_boot_params, node, uname); in of_get_flat_dt_subnode_by_name()
621 const void *__init of_get_flat_dt_prop(unsigned long node, const char *name, in of_get_flat_dt_prop() argument
624 return fdt_getprop(initial_boot_params, node, name, size); in of_get_flat_dt_prop()
638 unsigned long node, const char *compat) in of_fdt_is_compatible() argument
644 cp = fdt_getprop(blob, node, "compatible", &cplen); in of_fdt_is_compatible()
664 int __init of_flat_dt_is_compatible(unsigned long node, const char *compat) in of_flat_dt_is_compatible() argument
666 return of_fdt_is_compatible(initial_boot_params, node, compat); in of_flat_dt_is_compatible()
672 static int __init of_flat_dt_match(unsigned long node, const char *const *compat) in of_flat_dt_match() argument
680 tmp = of_fdt_is_compatible(initial_boot_params, node, *compat); in of_flat_dt_match()
692 uint32_t __init of_get_flat_dt_phandle(unsigned long node) in of_get_flat_dt_phandle() argument
694 return fdt_get_phandle(initial_boot_params, node); in of_get_flat_dt_phandle()
777 static void __init early_init_dt_check_for_initrd(unsigned long node) in early_init_dt_check_for_initrd() argument
788 prop = of_get_flat_dt_prop(node, "linux,initrd-start", &len); in early_init_dt_check_for_initrd()
793 prop = of_get_flat_dt_prop(node, "linux,initrd-end", &len); in early_init_dt_check_for_initrd()
812 static void __init early_init_dt_check_for_elfcorehdr(unsigned long node) in early_init_dt_check_for_elfcorehdr() argument
822 prop = of_get_flat_dt_prop(node, "linux,elfcorehdr", &len); in early_init_dt_check_for_elfcorehdr()
853 unsigned long node = chosen_node_offset; in early_init_dt_check_for_usable_mem_range() local
855 if ((long)node < 0) in early_init_dt_check_for_usable_mem_range()
860 prop = of_get_flat_dt_prop(node, "linux,usable-memory-range", &len); in early_init_dt_check_for_usable_mem_range()
935 int node = fdt_path_offset(fdt, "/"); in early_init_dt_scan_root() local
937 if (node < 0) in early_init_dt_scan_root()
943 prop = of_get_flat_dt_prop(node, "#size-cells", NULL); in early_init_dt_scan_root()
948 prop = of_get_flat_dt_prop(node, "#address-cells", NULL); in early_init_dt_scan_root()
969 int node, found_memory = 0; in early_init_dt_scan_memory() local
972 fdt_for_each_subnode(node, fdt, 0) { in early_init_dt_scan_memory()
973 const char *type = of_get_flat_dt_prop(node, "device_type", NULL); in early_init_dt_scan_memory()
982 if (!of_fdt_device_is_available(fdt, node)) in early_init_dt_scan_memory()
985 reg = of_get_flat_dt_prop(node, "linux,usable-memory", &l); in early_init_dt_scan_memory()
987 reg = of_get_flat_dt_prop(node, "reg", &l); in early_init_dt_scan_memory()
992 hotpluggable = of_get_flat_dt_prop(node, "hotpluggable", NULL); in early_init_dt_scan_memory()
995 fdt_get_name(fdt, node, NULL), l); in early_init_dt_scan_memory()
1024 int l, node; in early_init_dt_scan_chosen() local
1029 node = fdt_path_offset(fdt, "/chosen"); in early_init_dt_scan_chosen()
1030 if (node < 0) in early_init_dt_scan_chosen()
1031 node = fdt_path_offset(fdt, "/chosen@0"); in early_init_dt_scan_chosen()
1032 if (node < 0) in early_init_dt_scan_chosen()
1036 chosen_node_offset = node; in early_init_dt_scan_chosen()
1038 early_init_dt_check_for_initrd(node); in early_init_dt_scan_chosen()
1039 early_init_dt_check_for_elfcorehdr(node); in early_init_dt_scan_chosen()
1041 rng_seed = of_get_flat_dt_prop(node, "rng-seed", &l); in early_init_dt_scan_chosen()
1046 fdt_nop_property(initial_boot_params, node, "rng-seed"); in early_init_dt_scan_chosen()
1054 p = of_get_flat_dt_prop(node, "bootargs", &l); in early_init_dt_scan_chosen()