Lines Matching refs:child
53 phandle_t ports, child;
59 child = ofw_bus_find_child(node, portnode);
60 if (child != 0)
61 return (child);
68 for (child = OF_child(ports); child != 0; child = OF_peer(child)) {
69 if (OF_getencprop(child, "reg", ®, sizeof(uint32_t)) <= 0 ||
73 return (child);
82 phandle_t child;
87 for (num = 0, child = OF_child(port); child != 0;
88 child = OF_peer(child)) {
89 ret = OF_getprop_alloc(child, "name", (void **)&name);
105 phandle_t endpoint, child;
114 for (child = OF_child(port); child != 0; child = OF_peer(child)) {
115 if (OF_getencprop(child, "reg", ®, sizeof(uint32_t)) <= 0 ||
119 return (child);