• Home
  • Raw
  • Download

Lines Matching +full:merge +full:- +full:base

9  * overlay_get_target_phandle - retrieves the target phandle of a fragment
15 * property) instead of a path (target-path property).
20 * -1, if the phandle was malformed
31 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
32 return (uint32_t)-1; in overlay_get_target_phandle()
38 * overlay_get_target - retrieves the offset of a fragment's target
39 * @fdt: Base device tree blob
43 * overlay_get_target() retrieves the target offset in the base
48 * the targetted node offset in the base device tree
60 if (phandle == (uint32_t)-1) in overlay_get_target()
61 return -FDT_ERR_BADPHANDLE; in overlay_get_target()
67 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target()
71 * target-path property in a node that contains a in overlay_get_target()
76 if (path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
77 return -FDT_ERR_BADOVERLAY; in overlay_get_target()
86 * overlay_phandle_add_offset - Increases a phandle by an offset
87 * @fdt: Base device tree blob
111 return -FDT_ERR_BADPHANDLE; in overlay_phandle_add_offset()
115 return -FDT_ERR_NOPHANDLES; in overlay_phandle_add_offset()
118 if (adj_val == (uint32_t)-1) in overlay_phandle_add_offset()
119 return -FDT_ERR_NOPHANDLES; in overlay_phandle_add_offset()
125 * overlay_adjust_node_phandles - Offsets the phandles of a node
133 * phandles to not conflict with the overlays of the base device tree.
146 if (ret && ret != -FDT_ERR_NOTFOUND) in overlay_adjust_node_phandles()
150 if (ret && ret != -FDT_ERR_NOTFOUND) in overlay_adjust_node_phandles()
163 * overlay_adjust_local_phandles - Adjust the phandles of a whole overlay
170 * phandles to not conflict with the overlays of the base device tree.
185 * overlay_update_local_node_references - Adjust the overlay references
197 * with the ones from the base device tree before merging them.
226 return -FDT_ERR_BADOVERLAY; in overlay_update_local_node_references()
230 if (tree_len == -FDT_ERR_NOTFOUND) in overlay_update_local_node_references()
231 return -FDT_ERR_BADOVERLAY; in overlay_update_local_node_references()
259 if (ret == -FDT_ERR_NOSPACE) in overlay_update_local_node_references()
260 return -FDT_ERR_BADOVERLAY; in overlay_update_local_node_references()
274 if (tree_child == -FDT_ERR_NOTFOUND) in overlay_update_local_node_references()
275 return -FDT_ERR_BADOVERLAY; in overlay_update_local_node_references()
291 * overlay_update_local_references - Adjust the overlay references
297 * delta to not conflict with the base overlay.
301 * with the ones from the base device tree before merging them.
314 if (fixups == -FDT_ERR_NOTFOUND) in overlay_update_local_references()
328 * overlay_fixup_one_phandle - Set an overlay phandle to the base one
329 * @fdt: Base Device Tree blob
331 * @symbols_off: Node offset of the symbols node in the base device tree
340 * a node in the base device tree.
344 * base dt nodes.
376 return -FDT_ERR_NOTFOUND; in overlay_fixup_one_phandle()
379 if (fixup_off == -FDT_ERR_NOTFOUND) in overlay_fixup_one_phandle()
380 return -FDT_ERR_BADOVERLAY; in overlay_fixup_one_phandle()
392 * overlay_fixup_phandle - Set an overlay phandle to the base one
393 * @fdt: Base Device Tree blob
395 * @symbols_off: Node offset of the symbols node in the base device tree
400 * in use in the base device tree.
404 * base dt nodes.
420 if (len == -FDT_ERR_NOTFOUND) in overlay_fixup_phandle()
421 return -FDT_ERR_INTERNAL; in overlay_fixup_phandle()
436 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
437 fixup_len = fixup_end - fixup_str; in overlay_fixup_phandle()
439 len -= fixup_len + 1; in overlay_fixup_phandle()
445 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
447 path_len = sep - path; in overlay_fixup_phandle()
448 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle()
449 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
451 fixup_len -= path_len + 1; in overlay_fixup_phandle()
455 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
457 name_len = sep - name; in overlay_fixup_phandle()
459 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
463 return -FDT_ERR_BADOVERLAY; in overlay_fixup_phandle()
476 * overlay_fixup_phandles - Resolve the overlay phandles to the base
478 * @fdt: Base Device Tree blob
482 * to nodes in the base device tree.
486 * the actual base dt nodes.
499 if (fixups_off == -FDT_ERR_NOTFOUND) in overlay_fixup_phandles()
504 /* And base DTs without symbols */ in overlay_fixup_phandles()
506 if ((symbols_off < 0 && (symbols_off != -FDT_ERR_NOTFOUND))) in overlay_fixup_phandles()
521 * overlay_apply_node - Merges a node into the base device tree
522 * @fdt: Base Device Tree blob
523 * @target: Node offset in the base device tree to apply the fragment to
525 * @node: Node offset in the overlay holding the changes to merge
527 * overlay_apply_node() merges a node into a target base device tree
532 * resolved and you just have to merge overlay into the base device
553 if (prop_len == -FDT_ERR_NOTFOUND) in overlay_apply_node()
554 return -FDT_ERR_INTERNAL; in overlay_apply_node()
569 if (nnode == -FDT_ERR_EXISTS) { in overlay_apply_node()
571 if (nnode == -FDT_ERR_NOTFOUND) in overlay_apply_node()
572 return -FDT_ERR_INTERNAL; in overlay_apply_node()
587 * overlay_merge - Merge an overlay into its base device tree
588 * @fdt: Base Device Tree blob
591 * overlay_merge() merges an overlay into its base device tree.
595 * you just have to merge overlay into the base device tree.
615 if (overlay == -FDT_ERR_NOTFOUND) in overlay_merge()
671 * The base device tree might have been damaged, erase its in fdt_overlay_apply()