Lines Matching refs:caps

536 		ret = mlx4_master_process_vhcr(dev, dev->caps.function, vhcr);  in mlx4_slave_cmd()
828 out_param = (u64) dev->caps.function | master_addr; in mlx4_ACCESS_MEM()
830 in_param = (u64) dev->caps.function | master_addr; in mlx4_ACCESS_MEM()
872 for (i = 0; i < dev->caps.pkey_table_len[port]; i += 32) { in get_full_pkey_table()
925 if (port < 1 || port > dev->caps.num_ports) in mlx4_MAD_IFC_wrapper()
927 table = kcalloc((dev->caps.pkey_table_len[port] / 32) + 1, in mlx4_MAD_IFC_wrapper()
1853 dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_UPDATE_QP)) { in mlx4_master_immediate_activate_vlan_qos()
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()
2392 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QOS_VPP) { in mlx4_multi_func_init()
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()
2874 !(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QOS_VPP)) in mlx4_is_vf_vst_and_prio_qos()
2948 !(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_VLAN_CONTROL)) in mlx4_set_vf_vlan()
2994 !(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QOS_VPP)) in mlx4_set_vf_rate()
3041 dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_UPDATE_QP) in mlx4_set_vf_rate()
3080 !(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FSM)) in mlx4_set_vf_spoofchk()
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()