Lines Matching refs:ah_attr
79 struct rdma_ah_attr *ah_attr; in ud_loopback() local
108 ah_attr = rvt_get_swqe_ah_attr(swqe); in ud_loopback()
114 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in ud_loopback()
117 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
123 rdma_ah_get_sl(ah_attr), in ud_loopback()
125 slid, rdma_ah_get_dlid(ah_attr)); in ud_loopback()
185 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in ud_loopback()
187 struct ib_global_route grd = *(rdma_ah_read_grh(ah_attr)); in ud_loopback()
249 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
254 wc.sl = rdma_ah_get_sl(ah_attr); in ud_loopback()
255 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in ud_loopback()
312 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_9B() local
319 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_9B()
328 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in hfi1_make_ud_req_9B()
331 hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), in hfi1_make_ud_req_9B()
341 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_9B()
342 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_make_ud_req_9B()
351 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_make_ud_req_9B()
358 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_9B()
379 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_16B() local
391 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_16B()
413 if ((rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) && in hfi1_make_ud_req_16B()
414 hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) { in hfi1_make_ud_req_16B()
416 struct ib_global_route *grd = rdma_ah_retrieve_grh(ah_attr); in hfi1_make_ud_req_16B()
438 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_16B()
444 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); in hfi1_make_ud_req_16B()
448 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_16B()
479 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req() local
518 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req()
519 priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); in hfi1_make_ud_req()
520 if ((!hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) || in hfi1_make_ud_req()
521 (rdma_ah_get_dlid(ah_attr) == be32_to_cpu(OPA_LID_PERMISSIVE))) { in hfi1_make_ud_req()
522 lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); in hfi1_make_ud_req()
552 qp->s_srate = rdma_ah_get_static_rate(ah_attr); in hfi1_make_ud_req()