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