Home
last modified time | relevance | path

Searched refs:migf (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/vfio/pci/mlx5/ !
Dmain.c68 static void mlx5vf_disable_fd(struct mlx5_vf_migration_file *migf) in mlx5vf_disable_fd() argument
70 mutex_lock(&migf->lock); in mlx5vf_disable_fd()
71 migf->state = MLX5_MIGF_STATE_ERROR; in mlx5vf_disable_fd()
72 migf->filp->f_pos = 0; in mlx5vf_disable_fd()
73 mutex_unlock(&migf->lock); in mlx5vf_disable_fd()
78 struct mlx5_vf_migration_file *migf = filp->private_data; in mlx5vf_release_file() local
80 mlx5vf_disable_fd(migf); in mlx5vf_release_file()
81 mutex_destroy(&migf->lock); in mlx5vf_release_file()
82 kfree(migf); in mlx5vf_release_file()
87 mlx5vf_get_data_buff_from_pos(struct mlx5_vf_migration_file *migf, loff_t pos, in mlx5vf_get_data_buff_from_pos() argument
[all …]
Dcmd.c40 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()
370 struct mlx5vf_pci_core_device *mvdev = buf->migf->mvdev; in mlx5vf_dma_data_buffer()
385 ret = _create_mkey(mdev, buf->migf->pdn, buf, NULL, &buf->mkey); in mlx5vf_dma_data_buffer()
399 struct mlx5_vf_migration_file *migf = buf->migf; in mlx5vf_free_data_buffer() local
402 lockdep_assert_held(&migf->mvdev->state_mutex); in mlx5vf_free_data_buffer()
403 WARN_ON(migf->mvdev->mdev_detach); in mlx5vf_free_data_buffer()
[all …]
Dcmd.h65 struct mlx5_vf_migration_file *migf; member
83 struct mlx5_vf_migration_file *migf; member
210 struct mlx5_vf_migration_file *migf,
214 struct mlx5_vf_migration_file *migf,
216 int mlx5vf_cmd_alloc_pd(struct mlx5_vf_migration_file *migf);
217 void mlx5vf_cmd_dealloc_pd(struct mlx5_vf_migration_file *migf);
218 void mlx5fv_cmd_clean_migf_resources(struct mlx5_vf_migration_file *migf);
220 mlx5vf_alloc_data_buffer(struct mlx5_vf_migration_file *migf,
224 mlx5vf_get_data_buffer(struct mlx5_vf_migration_file *migf,
233 void mlx5vf_mig_file_set_save_work(struct mlx5_vf_migration_file *migf,
/linux-6.12.1/drivers/vfio/pci/qat/ !
Dmain.c82 static void qat_vf_disable_fd(struct qat_vf_migration_file *migf) in qat_vf_disable_fd() argument
84 mutex_lock(&migf->lock); in qat_vf_disable_fd()
85 migf->disabled = true; in qat_vf_disable_fd()
86 migf->filp->f_pos = 0; in qat_vf_disable_fd()
87 migf->filled_size = 0; in qat_vf_disable_fd()
88 mutex_unlock(&migf->lock); in qat_vf_disable_fd()
119 struct qat_vf_migration_file *migf = filp->private_data; in qat_vf_precopy_ioctl() local
120 struct qat_vf_core_device *qat_vdev = migf->qat_vdev; in qat_vf_precopy_ioctl()
144 mutex_lock(&migf->lock); in qat_vf_precopy_ioctl()
145 if (migf->disabled) { in qat_vf_precopy_ioctl()
[all …]
/linux-6.12.1/drivers/vfio/pci/hisilicon/ !
Dhisi_acc_vfio_pci.c354 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 …]
/linux-6.12.1/samples/vfio-mdev/ !
Dmtty.c783 static void mtty_disable_file(struct mtty_migration_file *migf) in mtty_disable_file() argument
785 mutex_lock(&migf->lock); in mtty_disable_file()
786 migf->disabled = true; in mtty_disable_file()
787 migf->filled_size = 0; in mtty_disable_file()
788 migf->filp->f_pos = 0; in mtty_disable_file()
789 mutex_unlock(&migf->lock); in mtty_disable_file()
824 struct mtty_migration_file *migf = filp->private_data; in mtty_release_migf() local
826 mtty_disable_file(migf); in mtty_release_migf()
827 mutex_destroy(&migf->lock); in mtty_release_migf()
828 kfree(migf); in mtty_release_migf()
[all …]