Lines Matching refs:ah_attr

78 	struct rdma_ah_attr *ah_attr;  in ud_loopback()  local
107 ah_attr = &ibah_to_rvtah(swqe->ud_wr.ah)->attr; in ud_loopback()
113 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in ud_loopback()
116 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
122 rdma_ah_get_sl(ah_attr), in ud_loopback()
124 slid, rdma_ah_get_dlid(ah_attr)); in ud_loopback()
184 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in ud_loopback()
186 struct ib_global_route grd = *(rdma_ah_read_grh(ah_attr)); in ud_loopback()
268 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
273 wc.sl = rdma_ah_get_sl(ah_attr); in ud_loopback()
274 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in ud_loopback()
331 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_9B() local
338 ah_attr = &ibah_to_rvtah(wqe->ud_wr.ah)->attr; in hfi1_make_ud_req_9B()
347 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in hfi1_make_ud_req_9B()
350 hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), in hfi1_make_ud_req_9B()
360 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_9B()
361 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_make_ud_req_9B()
370 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_make_ud_req_9B()
377 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_9B()
398 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_16B() local
410 ah_attr = &ibah_to_rvtah(wqe->ud_wr.ah)->attr; in hfi1_make_ud_req_16B()
432 if ((rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) && in hfi1_make_ud_req_16B()
433 hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) { in hfi1_make_ud_req_16B()
435 struct ib_global_route *grd = rdma_ah_retrieve_grh(ah_attr); in hfi1_make_ud_req_16B()
457 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in hfi1_make_ud_req_16B()
463 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); in hfi1_make_ud_req_16B()
467 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in hfi1_make_ud_req_16B()
498 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req() local
537 ah_attr = &ibah_to_rvtah(wqe->ud_wr.ah)->attr; in hfi1_make_ud_req()
538 priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); in hfi1_make_ud_req()
539 if ((!hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) || in hfi1_make_ud_req()
540 (rdma_ah_get_dlid(ah_attr) == be32_to_cpu(OPA_LID_PERMISSIVE))) { in hfi1_make_ud_req()
541 lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); in hfi1_make_ud_req()
571 qp->s_srate = rdma_ah_get_static_rate(ah_attr); in hfi1_make_ud_req()