Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
51 fill_slices_from_node(phandle_t node, struct flash_slice *slices, int *count)
54 phandle_t child;
60 for (child = OF_child(node); child != 0; child = OF_peer(child)) {
63 /* Nodes with a compatible property are not slices. */
64 if (OF_hasprop(child, "compatible"))
73 if (fdt_regsize(child, &base, &size) != 0) {
74 debugf("error during processing reg property, i=%d\n",
85 nmlen = OF_getprop_alloc(child, "label", (void **)&label);
87 /* Use node name if no label defined */
88 nmlen = OF_getprop_alloc(child, "name", (void **)&label);
95 if (OF_hasprop(child, "read-only"))
114 phandle_t child, node;
125 node = ofw_bus_get_node(dev);
128 * If there is a child node whose compatible is "fixed-partitions" then
129 * we have new-style data where all partitions are the children of that
130 * node. Otherwise we have old-style data where all the children of the
131 * device node are the partitions.
133 child = fdt_find_compatible(node, "fixed-partitions", false);
134 if (child == 0)
135 return fill_slices_from_node(node, slices, slices_num);
137 return fill_slices_from_node(child, slices, slices_num);