Lines Matching refs:node1
387 static void move_tree(struct fw_node *node0, struct fw_node *node1, int port) in move_tree() argument
392 tree = node1->ports[port]; in move_tree()
395 if (tree->ports[i] == node1) { in move_tree()
410 struct fw_node *node0, *node1, *next1; in update_tree() local
419 node1 = fw_node(list1.next); in update_tree()
422 WARN_ON(node0->port_count != node1->port_count); in update_tree()
424 if (node0->link_on && !node1->link_on) in update_tree()
426 else if (!node0->link_on && node1->link_on) in update_tree()
428 else if (node1->initiated_reset && node1->link_on) in update_tree()
433 node0->node_id = node1->node_id; in update_tree()
435 node0->link_on = node1->link_on; in update_tree()
436 node0->initiated_reset = node1->initiated_reset; in update_tree()
437 node0->max_hops = node1->max_hops; in update_tree()
438 node1->color = card->color; in update_tree()
441 if (card->root_node == node1) in update_tree()
443 if (card->irm_node == node1) in update_tree()
447 if (node0->ports[i] && node1->ports[i]) { in update_tree()
456 list_add_tail(&node1->ports[i]->link, &list1); in update_tree()
468 } else if (node1->ports[i]) { in update_tree()
475 move_tree(node0, node1, i); in update_tree()
482 next1 = fw_node(node1->link.next); in update_tree()
483 fw_node_put(node1); in update_tree()
484 node1 = next1; in update_tree()