Lines Matching refs:blob
89 int of_fdt_is_compatible(const void *blob, in of_fdt_is_compatible() argument
96 cp = fdt_getprop(blob, node, "compatible", &cplen); in of_fdt_is_compatible()
120 bool of_fdt_is_big_endian(const void *blob, unsigned long node) in of_fdt_is_big_endian() argument
122 if (fdt_getprop(blob, node, "big-endian", NULL)) in of_fdt_is_big_endian()
125 fdt_getprop(blob, node, "native-endian", NULL)) in of_fdt_is_big_endian()
133 int of_fdt_match(const void *blob, unsigned long node, in of_fdt_match() argument
142 tmp = of_fdt_is_compatible(blob, node, *compat); in of_fdt_match()
171 static void * unflatten_dt_node(void *blob, in unflatten_dt_node() argument
190 pathp = fdt_get_name(blob, *poffset, &l); in unflatten_dt_node()
253 for (offset = fdt_first_property_offset(blob, *poffset); in unflatten_dt_node()
255 (offset = fdt_next_property_offset(blob, offset))) { in unflatten_dt_node()
259 if (!(p = fdt_getprop_by_offset(blob, offset, &pname, &sz))) { in unflatten_dt_node()
338 *poffset = fdt_next_node(blob, *poffset, &depth); in unflatten_dt_node()
342 mem = unflatten_dt_node(blob, mem, poffset, np, NULL, in unflatten_dt_node()
381 static void __unflatten_device_tree(void *blob, in __unflatten_device_tree() argument
391 if (!blob) { in __unflatten_device_tree()
397 pr_debug("magic: %08x\n", fdt_magic(blob)); in __unflatten_device_tree()
398 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree()
399 pr_debug("version: %08x\n", fdt_version(blob)); in __unflatten_device_tree()
401 if (fdt_check_header(blob)) { in __unflatten_device_tree()
408 size = (unsigned long)unflatten_dt_node(blob, NULL, &start, NULL, NULL, 0, true); in __unflatten_device_tree()
423 unflatten_dt_node(blob, mem, &start, NULL, mynodes, 0, false); in __unflatten_device_tree()
444 void of_fdt_unflatten_tree(unsigned long *blob, in of_fdt_unflatten_tree() argument
447 __unflatten_device_tree(blob, mynodes, &kernel_tree_alloc); in of_fdt_unflatten_tree()
614 const void *blob = initial_boot_params; in of_scan_flat_dt() local
618 for (offset = fdt_next_node(blob, -1, &depth); in of_scan_flat_dt()
620 offset = fdt_next_node(blob, offset, &depth)) { in of_scan_flat_dt()
622 pathp = fdt_get_name(blob, offset, NULL); in of_scan_flat_dt()