Lines Matching refs:page_len
173 size_t page_len; in mlx5vf_buf_read() local
183 page_len = min_t(size_t, copy_len, PAGE_SIZE - page_offset); in mlx5vf_buf_read()
185 ret = copy_to_user(*buf, from_buff + page_offset, page_len); in mlx5vf_buf_read()
189 *pos += page_len; in mlx5vf_buf_read()
190 *len -= page_len; in mlx5vf_buf_read()
191 *buf += page_len; in mlx5vf_buf_read()
192 done += page_len; in mlx5vf_buf_read()
193 copy_len -= page_len; in mlx5vf_buf_read()
622 size_t page_len; in mlx5vf_append_page_to_mig_buf() local
632 page_len = min_t(size_t, *len, PAGE_SIZE - page_offset); in mlx5vf_append_page_to_mig_buf()
634 ret = copy_from_user(to_buff + page_offset, *buf, page_len); in mlx5vf_append_page_to_mig_buf()
639 *pos += page_len; in mlx5vf_append_page_to_mig_buf()
640 *done += page_len; in mlx5vf_append_page_to_mig_buf()
641 *buf += page_len; in mlx5vf_append_page_to_mig_buf()
642 *len -= page_len; in mlx5vf_append_page_to_mig_buf()
643 vhca_buf->length += page_len; in mlx5vf_append_page_to_mig_buf()