Lines Matching refs:dseg
3362 static void set_datagram_seg(struct mlx4_wqe_datagram_seg *dseg,
3365 memcpy(dseg->av, &to_mah(wr->ah)->av, sizeof (struct mlx4_av));
3366 dseg->dqpn = cpu_to_be32(wr->remote_qpn);
3367 dseg->qkey = cpu_to_be32(wr->remote_qkey);
3368 dseg->vlan = to_mah(wr->ah)->av.eth.vlan;
3369 memcpy(dseg->mac, to_mah(wr->ah)->av.eth.mac, 6);
3373 struct mlx4_wqe_datagram_seg *dseg,
3387 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av));
3389 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp1_tunnel);
3391 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp0_tunnel);
3393 dseg->qkey = cpu_to_be32(IB_QP_SET_QKEY);
3435 static void set_mlx_icrc_seg(void *dseg)
3437 u32 *t = dseg;
3438 struct mlx4_wqe_inline_seg *iseg = dseg;
3455 static void set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg)
3457 dseg->lkey = cpu_to_be32(sg->lkey);
3458 dseg->addr = cpu_to_be64(sg->addr);
3470 dseg->byte_count = cpu_to_be32(sg->length);
3473 static void __set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg)
3475 dseg->byte_count = cpu_to_be32(sg->length);
3476 dseg->lkey = cpu_to_be32(sg->lkey);
3477 dseg->addr = cpu_to_be64(sg->addr);
3528 struct mlx4_wqe_data_seg *dseg;
3761 dseg = wqe;
3762 dseg += wr->num_sge - 1;
3770 set_mlx_icrc_seg(dseg + 1);
3774 for (i = wr->num_sge - 1; i >= 0; --i, --dseg)
3775 set_data_seg(dseg, wr->sg_list + i);