Lines Matching refs:vf_admin
1852 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_master_immediate_activate_vlan_qos()
2013 priv->mfunc.master.vf_admin[slave].enable_smi[port]; in mlx4_master_activate_admin_state()
2015 vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_master_activate_admin_state()
2378 struct mlx4_vf_admin_state *vf_admin; in mlx4_multi_func_init() local
2387 priv->mfunc.master.vf_admin = in mlx4_multi_func_init()
2391 if (!priv->mfunc.master.vf_admin) in mlx4_multi_func_init()
2404 vf_admin = &priv->mfunc.master.vf_admin[i]; in mlx4_multi_func_init()
2429 admin_vport = &vf_admin->vport[port]; in mlx4_multi_func_init()
2491 kfree(priv->mfunc.master.vf_admin); in mlx4_multi_func_init()
2595 kfree(priv->mfunc.master.vf_admin); in mlx4_multi_func_cleanup()
2936 struct mlx4_vport_state *vf_admin) in mlx4_is_vf_vst_and_prio_qos() argument
2947 if (vf_admin->default_vlan != MLX4_VGT && in mlx4_is_vf_vst_and_prio_qos()
2948 test_bit(vf_admin->default_qos, info->priority_bm)) in mlx4_is_vf_vst_and_prio_qos()
2955 struct mlx4_vport_state *vf_admin, in mlx4_valid_vf_state_change() argument
2960 if (!mlx4_is_vf_vst_and_prio_qos(dev, port, vf_admin) || in mlx4_valid_vf_state_change()
2961 !vf_admin->tx_rate) in mlx4_valid_vf_state_change()
3003 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_mac()
3022 struct mlx4_vport_state *vf_admin; in mlx4_set_vf_vlan() local
3057 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_vlan()
3060 if (!mlx4_valid_vf_state_change(dev, port, vf_admin, vlan, qos)) in mlx4_set_vf_vlan()
3064 vf_admin->default_vlan = MLX4_VGT; in mlx4_set_vf_vlan()
3066 vf_admin->default_vlan = vlan; in mlx4_set_vf_vlan()
3067 vf_admin->default_qos = qos; in mlx4_set_vf_vlan()
3068 vf_admin->vlan_proto = proto; in mlx4_set_vf_vlan()
3073 if (mlx4_is_vf_vst_and_prio_qos(dev, port, vf_admin) && in mlx4_set_vf_vlan()
3074 vf_admin->tx_rate) in mlx4_set_vf_vlan()
3075 vf_admin->qos_vport = slave; in mlx4_set_vf_vlan()
3095 struct mlx4_vport_state *vf_admin; in mlx4_set_vf_rate() local
3112 vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_rate()
3121 vf_admin->tx_rate = max_tx_rate; in mlx4_set_vf_rate()
3127 if (!mlx4_is_vf_vst_and_prio_qos(dev, port, vf_admin)) { in mlx4_set_vf_rate()
3131 if (vf_admin->default_vlan != MLX4_VGT) in mlx4_set_vf_rate()
3143 vf_admin->qos_vport = max_tx_rate ? slave : MLX4_VPP_DEFAULT_VPORT; in mlx4_set_vf_rate()
3194 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_spoofchk()
3221 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_get_vf_config()
3283 s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; in mlx4_set_vf_link_state()
3407 return priv->mfunc.master.vf_admin[slave].enable_smi[port] == in mlx4_vf_get_enable_smi_admin()
3436 priv->mfunc.master.vf_admin[slave].enable_smi[port] = enabled; in mlx4_vf_set_enable_smi_admin()