Lines Matching refs:ah_attr
37 struct rdma_ah_attr *ah_attr; in ud_loopback() local
66 ah_attr = rvt_get_swqe_ah_attr(swqe); in ud_loopback()
72 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in ud_loopback()
75 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
81 rdma_ah_get_sl(ah_attr), in ud_loopback()
83 slid, rdma_ah_get_dlid(ah_attr)); in ud_loopback()
143 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in ud_loopback()
145 struct ib_global_route grd = *(rdma_ah_read_grh(ah_attr)); in ud_loopback()
207 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
212 wc.sl = rdma_ah_get_sl(ah_attr); in ud_loopback()
213 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in ud_loopback()
270 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_9B() local
277 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_9B()
286 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in hfi1_make_ud_req_9B()
289 hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), in hfi1_make_ud_req_9B()
299 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_9B()
300 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_make_ud_req_9B()
309 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_make_ud_req_9B()
316 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_9B()
337 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_16B() local
349 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_16B()
371 if ((rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) && in hfi1_make_ud_req_16B()
372 hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) { in hfi1_make_ud_req_16B()
374 struct ib_global_route *grd = rdma_ah_retrieve_grh(ah_attr); in hfi1_make_ud_req_16B()
396 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_16B()
402 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); in hfi1_make_ud_req_16B()
406 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_16B()
438 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req() local
477 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req()
478 priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); in hfi1_make_ud_req()
479 if ((!hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) || in hfi1_make_ud_req()
480 (rdma_ah_get_dlid(ah_attr) == be32_to_cpu(OPA_LID_PERMISSIVE))) { in hfi1_make_ud_req()
481 lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); in hfi1_make_ud_req()
511 qp->s_srate = rdma_ah_get_static_rate(ah_attr); in hfi1_make_ud_req()