Lines Matching refs:ports
104 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC);
142 if (node->ports[i] == NULL)
145 if (node->ports[i]->max_hops > max_child_hops)
146 max_child_hops = node->ports[i]->max_hops;
148 if (node->ports[i]->max_depth > depths[0]) {
150 depths[0] = node->ports[i]->max_depth;
151 } else if (node->ports[i]->max_depth > depths[1])
152 depths[1] = node->ports[i]->max_depth;
245 * node->ports array where the parent
255 node->ports[i] = child;
260 child->ports[child->color] = node;
329 child = node->ports[i];
392 tree = node1->ports[port];
393 node0->ports[port] = tree;
395 if (tree->ports[i] == node1) {
396 tree->ports[i] = node0;
447 if (node0->ports[i] && node1->ports[i]) {
453 if (node0->ports[i]->color == card->color)
455 list_add_tail(&node0->ports[i]->link, &list0);
456 list_add_tail(&node1->ports[i]->link, &list1);
457 } else if (node0->ports[i]) {
465 for_each_fw_node(card, node0->ports[i],
467 node0->ports[i] = NULL;
468 } else if (node1->ports[i]) {
476 for_each_fw_node(card, node0->ports[i],