Lines Matching refs:blob
92 static int of_fdt_is_compatible(const void *blob, in of_fdt_is_compatible() argument
99 cp = fdt_getprop(blob, node, "compatible", &cplen); in of_fdt_is_compatible()
123 bool of_fdt_is_big_endian(const void *blob, unsigned long node) in of_fdt_is_big_endian() argument
125 if (fdt_getprop(blob, node, "big-endian", NULL)) in of_fdt_is_big_endian()
128 fdt_getprop(blob, node, "native-endian", NULL)) in of_fdt_is_big_endian()
133 static bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument
135 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available()
149 int of_fdt_match(const void *blob, unsigned long node, in of_fdt_match() argument
158 tmp = of_fdt_is_compatible(blob, node, *compat); in of_fdt_match()
179 static void populate_properties(const void *blob, in populate_properties() argument
191 for (cur = fdt_first_property_offset(blob, offset); in populate_properties()
193 cur = fdt_next_property_offset(blob, cur)) { in populate_properties()
198 val = fdt_getprop_by_offset(blob, cur, &pname, &sz); in populate_properties()
280 static bool populate_node(const void *blob, in populate_node() argument
291 pathp = fdt_get_name(blob, offset, &l); in populate_node()
315 populate_properties(blob, offset, mem, np, pathp, dryrun); in populate_node()
363 static int unflatten_dt_nodes(const void *blob, in unflatten_dt_nodes() argument
393 offset = fdt_next_node(blob, offset, &depth)) { in unflatten_dt_nodes()
398 !of_fdt_device_is_available(blob, offset)) in unflatten_dt_nodes()
401 if (!populate_node(blob, offset, &mem, nps[depth], in unflatten_dt_nodes()
443 void *__unflatten_device_tree(const void *blob, in __unflatten_device_tree() argument
454 if (!blob) { in __unflatten_device_tree()
460 pr_debug("magic: %08x\n", fdt_magic(blob)); in __unflatten_device_tree()
461 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree()
462 pr_debug("version: %08x\n", fdt_version(blob)); in __unflatten_device_tree()
464 if (fdt_check_header(blob)) { in __unflatten_device_tree()
470 size = unflatten_dt_nodes(blob, NULL, dad, NULL); in __unflatten_device_tree()
489 unflatten_dt_nodes(blob, mem, dad, mynodes); in __unflatten_device_tree()
524 void *of_fdt_unflatten_tree(const unsigned long *blob, in of_fdt_unflatten_tree() argument
531 mem = __unflatten_device_tree(blob, dad, mynodes, &kernel_tree_alloc, in of_fdt_unflatten_tree()
709 const void *blob = initial_boot_params; in of_scan_flat_dt() local
713 if (!blob) in of_scan_flat_dt()
716 for (offset = fdt_next_node(blob, -1, &depth); in of_scan_flat_dt()
718 offset = fdt_next_node(blob, offset, &depth)) { in of_scan_flat_dt()
720 pathp = fdt_get_name(blob, offset, NULL); in of_scan_flat_dt()
741 const void *blob = initial_boot_params; in of_scan_flat_dt_subnodes() local
744 fdt_for_each_subnode(node, blob, parent) { in of_scan_flat_dt_subnodes()
748 pathp = fdt_get_name(blob, node, NULL); in of_scan_flat_dt_subnodes()