Searched refs:migf (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | main.c | 110 static void mlx5vf_disable_fd(struct mlx5_vf_migration_file *migf) in mlx5vf_disable_fd() argument 112 mutex_lock(&migf->lock); in mlx5vf_disable_fd() 113 migf->state = MLX5_MIGF_STATE_ERROR; in mlx5vf_disable_fd() 114 migf->filp->f_pos = 0; in mlx5vf_disable_fd() 115 mutex_unlock(&migf->lock); in mlx5vf_disable_fd() 120 struct mlx5_vf_migration_file *migf = filp->private_data; in mlx5vf_release_file() local 122 mlx5vf_disable_fd(migf); in mlx5vf_release_file() 123 mutex_destroy(&migf->lock); in mlx5vf_release_file() 124 kfree(migf); in mlx5vf_release_file() 129 mlx5vf_get_data_buff_from_pos(struct mlx5_vf_migration_file *migf, loff_t pos, in mlx5vf_get_data_buff_from_pos() argument [all …]
|
H A D | cmd.c | 40 struct mlx5_vf_migration_file *migf = mvdev->saving_migf; in mlx5vf_cmd_suspend_vhca() local 55 if (migf) { in mlx5vf_cmd_suspend_vhca() 56 err = wait_for_completion_interruptible(&migf->save_comp); in mlx5vf_cmd_suspend_vhca() 66 if (migf) in mlx5vf_cmd_suspend_vhca() 67 complete(&migf->save_comp); in mlx5vf_cmd_suspend_vhca() 347 struct mlx5vf_pci_core_device *mvdev = buf->migf->mvdev; in mlx5vf_dma_data_buffer() 362 ret = _create_mkey(mdev, buf->migf->pdn, buf, NULL, &buf->mkey); in mlx5vf_dma_data_buffer() 376 struct mlx5_vf_migration_file *migf = buf->migf; in mlx5vf_free_data_buffer() local 379 lockdep_assert_held(&migf->mvdev->state_mutex); in mlx5vf_free_data_buffer() 380 WARN_ON(migf->mvdev->mdev_detach); in mlx5vf_free_data_buffer() [all …]
|
H A D | cmd.h | 68 struct mlx5_vf_migration_file *migf; member 196 struct mlx5_vf_migration_file *migf, 200 struct mlx5_vf_migration_file *migf, 202 int mlx5vf_cmd_alloc_pd(struct mlx5_vf_migration_file *migf); 203 void mlx5vf_cmd_dealloc_pd(struct mlx5_vf_migration_file *migf); 204 void mlx5fv_cmd_clean_migf_resources(struct mlx5_vf_migration_file *migf); 206 mlx5vf_alloc_data_buffer(struct mlx5_vf_migration_file *migf, 210 mlx5vf_get_data_buffer(struct mlx5_vf_migration_file *migf,
|
/openbmc/linux/drivers/vfio/pci/hisilicon/ |
H A D | hisi_acc_vfio_pci.c | 354 struct hisi_acc_vf_migration_file *migf) in vf_qm_check_match() argument 356 struct acc_vf_data *vf_data = &migf->vf_data; in vf_qm_check_match() 363 if (migf->total_length < QM_MATCH_SIZE || hisi_acc_vdev->match_done) in vf_qm_check_match() 445 struct hisi_acc_vf_migration_file *migf) in vf_qm_load_data() argument 449 struct acc_vf_data *vf_data = &migf->vf_data; in vf_qm_load_data() 453 if (migf->total_length == QM_MATCH_SIZE) in vf_qm_load_data() 456 if (migf->total_length < sizeof(struct acc_vf_data)) in vf_qm_load_data() 490 struct hisi_acc_vf_migration_file *migf) in vf_qm_state_save() argument 492 struct acc_vf_data *vf_data = &migf->vf_data; in vf_qm_state_save() 501 migf->total_length = QM_MATCH_SIZE; in vf_qm_state_save() [all …]
|