Lines Matching defs:async_data

548 			      struct mlx5vf_async_data *async_data)
550 kvfree(async_data->out);
557 struct mlx5vf_async_data *async_data = container_of(_work,
559 struct mlx5_vf_migration_file *migf = container_of(async_data,
560 struct mlx5_vf_migration_file, async_data);
563 if (async_data->status) {
564 mlx5vf_put_data_buffer(async_data->buf);
565 if (async_data->header_buf)
566 mlx5vf_put_data_buffer(async_data->header_buf);
567 if (!async_data->stop_copy_chunk &&
568 async_data->status == MLX5_CMD_STAT_BAD_RES_STATE_ERR)
575 mlx5vf_save_callback_complete(migf, async_data);
609 struct mlx5vf_async_data *async_data = container_of(context,
611 struct mlx5_vf_migration_file *migf = container_of(async_data,
612 struct mlx5_vf_migration_file, async_data);
620 !async_data->stop_copy_chunk;
622 image_size = MLX5_GET(save_vhca_state_out, async_data->out,
624 if (async_data->buf->stop_copy_chunk_num)
626 async_data->out, next_required_umem_size);
627 stop_copy_last_chunk = async_data->stop_copy_chunk &&
629 if (async_data->header_buf) {
630 status = add_buf_header(async_data->header_buf, image_size,
635 async_data->buf->length = image_size;
636 async_data->buf->start_pos = migf->max_pos;
637 migf->max_pos += async_data->buf->length;
639 list_add_tail(&async_data->buf->buf_elm, &migf->buf_list);
640 if (async_data->buf->stop_copy_chunk_num) {
660 (async_data->buf->stop_copy_chunk_num % MAX_NUM_CHUNKS) + 1,
662 mlx5vf_save_callback_complete(migf, async_data);
669 status = MLX5_GET(save_vhca_state_out, async_data->out, status);
672 async_data->out);
675 async_data->status = status;
676 queue_work(migf->mvdev->cb_wq, &async_data->work);
687 struct mlx5vf_async_data *async_data;
719 async_data = &migf->async_data;
720 async_data->buf = buf;
721 async_data->stop_copy_chunk = (!track && !pre_copy_cleanup);
722 async_data->out = kvzalloc(out_size, GFP_KERNEL);
723 if (!async_data->out) {
728 if (async_data->stop_copy_chunk) {
745 if (async_data->stop_copy_chunk)
748 async_data->header_buf = header_buf;
751 async_data->out,
753 &async_data->cb_work);
764 kvfree(async_data->out);