Lines Matching refs:dseg

3323 static void set_datagram_seg(struct mlx4_wqe_datagram_seg *dseg,  in set_datagram_seg()  argument
3326 memcpy(dseg->av, &to_mah(wr->ah)->av, sizeof (struct mlx4_av)); in set_datagram_seg()
3327 dseg->dqpn = cpu_to_be32(wr->remote_qpn); in set_datagram_seg()
3328 dseg->qkey = cpu_to_be32(wr->remote_qkey); in set_datagram_seg()
3329 dseg->vlan = to_mah(wr->ah)->av.eth.vlan; in set_datagram_seg()
3330 memcpy(dseg->mac, to_mah(wr->ah)->av.eth.mac, 6); in set_datagram_seg()
3334 struct mlx4_wqe_datagram_seg *dseg, in set_tunnel_datagram_seg() argument
3348 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av)); in set_tunnel_datagram_seg()
3350 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp1_tunnel); in set_tunnel_datagram_seg()
3352 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp0_tunnel); in set_tunnel_datagram_seg()
3354 dseg->qkey = cpu_to_be32(IB_QP_SET_QKEY); in set_tunnel_datagram_seg()
3396 static void set_mlx_icrc_seg(void *dseg) in set_mlx_icrc_seg() argument
3398 u32 *t = dseg; in set_mlx_icrc_seg()
3399 struct mlx4_wqe_inline_seg *iseg = dseg; in set_mlx_icrc_seg()
3416 static void set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg) in set_data_seg() argument
3418 dseg->lkey = cpu_to_be32(sg->lkey); in set_data_seg()
3419 dseg->addr = cpu_to_be64(sg->addr); in set_data_seg()
3431 dseg->byte_count = cpu_to_be32(sg->length); in set_data_seg()
3434 static void __set_data_seg(struct mlx4_wqe_data_seg *dseg, struct ib_sge *sg) in __set_data_seg() argument
3436 dseg->byte_count = cpu_to_be32(sg->length); in __set_data_seg()
3437 dseg->lkey = cpu_to_be32(sg->lkey); in __set_data_seg()
3438 dseg->addr = cpu_to_be64(sg->addr); in __set_data_seg()
3489 struct mlx4_wqe_data_seg *dseg; in _mlx4_ib_post_send() local
3722 dseg = wqe; in _mlx4_ib_post_send()
3723 dseg += wr->num_sge - 1; in _mlx4_ib_post_send()
3731 set_mlx_icrc_seg(dseg + 1); in _mlx4_ib_post_send()
3735 for (i = wr->num_sge - 1; i >= 0; --i, --dseg) in _mlx4_ib_post_send()
3736 set_data_seg(dseg, wr->sg_list + i); in _mlx4_ib_post_send()