Lines Matching refs:actv_ports

1973 	struct mlx4_active_ports actv_ports = mlx4_get_active_ports(  in mlx4_master_activate_admin_state()  local
1975 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_activate_admin_state()
1978 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
1981 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_activate_admin_state()
2025 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_master_deactivate_admin_state() local
2027 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_deactivate_admin_state()
2030 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2034 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_deactivate_admin_state()
2696 struct mlx4_active_ports actv_ports; in mlx4_get_active_ports() local
2699 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports()
2702 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2703 return actv_ports; in mlx4_get_active_ports()
2708 return actv_ports; in mlx4_get_active_ports()
2710 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()
2714 return actv_ports; in mlx4_get_active_ports()
2721 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slave_convert_port() local
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()
2737 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_phys_to_slave_port() local
2738 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slave_port()
2740 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_phys_to_slave_port()
2758 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport() local
2760 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slaves_pport()
2778 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport_actv() local
2780 if (bitmap_equal(crit_ports->ports, actv_ports.ports, in mlx4_phys_to_slaves_pport_actv()
2791 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slaves_closest_port() local
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()