Lines Matching refs:vf
50 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u32 port, in mlx5_ib_get_vf_config() argument
62 err = mlx5_query_hca_vport_context(mdev, 1, 1, vf + 1, rep); in mlx5_ib_get_vf_config()
65 vf, err); in mlx5_ib_get_vf_config()
92 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state() argument
111 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in mlx5_ib_set_vf_link_state()
113 vfs_ctx[vf].policy = in->policy; in mlx5_ib_set_vf_link_state()
120 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats() argument
136 err = mlx5_core_query_vport_counter(mdev, true, vf, port, out); in mlx5_ib_get_vf_stats()
151 static int set_vf_node_guid(struct ib_device *device, int vf, u32 port, in set_vf_node_guid() argument
166 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in set_vf_node_guid()
168 vfs_ctx[vf].node_guid = guid; in set_vf_node_guid()
169 vfs_ctx[vf].node_guid_valid = 1; in set_vf_node_guid()
175 static int set_vf_port_guid(struct ib_device *device, int vf, u32 port, in set_vf_port_guid() argument
190 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in); in set_vf_port_guid()
192 vfs_ctx[vf].port_guid = guid; in set_vf_port_guid()
193 vfs_ctx[vf].port_guid_valid = 1; in set_vf_port_guid()
199 int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u32 port, in mlx5_ib_set_vf_guid() argument
203 return set_vf_node_guid(device, vf, port, guid); in mlx5_ib_set_vf_guid()
205 return set_vf_port_guid(device, vf, port, guid); in mlx5_ib_set_vf_guid()
210 int mlx5_ib_get_vf_guid(struct ib_device *device, int vf, u32 port, in mlx5_ib_get_vf_guid() argument
219 vfs_ctx[vf].node_guid_valid ? vfs_ctx[vf].node_guid : 0; in mlx5_ib_get_vf_guid()
221 vfs_ctx[vf].port_guid_valid ? vfs_ctx[vf].port_guid : 0; in mlx5_ib_get_vf_guid()