Lines Matching refs:actv_ports

1989 	struct mlx4_active_ports actv_ports = mlx4_get_active_ports(  in mlx4_master_activate_admin_state()  local
1991 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_activate_admin_state()
1994 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
1997 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_activate_admin_state()
2041 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_master_deactivate_admin_state() local
2043 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_deactivate_admin_state()
2046 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2050 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_deactivate_admin_state()
2712 struct mlx4_active_ports actv_ports; in mlx4_get_active_ports() local
2715 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports()
2718 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2719 return actv_ports; in mlx4_get_active_ports()
2724 return actv_ports; in mlx4_get_active_ports()
2726 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()
2730 return actv_ports; in mlx4_get_active_ports()
2737 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slave_convert_port() local
2738 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2743 n = find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2753 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_phys_to_slave_port() local
2754 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slave_port()
2756 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_phys_to_slave_port()
2774 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport() local
2776 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slaves_pport()
2794 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport_actv() local
2796 if (bitmap_equal(crit_ports->ports, actv_ports.ports, in mlx4_phys_to_slaves_pport_actv()
2807 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_slaves_closest_port() local
2808 int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports) in mlx4_slaves_closest_port()
2811 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slaves_closest_port()
3302 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_vf_set_enable_smi_admin() local
3304 int min_port = find_first_bit(actv_ports.ports, in mlx4_vf_set_enable_smi_admin()
3307 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_vf_set_enable_smi_admin()