Lines Matching refs:dseg
3329 static void set_datagram_seg(struct mlx4_wqe_datagram_seg *dseg,
3332 memcpy(dseg->av, &to_mah(wr->ah)->av, sizeof (struct mlx4_av));
3333 dseg->dqpn = cpu_to_be32(wr->remote_qpn);
3334 dseg->qkey = cpu_to_be32(wr->remote_qkey);
3335 dseg->vlan = to_mah(wr->ah)->av.eth.vlan;
3336 memcpy(dseg->mac, to_mah(wr->ah)->av.eth.mac, 6);
3340 struct mlx4_wqe_datagram_seg *dseg,
3354 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av));
3356 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp1_tunnel);
3358 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp0_tunnel);
3360 dseg->qkey = cpu_to_be32(IB_QP_SET_QKEY);
3402 static void set_mlx_icrc_seg(void *dseg)
3404 u32 *t = dseg;
3405 struct mlx4_wqe_inline_seg *iseg = dseg;
3422 static void set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg)
3424 dseg->lkey = cpu_to_be32(sg->lkey);
3425 dseg->addr = cpu_to_be64(sg->addr);
3437 dseg->byte_count = cpu_to_be32(sg->length);
3440 static void __set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg)
3442 dseg->byte_count = cpu_to_be32(sg->length);
3443 dseg->lkey = cpu_to_be32(sg->lkey);
3444 dseg->addr = cpu_to_be64(sg->addr);
3495 struct mlx4_wqe_data_seg *dseg;
3728 dseg = wqe;
3729 dseg += wr->num_sge - 1;
3737 set_mlx_icrc_seg(dseg + 1);
3741 for (i = wr->num_sge - 1; i >= 0; --i, --dseg)
3742 set_data_seg(dseg, wr->sg_list + i);