Lines Matching full:phandle
9 * overlay_get_target_phandle - retrieves the target phandle of a fragment
13 * overlay_get_target_phandle() retrieves the target phandle of an
14 * overlay fragment when that fragment uses a phandle (target
18 * the phandle pointed by the target property
19 * 0, if the phandle was not found
20 * -1, if the phandle was malformed
46 * done (through a phandle or a path)
55 uint32_t phandle; in overlay_get_target() local
59 /* Try first to do a phandle based lookup */ in overlay_get_target()
60 phandle = overlay_get_target_phandle(fdto, fragment); in overlay_get_target()
61 if (phandle == (uint32_t)-1) in overlay_get_target()
64 /* no phandle, try path */ in overlay_get_target()
65 if (!phandle) { in overlay_get_target()
73 ret = fdt_node_offset_by_phandle(fdt, phandle); in overlay_get_target()
97 * overlay_phandle_add_offset - Increases a phandle by an offset
100 * @name: Name of the property to modify (phandle or linux,phandle)
103 * overlay_phandle_add_offset() increments a node phandle by a given
156 ret = overlay_phandle_add_offset(fdto, node, "phandle", delta); in overlay_adjust_node_phandles()
160 ret = overlay_phandle_add_offset(fdto, node, "linux,phandle", delta); in overlay_adjust_node_phandles()
339 * overlay_fixup_one_phandle - Set an overlay phandle to the base one
343 * @path: Path to a node holding a phandle in the overlay
345 * @name: Name of the property holding the phandle reference in the overlay
347 * @poffset: Offset within the overlay property where the phandle is stored
348 * @label: Label of the node referenced by the phandle
350 * overlay_fixup_one_phandle() resolves an overlay phandle pointing to
368 uint32_t phandle; in overlay_fixup_one_phandle() local
385 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle()
386 if (!phandle) in overlay_fixup_one_phandle()
395 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle()
403 * overlay_fixup_phandle - Set an overlay phandle to the base one