Lines Matching refs:scat

71 static int copy_to_scat(struct mlx5_wqe_data_seg *scat, void *buf, int *size,  in copy_to_scat()  argument
81 copy = min_t(long, *size, be32toh(scat->byte_count)); in copy_to_scat()
82 memcpy((void *)(unsigned long)be64toh(scat->addr), buf, copy); in copy_to_scat()
88 ++scat; in copy_to_scat()
95 struct mlx5_wqe_data_seg *scat; in mlx5_copy_to_recv_wqe() local
98 scat = get_recv_wqe(qp, idx); in mlx5_copy_to_recv_wqe()
100 ++scat; in mlx5_copy_to_recv_wqe()
102 return copy_to_scat(scat, buf, &size, max); in mlx5_copy_to_recv_wqe()
108 struct mlx5_wqe_data_seg *scat; in mlx5_copy_to_send_wqe() local
137 scat = p; in mlx5_copy_to_send_wqe()
138 max = (be32toh(ctrl->qpn_ds) & 0x3F) - (((void *)scat - (void *)ctrl) >> 4); in mlx5_copy_to_send_wqe()
139 if (unlikely((void *)(scat + max) > qp->sq.qend)) { in mlx5_copy_to_send_wqe()
140 int tmp = ((void *)qp->sq.qend - (void *)scat) >> 4; in mlx5_copy_to_send_wqe()
143 if (copy_to_scat(scat, buf, &size, tmp) == IBV_WC_SUCCESS) in mlx5_copy_to_send_wqe()
147 scat = mlx5_get_send_wqe(qp, 0); in mlx5_copy_to_send_wqe()
150 return copy_to_scat(scat, buf, &size, max); in mlx5_copy_to_send_wqe()
1065 struct mlx5_wqe_data_seg *scat; in mlx5_post_wq_recv() local
1090 scat = get_wq_recv_wqe(rwq, ind); in mlx5_post_wq_recv()
1091 sig = (struct mlx5_rwqe_sig *)scat; in mlx5_post_wq_recv()
1094 ++scat; in mlx5_post_wq_recv()
1100 set_data_ptr_seg(scat + j++, wr->sg_list + i, 0); in mlx5_post_wq_recv()
1104 scat[j].byte_count = 0; in mlx5_post_wq_recv()
1105 scat[j].lkey = htobe32(MLX5_INVALID_LKEY); in mlx5_post_wq_recv()
1106 scat[j].addr = 0; in mlx5_post_wq_recv()
1138 struct mlx5_wqe_data_seg *scat; in mlx5_post_recv() local
1163 scat = get_recv_wqe(qp, ind); in mlx5_post_recv()
1164 sig = (struct mlx5_rwqe_sig *)scat; in mlx5_post_recv()
1167 ++scat; in mlx5_post_recv()
1173 set_data_ptr_seg(scat + j++, wr->sg_list + i, 0); in mlx5_post_recv()
1177 scat[j].byte_count = 0; in mlx5_post_recv()
1178 scat[j].lkey = htobe32(MLX5_INVALID_LKEY); in mlx5_post_recv()
1179 scat[j].addr = 0; in mlx5_post_recv()