Lines Matching defs:blob
69 bool of_fdt_device_is_available(const void *blob, unsigned long node)
71 const char *status = fdt_getprop(blob, node, "status", NULL);
94 static void populate_properties(const void *blob,
106 for (cur = fdt_first_property_offset(blob, offset);
108 cur = fdt_next_property_offset(blob, cur)) {
113 val = fdt_getprop_by_offset(blob, cur, &pname, &sz);
191 static int populate_node(const void *blob,
202 pathp = fdt_get_name(blob, offset, &len);
226 populate_properties(blob, offset, mem, np, pathp, dryrun);
263 * @blob: The parent device tree blob
270 static int unflatten_dt_nodes(const void *blob,
301 offset = fdt_next_node(blob, offset, &depth)) {
306 !of_fdt_device_is_available(blob, offset))
309 ret = populate_node(blob, offset, &mem, nps[depth],
336 * __unflatten_device_tree - create tree of device_nodes from flat blob
337 * @blob: The blob to expand
351 void *__unflatten_device_tree(const void *blob,
366 if (!blob) {
372 pr_debug("magic: %08x\n", fdt_magic(blob));
373 pr_debug("size: %08x\n", fdt_totalsize(blob));
374 pr_debug("version: %08x\n", fdt_version(blob));
376 if (fdt_check_header(blob)) {
377 pr_err("Invalid device tree blob header\n");
382 size = unflatten_dt_nodes(blob, NULL, dad, NULL);
401 ret = unflatten_dt_nodes(blob, mem, dad, mynodes);
427 * of_fdt_unflatten_tree - create tree of device_nodes from flat blob
428 * @blob: Flat device tree blob
440 void *of_fdt_unflatten_tree(const unsigned long *blob,
447 mem = __unflatten_device_tree(blob, dad, mynodes, &kernel_tree_alloc,
523 * early_init_fdt_reserve_self() - reserve the memory used by the FDT blob
536 * of_scan_flat_dt - scan flattened tree blob and call callback on each.
549 const void *blob = initial_boot_params;
553 if (!blob)
556 for (offset = fdt_next_node(blob, -1, &depth);
558 offset = fdt_next_node(blob, offset, &depth)) {
560 pathp = fdt_get_name(blob, offset, NULL);
580 const void *blob = initial_boot_params;
583 fdt_for_each_subnode(node, blob, parent) {
587 pathp = fdt_get_name(blob, node, NULL);
609 * of_get_flat_dt_root - find the root node in the flat blob
617 * of_get_flat_dt_prop - Given a node in the flat blob, return the property ptr
670 * of_fdt_is_compatible - Return true if given node from the given blob has
672 * @blob: A device tree blob
679 static int of_fdt_is_compatible(const void *blob,
686 cp = fdt_getprop(blob, node, "compatible", &cplen);
732 * of_get_flat_dt_phandle - Given a node in the flat blob, return the phandle
1265 * unflatten_device_tree - create tree of device_nodes from flat blob
1302 * unflatten_and_copy_device_tree - copy and create tree of device_nodes from flat blob