Lines Matching defs:grh
40 if (!packet->grh) {
46 const struct ib_global_route *grh;
51 grh = rdma_ah_read_grh(&qp->alt_ah_attr);
52 guid = get_sguid(ibp, grh->sgid_index);
53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
57 &packet->grh->sgid,
58 grh->dgid.global.subnet_prefix,
59 grh->dgid.global.interface_id))
77 if (!packet->grh) {
83 const struct ib_global_route *grh;
88 grh = rdma_ah_read_grh(&qp->remote_ah_attr);
89 guid = get_sguid(ibp, grh->sgid_index);
90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
94 &packet->grh->sgid,
95 grh->dgid.global.subnet_prefix,
96 grh->dgid.global.interface_id))
120 * @grh: the global route address to send to
121 * @hwords: size of header after grh being sent in dwords
127 const struct ib_global_route *grh, u32 hwords, u32 nwords)
131 (grh->traffic_class << IB_GRH_TCLASS_SHIFT) |
132 (grh->flow_label << IB_GRH_FLOW_SHIFT));
136 hdr->hop_limit = grh->hop_limit;
140 grh->sgid_index < HFI1_GUIDS_PER_PORT ?
141 get_sguid(ibp, grh->sgid_index) :
143 hdr->dgid = grh->dgid;
252 struct ib_grh *grh;
261 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh;
264 hfi1_make_grh(ibp, grh, grd,
335 struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh;
339 hfi1_make_grh(ibp, grh,