Home
last modified time | relevance | path

Searched refs:vfs_ctx (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c53 if (sriov->vfs_ctx[vf].node_guid || in sriov_restore_guids()
54 sriov->vfs_ctx[vf].port_guid || in sriov_restore_guids()
55 sriov->vfs_ctx[vf].policy != MLX5_POLICY_INVALID) { in sriov_restore_guids()
60 in->node_guid = sriov->vfs_ctx[vf].node_guid; in sriov_restore_guids()
61 in->port_guid = sriov->vfs_ctx[vf].port_guid; in sriov_restore_guids()
62 in->policy = sriov->vfs_ctx[vf].policy; in sriov_restore_guids()
108 sriov->vfs_ctx[vf].enabled = 1; in mlx5_device_enable_sriov()
135 if (!sriov->vfs_ctx[vf].enabled) in mlx5_device_disable_sriov()
142 sriov->vfs_ctx[vf].enabled = 0; in mlx5_device_disable_sriov()
267 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dib_virt.c99 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_set_vf_link_state() local
114 vfs_ctx[vf].policy = in->policy; in mlx5_ib_set_vf_link_state()
157 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_node_guid() local
168 vfs_ctx[vf].node_guid = guid; in set_vf_node_guid()
178 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_port_guid() local
189 vfs_ctx[vf].port_guid = guid; in set_vf_port_guid()
/Linux-v4.19/include/linux/mlx5/
Ddriver.h575 struct mlx5_vf_context *vfs_ctx; member