Lines Matching refs:num_ports

925 				if (port < 1 || port > dev->caps.num_ports)  in mlx4_MAD_IFC_wrapper()
1992 priv->dev.caps.num_ports) + 1; in mlx4_master_activate_admin_state()
1994 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
2044 priv->dev.caps.num_ports) + 1; in mlx4_master_deactivate_admin_state()
2046 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2393 for (port = 1; port <= dev->caps.num_ports; port++) { in mlx4_multi_func_init()
2718 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2728 dev->caps.num_ports)); in mlx4_get_active_ports()
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()
2756 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_phys_to_slave_port()
2770 if (port <= 0 || port > dev->caps.num_ports) in mlx4_phys_to_slaves_pport()
2797 dev->caps.num_ports)) in mlx4_phys_to_slaves_pport_actv()
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()
3305 priv->dev.caps.num_ports) + 1; 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()
3317 if (min_port == max_port && dev->caps.num_ports > 1) { in mlx4_vf_set_enable_smi_admin()