Lines Matching refs:ports
115 node = kzalloc(sizeof(*node) + port_count * sizeof(node->ports[0]), in fw_node_create()
154 if (node->ports[i] == NULL) in update_hop_count()
157 if (node->ports[i]->max_hops > max_child_hops) in update_hop_count()
158 max_child_hops = node->ports[i]->max_hops; in update_hop_count()
160 if (node->ports[i]->max_depth > depths[0]) { in update_hop_count()
162 depths[0] = node->ports[i]->max_depth; in update_hop_count()
163 } else if (node->ports[i]->max_depth > depths[1]) in update_hop_count()
164 depths[1] = node->ports[i]->max_depth; in update_hop_count()
267 node->ports[i] = child; in build_tree()
272 child->ports[child->color] = node; in build_tree()
341 child = node->ports[i]; in for_each_fw_node()
407 tree = node1->ports[port]; in move_tree()
408 node0->ports[port] = tree; in move_tree()
410 if (tree->ports[i] == node1) { in move_tree()
411 tree->ports[i] = node0; in move_tree()
462 if (node0->ports[i] && node1->ports[i]) { in update_tree()
468 if (node0->ports[i]->color == card->color) in update_tree()
470 list_add_tail(&node0->ports[i]->link, &list0); in update_tree()
471 list_add_tail(&node1->ports[i]->link, &list1); in update_tree()
472 } else if (node0->ports[i]) { in update_tree()
480 for_each_fw_node(card, node0->ports[i], in update_tree()
482 node0->ports[i] = NULL; in update_tree()
483 } else if (node1->ports[i]) { in update_tree()
491 for_each_fw_node(card, node0->ports[i], in update_tree()