Lines Matching refs:ports
103 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC);
141 if (node->ports[i] == NULL)
144 if (node->ports[i]->max_hops > max_child_hops)
145 max_child_hops = node->ports[i]->max_hops;
147 if (node->ports[i]->max_depth > depths[0]) {
149 depths[0] = node->ports[i]->max_depth;
150 } else if (node->ports[i]->max_depth > depths[1])
151 depths[1] = node->ports[i]->max_depth;
244 * node->ports array where the parent
254 node->ports[i] = child;
259 child->ports[child->color] = node;
328 child = node->ports[i];
391 tree = node1->ports[port];
392 node0->ports[port] = tree;
394 if (tree->ports[i] == node1) {
395 tree->ports[i] = node0;
446 if (node0->ports[i] && node1->ports[i]) {
452 if (node0->ports[i]->color == card->color)
454 list_add_tail(&node0->ports[i]->link, &list0);
455 list_add_tail(&node1->ports[i]->link, &list1);
456 } else if (node0->ports[i]) {
464 for_each_fw_node(card, node0->ports[i],
466 node0->ports[i] = NULL;
467 } else if (node1->ports[i]) {
475 for_each_fw_node(card, node0->ports[i],