Lines Matching refs:dseg
175 static void set_datagram_seg(struct mlx4_wqe_datagram_seg *dseg,
178 memcpy(dseg->av, &to_mah(wr->wr.ud.ah)->av, sizeof (struct mlx4_av));
179 dseg->dqpn = htobe32(wr->wr.ud.remote_qpn);
180 dseg->qkey = htobe32(wr->wr.ud.remote_qkey);
181 dseg->vlan = htobe16(to_mah(wr->wr.ud.ah)->vlan);
182 memcpy(dseg->mac, to_mah(wr->wr.ud.ah)->mac, 6);
185 static void __set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ibv_sge *sg)
187 dseg->byte_count = htobe32(sg->length);
188 dseg->lkey = htobe32(sg->lkey);
189 dseg->addr = htobe64(sg->addr);
192 static void set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ibv_sge *sg)
194 dseg->lkey = htobe32(sg->lkey);
195 dseg->addr = htobe64(sg->addr);
208 dseg->byte_count = htobe32(sg->length);
210 dseg->byte_count = htobe32(0x80000000);