Lines Matching refs:header_buf
488 if (async_data->header_buf) in mlx5vf_mig_file_cleanup_cb()
489 mlx5vf_put_data_buffer(async_data->header_buf); in mlx5vf_mig_file_cleanup_cb()
502 static int add_buf_header(struct mlx5_vhca_data_buffer *header_buf, in add_buf_header() argument
505 struct mlx5_vf_migration_file *migf = header_buf->migf; in add_buf_header()
514 page = mlx5vf_get_migration_page(header_buf, 0); in add_buf_header()
520 header_buf->length = sizeof(header); in add_buf_header()
521 header_buf->start_pos = header_buf->migf->max_pos; in add_buf_header()
522 migf->max_pos += header_buf->length; in add_buf_header()
524 list_add_tail(&header_buf->buf_elm, &migf->buf_list); in add_buf_header()
546 if (async_data->header_buf) { in mlx5vf_save_callback()
547 status = add_buf_header(async_data->header_buf, image_size, in mlx5vf_save_callback()
583 struct mlx5_vhca_data_buffer *header_buf = NULL; in mlx5vf_cmd_save_vhca_state() local
622 header_buf = migf->buf_header; in mlx5vf_cmd_save_vhca_state()
625 header_buf = mlx5vf_get_data_buffer(migf, in mlx5vf_cmd_save_vhca_state()
627 if (IS_ERR(header_buf)) { in mlx5vf_cmd_save_vhca_state()
628 err = PTR_ERR(header_buf); in mlx5vf_cmd_save_vhca_state()
637 async_data->header_buf = header_buf; in mlx5vf_cmd_save_vhca_state()
649 if (header_buf) in mlx5vf_cmd_save_vhca_state()
650 mlx5vf_put_data_buffer(header_buf); in mlx5vf_cmd_save_vhca_state()