Lines Matching refs:node0

337 static void move_tree(struct fw_node *node0, struct fw_node *node1, int port)  in move_tree()  argument
343 node0->ports[port] = tree; in move_tree()
346 tree->ports[i] = node0; in move_tree()
360 struct fw_node *node0, *node1, *next1; in update_tree() local
368 node0 = fw_node(list0.next); in update_tree()
371 while (&node0->link != &list0) { in update_tree()
372 WARN_ON(node0->port_count != node1->port_count); in update_tree()
374 if (node0->link_on && !node1->link_on) in update_tree()
376 else if (!node0->link_on && node1->link_on) in update_tree()
383 node0->node_id = node1->node_id; in update_tree()
384 node0->color = card->color; in update_tree()
385 node0->link_on = node1->link_on; in update_tree()
386 node0->initiated_reset = node1->initiated_reset; in update_tree()
387 node0->max_hops = node1->max_hops; in update_tree()
389 fw_node_event(card, node0, event); in update_tree()
392 card->root_node = node0; in update_tree()
394 card->irm_node = node0; in update_tree()
396 for (i = 0; i < node0->port_count; i++) { in update_tree()
397 if (node0->ports[i] && node1->ports[i]) { in update_tree()
403 if (node0->ports[i]->color == card->color) in update_tree()
405 list_add_tail(&node0->ports[i]->link, &list0); in update_tree()
407 } else if (node0->ports[i]) { in update_tree()
415 for_each_fw_node(card, node0->ports[i], in update_tree()
417 node0->ports[i] = NULL; in update_tree()
425 move_tree(node0, node1, i); in update_tree()
426 for_each_fw_node(card, node0->ports[i], in update_tree()
431 node0 = fw_node(node0->link.next); in update_tree()