ud_wr
if (is_ud && ud_wr(wr)->ah)
uobj_put_obj_read(ud_wr(wr)->ah);
struct bnxt_re_ah *ah = container_of(ud_wr(wr)->ah, struct bnxt_re_ah,
ah = container_of(ud_wr(wr)->ah, struct bnxt_re_ah, ib_ah);
wqe->send.q_key = ud_wr(wr)->remote_qkey;
wqe->send.dst_qp = ud_wr(wr)->remote_qpn;
const struct ib_ud_wr *uwr = ud_wr(wr);
struct hns_roce_ah *ah = to_hr_ah(ud_wr(wr)->ah);
ud_sq_wqe->qkey = cpu_to_le32(ud_wr(wr)->remote_qkey & 0x80000000 ?
qp->qkey : ud_wr(wr)->remote_qkey);
hr_reg_write(ud_sq_wqe, UD_SEND_WQE_DQPN, ud_wr(wr)->remote_qpn);
qp->sl = to_hr_ah(ud_wr(wr)->ah)->av.sl;
rc = ionic_prep_send_ud(qp, ud_wr(wr));
ah = to_iwah(ud_wr(ib_wr)->ah);
info.op.send.qkey = ud_wr(ib_wr)->remote_qkey;
info.op.send.dest_qp = ud_wr(ib_wr)->remote_qpn;
err = mana_ib_post_send_ud(qp, ud_wr(wr));
struct mlx4_ib_ah *ah = to_mah(ud_wr(wr)->ah);
err = build_sriov_qp0_header(qp, ud_wr(wr), ctrl,
set_datagram_seg(wqe, ud_wr(wr));
set_datagram_seg(wqe, ud_wr(wr));
err = build_lso_seg(wqe, ud_wr(wr), qp, &seglen,
err = build_sriov_qp0_header(qp, ud_wr(wr), ctrl,
build_tunnel_header(ud_wr(wr), wqe, &seglen);
ud_wr(wr),
build_tunnel_header(ud_wr(wr), wqe, &seglen);
err = build_mlx_header(qp, ud_wr(wr), ctrl, &seglen);
struct ib_ud_wr cur_wr = *ud_wr(wr);
memcpy(&dseg->av, &to_mah(ud_wr(wr)->ah)->av, sizeof(struct mlx5_av));
cpu_to_be32(ud_wr(wr)->remote_qpn | MLX5_EXTENDED_UD_AV);
dseg->av.key.qkey.qkey = cpu_to_be32(ud_wr(wr)->remote_qkey);
struct ib_ud_wr *ud_wr = container_of(wr, struct ib_ud_wr, wr);
void *pdata = ud_wr->header;
left = ud_wr->hlen;
eseg->mss = cpu_to_be16(ud_wr->mss);
set_tavor_ud_seg(wqe, ud_wr(wr));
dev, qp, ind, ud_wr(wr),
set_arbel_ud_seg(wqe, ud_wr(wr));
dev, qp, ind, ud_wr(wr),
struct ocrdma_ah *ah = get_ocrdma_ah(ud_wr(wr)->ah);
ud_hdr->rsvd_dest_qpn = ud_wr(wr)->remote_qpn;
ud_hdr->qkey = ud_wr(wr)->remote_qkey;
struct rdma_ah_attr *ah_attr = &get_qedr_ah(ud_wr(swr)->ah)->attr;
udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn);
if (unlikely(!ud_wr(wr)->ah)) {
wqe_hdr->wr.ud.remote_qpn = ud_wr(wr)->remote_qpn;
ud_wr(wr)->remote_qkey & 0x80000000 ?
qp->qkey : ud_wr(wr)->remote_qkey;
wqe_hdr->wr.ud.av = to_vah(ud_wr(wr)->ah)->av;
wqe->ud_wr.attr = kzalloc_node(sizeof(*wqe->ud_wr.attr),
if (!wqe->ud_wr.attr) {
if (qp->ibqp.pd != ud_wr(wr)->ah->pd)
memcpy(&wqe->ud_wr, wr, cplen);
rdma_copy_ah_attr(wqe->ud_wr.attr, &ah->attr);
rdma_destroy_ah_attr(wqe->ud_wr.attr);
kfree(wqe->ud_wr.attr);
wqe->ud_wr.attr = NULL;
struct ib_ah *ibah = ud_wr(ibwr)->ah;
wr->wr.ud.remote_qpn = ud_wr(ibwr)->remote_qpn;
wr->wr.ud.remote_qkey = ud_wr(ibwr)->remote_qkey;
wr->wr.ud.pkey_index = ud_wr(ibwr)->pkey_index;
struct rvt_ud_wr ud_wr;
return ibah_to_rvtah(swqe->ud_wr.wr.ah);
return swqe->ud_wr.attr;
return swqe->ud_wr.wr.remote_qpn;
return swqe->ud_wr.wr.remote_qkey;
return swqe->ud_wr.wr.pkey_index;
rdma_destroy_ah_attr(wqe->ud_wr.attr);