Lines Matching refs:actv_ports

2002 	struct mlx4_active_ports actv_ports = mlx4_get_active_ports(  in mlx4_master_activate_admin_state()  local
2004 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_activate_admin_state()
2007 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
2010 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_activate_admin_state()
2068 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_master_deactivate_admin_state() local
2070 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_deactivate_admin_state()
2073 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2077 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_deactivate_admin_state()
2780 struct mlx4_active_ports actv_ports; in mlx4_get_active_ports() local
2783 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports()
2786 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2787 return actv_ports; in mlx4_get_active_ports()
2792 return actv_ports; in mlx4_get_active_ports()
2794 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()
2798 return actv_ports; in mlx4_get_active_ports()
2805 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slave_convert_port() local
2806 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2811 n = find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2821 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_phys_to_slave_port() local
2822 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slave_port()
2824 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_phys_to_slave_port()
2842 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport() local
2844 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slaves_pport()
2862 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport_actv() local
2864 if (bitmap_equal(crit_ports->ports, actv_ports.ports, in mlx4_phys_to_slaves_pport_actv()
2875 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slaves_closest_port() local
2876 int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports) in mlx4_slaves_closest_port()
2879 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slaves_closest_port()
3416 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_vf_set_enable_smi_admin() local
3418 int min_port = find_first_bit(actv_ports.ports, in mlx4_vf_set_enable_smi_admin()
3421 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_vf_set_enable_smi_admin()