Lines Matching refs:child
182 struct device_node *dp, *child; in openpromfs_lookup() local
200 child = dp->child; in openpromfs_lookup()
201 while (child) { in openpromfs_lookup()
202 int n = strlen(child->path_component_name); in openpromfs_lookup()
205 !strncmp(child->path_component_name, name, len)) { in openpromfs_lookup()
207 ent_data.node = child; in openpromfs_lookup()
208 ino = child->unique_id; in openpromfs_lookup()
211 child = child->sibling; in openpromfs_lookup()
268 struct device_node *child; in openpromfs_readdir() local
297 child = dp->child; in openpromfs_readdir()
298 while (i && child) { in openpromfs_readdir()
299 child = child->sibling; in openpromfs_readdir()
302 while (child) { in openpromfs_readdir()
304 child->path_component_name, in openpromfs_readdir()
305 strlen(child->path_component_name), in openpromfs_readdir()
306 filp->f_pos, child->unique_id, DT_DIR) < 0) in openpromfs_readdir()
310 child = child->sibling; in openpromfs_readdir()