Lines Matching refs:port_num
593 int port_num; in rio_enum_peer() local
614 for (port_num = 0; in rio_enum_peer()
615 port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); in rio_enum_peer()
616 port_num++) { in rio_enum_peer()
617 if (sw_inport == port_num) { in rio_enum_peer()
620 hopcount, port_num); in rio_enum_peer()
621 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
627 if (rio_sport_is_active(rdev, port_num)) { in rio_enum_peer()
630 port_num); in rio_enum_peer()
633 hopcount, port_num); in rio_enum_peer()
634 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
637 port_num, 0); in rio_enum_peer()
640 rdev, port_num) < 0) in rio_enum_peer()
652 port_num, in rio_enum_peer()
656 port_num; in rio_enum_peer()
667 rio_set_port_lockout(rdev, port_num, 1); in rio_enum_peer()
669 rdev->rswitch->port_ok &= ~(1 << port_num); in rio_enum_peer()
729 u8 port_num, route_port; in rio_disc_peer() local
749 for (port_num = 0; in rio_disc_peer()
750 port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); in rio_disc_peer()
751 port_num++) { in rio_disc_peer()
752 if (RIO_GET_PORT_NUM(rdev->swpinfo) == port_num) in rio_disc_peer()
755 if (rio_sport_is_active(rdev, port_num)) { in rio_disc_peer()
758 port_num); in rio_disc_peer()
769 if (route_port == port_num) in rio_disc_peer()
777 hopcount + 1, rdev, port_num) < 0) in rio_disc_peer()