Lines Matching refs:port_num

152 	if (!lid_ho || !remote_lid_ho || !p->port_num)
157 lid_ho, p->port_num, remote_lid_ho, (is_ca) ? "CA/RTR" : "SW");
172 if (p->port_num >= p_cache_sw->num_ports) {
182 if (p_cache_sw->ports[p->port_num].remote_lid_ho == 0) {
184 p_cache_sw->ports[p->port_num].remote_lid_ho = remote_lid_ho;
185 p_cache_sw->ports[p->port_num].is_leaf = is_ca;
195 unsigned port_num;
208 for (port_num = 1; port_num < p_sw->num_ports; port_num++)
209 if (p_sw->ports[port_num].remote_lid_ho)
250 uint8_t port_num, uint16_t remote_lid_ho,
264 lid_ho, port_num);
269 if (port_num >= p_cache_sw->num_ports ||
270 !p_cache_sw->ports[port_num].remote_lid_ho) {
273 lid_ho, port_num);
278 if (p_cache_sw->ports[port_num].remote_lid_ho != remote_lid_ho) {
281 "(was %u, now %u)\n", lid_ho, port_num,
282 p_cache_sw->ports[port_num].remote_lid_ho,
288 if ((p_cache_sw->ports[port_num].is_leaf && !is_ca) ||
289 (!p_cache_sw->ports[port_num].is_leaf && is_ca)) {
292 lid_ho, port_num);
299 "found in cache\n", lid_ho, port_num, remote_lid_ho);
303 p_cache_sw->ports[port_num].remote_lid_ho = 0;
304 p_cache_sw->ports[port_num].is_leaf = FALSE;
403 unsigned port_num;
445 for (port_num = 1; port_num < max_ports; port_num++) {
447 p_physp = osm_node_get_physp_ptr(p_node, port_num);
472 lid_ho, port_num);
490 port_num >= p_cache_sw->num_ports ||
491 !p_cache_sw->ports[port_num].remote_lid_ho) {
602 if ((p_cache_sw->ports[port_num].is_leaf &&
604 (!p_cache_sw->ports[port_num].is_leaf &&
608 lid_ho, port_num);
613 if (p_cache_sw->ports[port_num].remote_lid_ho !=
618 lid_ho, port_num,
619 p_cache_sw->ports[port_num].
633 p_cache_sw->ports[port_num].remote_lid_ho = 0;
634 p_cache_sw->ports[port_num].is_leaf = FALSE;
644 lid_ho, port_num, remote_lid_ho);
689 for (port_num = 1; port_num < p_cache_sw->num_ports; port_num++) {
690 if (!p_cache_sw->ports[port_num].remote_lid_ho)
693 if (p_cache_sw->ports[port_num].is_leaf) {
699 port_num);
705 ports[port_num].
712 port_num);
721 port_num);
740 port_num);
749 port_num);
857 p_physp1->port_num, p_physp2->port_num);
908 uint8_t port_num;
943 for (port_num = 1; port_num < max_ports; port_num++) {
945 p_physp = osm_node_get_physp_ptr(p_node, port_num);
1004 for (port_num = 1; port_num < max_ports; port_num++) {
1006 p_physp = osm_node_get_physp_ptr(p_node, port_num);