Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 5 of 5) sorted by relevance

/scripts/dtc/
Dlivetree.c510 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
514 assert((phandle != 0) && (phandle != -1)); in get_node_by_phandle()
516 if (tree->phandle == phandle) { in get_node_by_phandle()
523 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
543 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
545 if ((node->phandle != 0) && (node->phandle != -1)) in get_node_phandle()
546 return node->phandle; in get_node_phandle()
548 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
549 phandle++; in get_node_phandle()
551 node->phandle = phandle; in get_node_phandle()
[all …]
Dchecks.c406 cell_t phandle; in check_phandle_prop() local
436 phandle = propval_cell(prop); in check_phandle_prop()
438 if ((phandle == 0) || (phandle == -1)) { in check_phandle_prop()
440 node->fullpath, phandle, prop->name); in check_phandle_prop()
444 return phandle; in check_phandle_prop()
452 cell_t phandle, linux_phandle; in check_explicit_phandles() local
455 assert(!node->phandle); in check_explicit_phandles()
457 phandle = check_phandle_prop(c, dti, node, "phandle"); in check_explicit_phandles()
461 if (!phandle && !linux_phandle) in check_explicit_phandles()
465 if (linux_phandle && phandle && (phandle != linux_phandle)) in check_explicit_phandles()
[all …]
Ddtc.h164 cell_t phandle; member
225 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
/scripts/dtc/libfdt/
Dfdt_ro.c98 uint32_t phandle; in fdt_get_max_phandle() local
106 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle()
107 if (phandle == (uint32_t)-1) in fdt_get_max_phandle()
110 if (phandle > max_phandle) in fdt_get_max_phandle()
111 max_phandle = phandle; in fdt_get_max_phandle()
525 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
529 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle()
543 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
Dlibfdt.h905 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);