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