Lines Matching refs:node1
390 static void move_tree(struct fw_node *node0, struct fw_node *node1, int port) in move_tree() argument
395 tree = node1->ports[port]; in move_tree()
398 if (tree->ports[i] == node1) { in move_tree()
413 struct fw_node *node0, *node1, *next1; in update_tree() local
422 node1 = fw_node(list1.next); in update_tree()
425 WARN_ON(node0->port_count != node1->port_count); in update_tree()
427 if (node0->link_on && !node1->link_on) in update_tree()
429 else if (!node0->link_on && node1->link_on) in update_tree()
431 else if (node1->initiated_reset && node1->link_on) in update_tree()
436 node0->node_id = node1->node_id; in update_tree()
438 node0->link_on = node1->link_on; in update_tree()
439 node0->initiated_reset = node1->initiated_reset; in update_tree()
440 node0->max_hops = node1->max_hops; in update_tree()
441 node1->color = card->color; in update_tree()
444 if (card->root_node == node1) in update_tree()
446 if (card->irm_node == node1) in update_tree()
450 if (node0->ports[i] && node1->ports[i]) { in update_tree()
459 list_add_tail(&node1->ports[i]->link, &list1); in update_tree()
471 } else if (node1->ports[i]) { in update_tree()
478 move_tree(node0, node1, i); in update_tree()
485 next1 = fw_node(node1->link.next); in update_tree()
486 fw_node_put(node1); in update_tree()
487 node1 = next1; in update_tree()