Lines Matching refs:bytes_copied

123 					size_t *bytes_copied)  in mlx5_ib_read_user_wqe_common()  argument
140 if (!ret && bytes_copied) in mlx5_ib_read_user_wqe_common()
141 *bytes_copied = copy_length; in mlx5_ib_read_user_wqe_common()
150 size_t bytes_copied = 0; in mlx5_ib_read_kernel_wqe_sq() local
164 while (bytes_copied < wqe_length) { in mlx5_ib_read_kernel_wqe_sq()
166 min_t(size_t, buflen - bytes_copied, MLX5_SEND_WQE_BB); in mlx5_ib_read_kernel_wqe_sq()
171 memcpy(buffer + bytes_copied, p, copy_length); in mlx5_ib_read_kernel_wqe_sq()
172 bytes_copied += copy_length; in mlx5_ib_read_kernel_wqe_sq()
177 *bc = bytes_copied; in mlx5_ib_read_kernel_wqe_sq()
188 size_t bytes_copied; in mlx5_ib_read_user_wqe_sq() local
198 &bytes_copied); in mlx5_ib_read_user_wqe_sq()
203 if (bytes_copied < sizeof(*ctrl)) in mlx5_ib_read_user_wqe_sq()
211 if (bytes_copied >= wqe_length) { in mlx5_ib_read_user_wqe_sq()
212 *bc = bytes_copied; in mlx5_ib_read_user_wqe_sq()
220 ret = mlx5_ib_read_user_wqe_common(umem, buffer + bytes_copied, in mlx5_ib_read_user_wqe_sq()
221 buflen - bytes_copied, 0, wq->offset, in mlx5_ib_read_user_wqe_sq()
223 wqe_length - bytes_copied, in mlx5_ib_read_user_wqe_sq()
228 *bc = bytes_copied + bytes_copied2; in mlx5_ib_read_user_wqe_sq()
254 size_t bytes_copied; in mlx5_ib_read_user_wqe_rq() local
260 &bytes_copied); in mlx5_ib_read_user_wqe_rq()
264 *bc = bytes_copied; in mlx5_ib_read_user_wqe_rq()
289 size_t bytes_copied; in mlx5_ib_read_user_wqe_srq() local
294 buflen, &bytes_copied); in mlx5_ib_read_user_wqe_srq()
298 *bc = bytes_copied; in mlx5_ib_read_user_wqe_srq()