Lines Matching refs:tchild
410 struct device_node *tchild; in add_changeset_node() local
416 for_each_child_of_node(target->np, tchild) in add_changeset_node()
417 if (!of_node_cmp(node_kbasename, kbasename(tchild->full_name))) in add_changeset_node()
420 if (!tchild) { in add_changeset_node()
421 tchild = __of_node_dup(NULL, node_kbasename); in add_changeset_node()
422 if (!tchild) in add_changeset_node()
425 tchild->parent = target->np; in add_changeset_node()
426 tchild->name = __of_get_property(node, "name", NULL); in add_changeset_node()
428 if (!tchild->name) in add_changeset_node()
429 tchild->name = "<NULL>"; in add_changeset_node()
434 tchild->phandle = be32_to_cpup(phandle); in add_changeset_node()
436 of_node_set_flag(tchild, OF_OVERLAY); in add_changeset_node()
438 ret = of_changeset_attach_node(&ovcs->cset, tchild); in add_changeset_node()
442 target_child.np = tchild; in add_changeset_node()
446 of_node_put(tchild); in add_changeset_node()
450 if (node->phandle && tchild->phandle) { in add_changeset_node()
453 target_child.np = tchild; in add_changeset_node()
457 of_node_put(tchild); in add_changeset_node()