Lines Matching refs:links

614 			sw1 = node->links[i]->switch_id;
631 sw3 = s2->node->links[j]->switch_id;
646 sw2 = node->links[j]->switch_id;
740 * remove type from nodes that have fewer links
758 nn = p_lash->switches[n->links[i]->switch_id]->node;
788 * skip switches with more links than MAX_DEGREE
826 p_lash->switches[node->links[port]->switch_id]->p_sw->p_node->print_desc);
832 * assign axes to the links of the seed switch
1022 int l2 = s1->node->links[i]->link_id;
1033 sw2 = s1->node->links[i]->switch_id;
1070 s1 = p_lash->switches[s->node->links[i]->switch_id];
1071 s2 = p_lash->switches[s->node->links[j]->switch_id];
1078 if (s1->node->links[k]->switch_id == sw1)
1082 if (s2->node->links[l]->switch_id == sw1)
1085 if (s1->node->links[k]->switch_id == s2->node->links[l]->switch_id) {
1132 * reorder the links out of a switch in sign/dimension order
1140 link_t **links;
1147 if (!(links = calloc(n, sizeof(link_t *)))) {
1149 "Failed allocating links array - out of memory\n");
1154 free(links);
1161 * find the links with axes
1172 if (!node->links[l])
1175 links[next] = node->links[l];
1177 node->links[l] = NULL;
1188 if (!node->links[i])
1191 links[next] = node->links[i];
1193 node->links[i] = NULL;
1198 node->links[i] = links[i];
1202 free(links);
1261 s1 = p_lash->switches[s->node->links[j]->switch_id];
1355 * reorder links
1435 s->node->links[j]->switch_id =
1436 reverse[s->node->links[j]->switch_id];
1510 if (node->links[i])
1511 free(node->links[i]);
1554 if (!(node->links[i] = calloc(1, sizeof(link_t) + num_ports * sizeof(int))))
1561 node->links[i]->switch_id = NONE;
1606 s2 = p_lash->switches[s->node->links[j]->switch_id];