Lines Matching full:phandle
15 * overlay_get_target_phandle - retrieves the target phandle of a fragment
19 * overlay_get_target_phandle() retrieves the target phandle of an
20 * overlay fragment when that fragment uses a phandle (target
24 * the phandle pointed by the target property
25 * 0, if the phandle was not found
26 * -1, if the phandle was malformed
46 uint32_t phandle; in fdt_overlay_target_offset() local
50 /* Try first to do a phandle based lookup */ in fdt_overlay_target_offset()
51 phandle = overlay_get_target_phandle(fdto, fragment_offset); in fdt_overlay_target_offset()
52 if (phandle == (uint32_t)-1) in fdt_overlay_target_offset()
55 /* no phandle, try path */ in fdt_overlay_target_offset()
56 if (!phandle) { in fdt_overlay_target_offset()
64 ret = fdt_node_offset_by_phandle(fdt, phandle); in fdt_overlay_target_offset()
88 * overlay_phandle_add_offset - Increases a phandle by an offset
91 * @name: Name of the property to modify (phandle or linux,phandle)
94 * overlay_phandle_add_offset() increments a node phandle by a given
143 ret = overlay_phandle_add_offset(fdto, node, "phandle", delta); in overlay_adjust_node_phandles()
147 ret = overlay_phandle_add_offset(fdto, node, "linux,phandle", delta); in overlay_adjust_node_phandles()
309 * overlay_fixup_one_phandle - Set an overlay phandle to the base one
313 * @path: Path to a node holding a phandle in the overlay
315 * @name: Name of the property holding the phandle reference in the overlay
317 * @poffset: Offset within the overlay property where the phandle is stored
318 * @phandle: Phandle referencing the node
320 * overlay_fixup_one_phandle() resolves an overlay phandle pointing to
335 int poffset, uint32_t phandle) in overlay_fixup_one_phandle() argument
349 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle()
357 * overlay_fixup_phandle - Set an overlay phandle to the base one
384 uint32_t phandle; in overlay_fixup_phandle() local
403 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_phandle()
404 if (!phandle) in overlay_fixup_phandle()
448 poffset, phandle); in overlay_fixup_phandle()
502 * overlay_adjust_local_conflicting_phandle: Changes a phandle value
504 * @node: The node the phandle is set for
505 * @fdt_phandle: The new value for the phandle
517 php = fdt_getprop(fdto, node, "phandle", &len); in overlay_adjust_local_conflicting_phandle()
519 ret = fdt_setprop_inplace_u32(fdto, node, "phandle", fdt_phandle); in overlay_adjust_local_conflicting_phandle()
524 php = fdt_getprop(fdto, node, "linux,phandle", &len); in overlay_adjust_local_conflicting_phandle()
526 ret = fdt_setprop_inplace_u32(fdto, node, "linux,phandle", fdt_phandle); in overlay_adjust_local_conflicting_phandle()
535 * overlay_update_node_conflicting_references - Recursively replace phandle values
617 * overlay_update_local_conflicting_references - Recursively replace phandle values
707 * Checks recursively if applying fdto overwrites phandle values in the base
708 * dtb. When such a phandle is found, the fdto is changed to use the fdt's
709 * phandle value to not break references in the base.
1059 /* Adapt the phandle values in fdto to the above increase */ in fdt_overlay_apply()