Lines Matching refs:ah_attr
54 struct ib_ah_attr *ah_attr; in qib_ud_loopback() local
79 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in qib_ud_loopback()
90 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
93 ah_attr->sl, in qib_ud_loopback()
96 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
114 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
117 ah_attr->sl, in qib_ud_loopback()
120 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
166 if (ah_attr->ah_flags & IB_AH_GRH) { in qib_ud_loopback()
167 qib_copy_sge(&qp->r_sge, &ah_attr->grh, in qib_ud_loopback()
214 wc.slid = ppd->lid | (ah_attr->src_path_bits & ((1 << ppd->lmc) - 1)); in qib_ud_loopback()
215 wc.sl = ah_attr->sl; in qib_ud_loopback()
216 wc.dlid_path_bits = ah_attr->dlid & ((1 << ppd->lmc) - 1); in qib_ud_loopback()
238 struct ib_ah_attr *ah_attr; in qib_make_ud_req() local
280 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in qib_make_ud_req()
281 if (ah_attr->dlid >= QIB_MULTICAST_LID_BASE) { in qib_make_ud_req()
282 if (ah_attr->dlid != QIB_PERMISSIVE_LID) in qib_make_ud_req()
288 lid = ah_attr->dlid & ~((1 << ppd->lmc) - 1); in qib_make_ud_req()
318 qp->s_srate = ah_attr->static_rate; in qib_make_ud_req()
325 if (ah_attr->ah_flags & IB_AH_GRH) { in qib_make_ud_req()
328 &ah_attr->grh, in qib_make_ud_req()
347 lrh0 |= ah_attr->sl << 4; in qib_make_ud_req()
351 lrh0 |= ibp->sl_to_vl[ah_attr->sl] << 12; in qib_make_ud_req()
353 qp->s_hdr->lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in qib_make_ud_req()
357 lid |= ah_attr->src_path_bits & ((1 << ppd->lmc) - 1); in qib_make_ud_req()
371 ohdr->bth[1] = ah_attr->dlid >= QIB_MULTICAST_LID_BASE && in qib_make_ud_req()
372 ah_attr->dlid != QIB_PERMISSIVE_LID ? in qib_make_ud_req()