Lines Matching refs:num_ports
910 if (port < 1 || port > dev->caps.num_ports) in mlx4_MAD_IFC_wrapper()
1976 priv->dev.caps.num_ports) + 1; in mlx4_master_activate_admin_state()
1978 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
2028 priv->dev.caps.num_ports) + 1; in mlx4_master_deactivate_admin_state()
2030 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2377 for (port = 1; port <= dev->caps.num_ports; port++) { in mlx4_multi_func_init()
2702 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2712 dev->caps.num_ports)); in mlx4_get_active_ports()
2722 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2727 n = find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2740 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_phys_to_slave_port()
2754 if (port <= 0 || port > dev->caps.num_ports) in mlx4_phys_to_slaves_pport()
2781 dev->caps.num_ports)) in mlx4_phys_to_slaves_pport_actv()
2792 int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports) in mlx4_slaves_closest_port()
2795 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slaves_closest_port()