Lines Matching defs:length
56 if (offset < sg->length + cur_offset) {
63 cur_offset += sg->length;
103 pos < buf->start_pos + buf->length) {
162 vhca_buf->start_pos + vhca_buf->length - *pos, *len);
189 if (*pos >= vhca_buf->start_pos + vhca_buf->length)
390 header_buf->length = sizeof(header);
393 header_buf->length += sizeof(data);
396 migf->max_pos += header_buf->length;
597 size_t length;
603 ret = mlx5vf_cmd_query_vhca_migration_state(mvdev, &length, NULL,
608 buf = mlx5vf_mig_file_get_stop_copy_buf(migf, 0, length);
632 size_t length;
667 ret = mlx5vf_cmd_query_vhca_migration_state(mvdev, &length, &full_size, 0);
671 ret = mlx5vf_prep_stop_copy(mvdev, migf, length, full_size, track);
732 vhca_buf->length += page_len;
746 to_copy = min_t(size_t, *len, image_size - vhca_buf->length);
756 if (vhca_buf->length == image_size) {
776 required_data = migf->record_size - vhca_buf->length;
787 if (vhca_buf->length == migf->record_size) {
809 vhca_buf->length = 0;
828 sizeof(struct mlx5_vf_migration_header) - vhca_buf->length);
833 ret = copy_from_user(to_buff + vhca_buf->length, *buf, copy_len);
843 vhca_buf->length += copy_len;
844 if (vhca_buf->length == sizeof(struct mlx5_vf_migration_header)) {
875 migf->max_pos += vhca_buf->length;
876 vhca_buf->length = 0;
981 vhca_buf_header->length = 0;
983 vhca_buf->length = 0;