/kernel/linux/linux-6.6/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_ argument 209 struct mlx5_vf_migration_file *migf = filp->private_data; mlx5vf_save_read() local 281 struct mlx5_vf_migration_file *migf = filp->private_data; mlx5vf_save_poll() local 301 mlx5vf_mark_err(struct mlx5_vf_migration_file *migf) mlx5vf_mark_err() argument 307 mlx5vf_add_stop_copy_header(struct mlx5_vf_migration_file *migf) mlx5vf_add_stop_copy_header() argument 350 mlx5vf_prep_stop_copy(struct mlx5_vf_migration_file *migf, size_t state_size) mlx5vf_prep_stop_copy() argument 391 struct mlx5_vf_migration_file *migf = filp->private_data; mlx5vf_precopy_ioctl() local 500 struct mlx5_vf_migration_file *migf = mvdev->saving_migf; mlx5vf_pci_save_device_inc_data() local 541 struct mlx5_vf_migration_file *migf; mlx5vf_pci_save_device_data() local 672 mlx5vf_resume_read_image(struct mlx5_vf_migration_file *migf, struct mlx5_vhca_data_buffer *vhca_buf, size_t image_size, const char __user **buf, size_t *len, loff_t *pos, ssize_t *done, bool *has_work) mlx5vf_resume_read_image() argument 701 mlx5vf_resume_read_header_data(struct mlx5_vf_migration_file *migf, struct mlx5_vhca_data_buffer *vhca_buf, const char __user **buf, size_t *len, loff_t *pos, ssize_t *done) mlx5vf_resume_read_header_data() argument 751 mlx5vf_resume_read_header(struct mlx5_vf_migration_file *migf, struct mlx5_vhca_data_buffer *vhca_buf, const char __user **buf, size_t *len, loff_t *pos, ssize_t *done, bool *has_work) mlx5vf_resume_read_header() argument 822 struct mlx5_vf_migration_file *migf = filp->private_data; mlx5vf_resume_write() local 951 struct mlx5_vf_migration_file *migf; mlx5vf_pci_resume_device_data() local 1070 struct mlx5_vf_migration_file *migf; mlx5vf_pci_step_device_state_locked() local 1089 struct mlx5_vf_migration_file *migf; mlx5vf_pci_step_device_state_locked() local 1114 struct mlx5_vf_migration_file *migf; mlx5vf_pci_step_device_state_locked() local [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 in mlx5vf_free_data_buffer() 396 mlx5vf_alloc_data_buffer(struct mlx5_vf_migration_file *migf, size_t length, enum dma_data_direction dma_dir) mlx5vf_alloc_data_buffer() argument 436 mlx5vf_get_data_buffer(struct mlx5_vf_migration_file *migf, size_t length, enum dma_data_direction dma_dir) mlx5vf_get_data_buffer() argument 482 struct mlx5_vf_migration_file *migf = container_of(async_data, mlx5vf_mig_file_cleanup_cb() local 505 struct mlx5_vf_migration_file *migf = header_buf->migf; add_buf_header() local 535 struct mlx5_vf_migration_file *migf = container_of(async_data, mlx5vf_save_callback() local 576 mlx5vf_cmd_save_vhca_state(struct mlx5vf_pci_core_device *mvdev, struct mlx5_vf_migration_file *migf, struct mlx5_vhca_data_buffer *buf, bool inc, bool track) mlx5vf_cmd_save_vhca_state() argument 659 mlx5vf_cmd_load_vhca_state(struct mlx5vf_pci_core_device *mvdev, struct mlx5_vf_migration_file *migf, struct mlx5_vhca_data_buffer *buf) mlx5vf_cmd_load_vhca_state() argument 686 mlx5vf_cmd_alloc_pd(struct mlx5_vf_migration_file *migf) mlx5vf_cmd_alloc_pd() argument 698 mlx5vf_cmd_dealloc_pd(struct mlx5_vf_migration_file *migf) mlx5vf_cmd_dealloc_pd() argument 707 mlx5fv_cmd_clean_migf_resources(struct mlx5_vf_migration_file *migf) mlx5fv_cmd_clean_migf_resources() argument [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,
|
/kernel/linux/linux-6.6/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() 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() 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() 492 struct acc_vf_data *vf_data = &migf->vf_data; in vf_qm_state_save() 501 migf in vf_qm_state_save() 353 vf_qm_check_match(struct hisi_acc_vf_core_device *hisi_acc_vdev, struct hisi_acc_vf_migration_file *migf) vf_qm_check_match() argument 444 vf_qm_load_data(struct hisi_acc_vf_core_device *hisi_acc_vdev, struct hisi_acc_vf_migration_file *migf) vf_qm_load_data() argument 489 vf_qm_state_save(struct hisi_acc_vf_core_device *hisi_acc_vdev, struct hisi_acc_vf_migration_file *migf) vf_qm_state_save() argument 609 hisi_acc_vf_disable_fd(struct hisi_acc_vf_migration_file *migf) hisi_acc_vf_disable_fd() argument 670 struct hisi_acc_vf_migration_file *migf = hisi_acc_vdev->resuming_migf; hisi_acc_vf_load_state() local 685 struct hisi_acc_vf_migration_file *migf = filp->private_data; hisi_acc_vf_release_file() local 696 struct hisi_acc_vf_migration_file *migf = filp->private_data; hisi_acc_vf_resume_write() local 746 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_pci_resume() local 770 struct hisi_acc_vf_migration_file *migf = filp->private_data; hisi_acc_vf_precopy_ioctl() local 818 struct hisi_acc_vf_migration_file *migf = filp->private_data; hisi_acc_vf_save_read() local 866 struct hisi_acc_vf_migration_file *migf; hisi_acc_open_saving_migf() local 898 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_pre_copy() local 912 struct hisi_acc_vf_migration_file *migf = NULL; hisi_acc_vf_stop_copy() local 961 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_set_device_state() local 972 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_set_device_state() local 993 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_set_device_state() local 1009 struct hisi_acc_vf_migration_file *migf; hisi_acc_vf_set_device_state() local [all...] |