Searched refs:phandle (Results 1 – 6 of 6) sorted by relevance
| /scripts/dtc/ |
| D | checks.c | 492 cell_t phandle; in check_phandle_prop() local 522 phandle = propval_cell(prop); in check_phandle_prop() 524 if (!phandle_is_valid(phandle)) { in check_phandle_prop() 526 phandle, prop->name); in check_phandle_prop() 530 return phandle; in check_phandle_prop() 538 cell_t phandle, linux_phandle; in check_explicit_phandles() local 541 assert(!node->phandle); in check_explicit_phandles() 543 phandle = check_phandle_prop(c, dti, node, "phandle"); in check_explicit_phandles() 547 if (!phandle && !linux_phandle) in check_explicit_phandles() 551 if (linux_phandle && phandle && (phandle != linux_phandle)) in check_explicit_phandles() [all …]
|
| D | livetree.c | 559 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument 563 if (!phandle_is_valid(phandle)) { in get_node_by_phandle() 568 if (tree->phandle == phandle) { in get_node_by_phandle() 575 node = get_node_by_phandle(child, phandle); in get_node_by_phandle() 631 d = data_append_cell(d, node->phandle); in add_phandle_property() 638 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local 640 if (phandle_is_valid(node->phandle)) in get_node_phandle() 641 return node->phandle; in get_node_phandle() 643 while (get_node_by_phandle(root, phandle)) in get_node_phandle() 644 phandle++; in get_node_phandle() [all …]
|
| D | dtc.h | 54 static inline bool phandle_is_valid(cell_t phandle) in phandle_is_valid() argument 56 return phandle != 0 && phandle != ~0U; in phandle_is_valid() 229 cell_t phandle; member 300 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
|
| /scripts/dtc/libfdt/ |
| D | fdt_overlay.c | 46 uint32_t phandle; in fdt_overlay_target_offset() local 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() 56 if (!phandle) { in fdt_overlay_target_offset() 64 ret = fdt_node_offset_by_phandle(fdt, phandle); in fdt_overlay_target_offset() 335 int poffset, uint32_t phandle) in overlay_fixup_one_phandle() argument 349 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle() 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() [all …]
|
| D | fdt_ro.c | 114 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) in fdt_find_max_phandle() argument 136 if (phandle) in fdt_find_max_phandle() 137 *phandle = max; in fdt_find_max_phandle() 142 int fdt_generate_phandle(const void *fdt, uint32_t *phandle) in fdt_generate_phandle() argument 154 if (phandle) in fdt_generate_phandle() 155 *phandle = max + 1; in fdt_generate_phandle() 710 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument 714 if ((phandle == 0) || (phandle == ~0U)) in fdt_node_offset_by_phandle() 728 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
|
| D | libfdt.h | 381 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle); 400 uint32_t phandle; in fdt_get_max_phandle() local 403 err = fdt_find_max_phandle(fdt, &phandle); in fdt_get_max_phandle() 407 return phandle; in fdt_get_max_phandle() 422 int fdt_generate_phandle(const void *fdt, uint32_t *phandle); 1098 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
|