Lines Matching refs:vf
51 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u32 port, in mlx5_ib_get_vf_config() argument
63 err = mlx5_query_hca_vport_context(mdev, 1, 1, vf + 1, rep); in mlx5_ib_get_vf_config()
66 vf, err); in mlx5_ib_get_vf_config()
93 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state() argument
112 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in mlx5_ib_set_vf_link_state()
114 vfs_ctx[vf].policy = in->policy; in mlx5_ib_set_vf_link_state()
121 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats() argument
137 err = mlx5_core_query_vport_counter(mdev, true, vf, port, out); in mlx5_ib_get_vf_stats()
152 static int set_vf_node_guid(struct ib_device *device, int vf, u32 port, in set_vf_node_guid() argument
167 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in set_vf_node_guid()
169 vfs_ctx[vf].node_guid = guid; in set_vf_node_guid()
170 vfs_ctx[vf].node_guid_valid = 1; in set_vf_node_guid()
176 static int set_vf_port_guid(struct ib_device *device, int vf, u32 port, in set_vf_port_guid() argument
191 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in set_vf_port_guid()
193 vfs_ctx[vf].port_guid = guid; in set_vf_port_guid()
194 vfs_ctx[vf].port_guid_valid = 1; in set_vf_port_guid()
200 int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u32 port, in mlx5_ib_set_vf_guid() argument
204 return set_vf_node_guid(device, vf, port, guid); in mlx5_ib_set_vf_guid()
206 return set_vf_port_guid(device, vf, port, guid); in mlx5_ib_set_vf_guid()
211 int mlx5_ib_get_vf_guid(struct ib_device *device, int vf, u32 port, in mlx5_ib_get_vf_guid() argument
220 vfs_ctx[vf].node_guid_valid ? vfs_ctx[vf].node_guid : 0; in mlx5_ib_get_vf_guid()
222 vfs_ctx[vf].port_guid_valid ? vfs_ctx[vf].port_guid : 0; in mlx5_ib_get_vf_guid()