Lines Matching defs:grh
82 if (!packet->grh) {
88 const struct ib_global_route *grh;
93 grh = rdma_ah_read_grh(&qp->alt_ah_attr);
94 guid = get_sguid(ibp, grh->sgid_index);
95 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
99 &packet->grh->sgid,
100 grh->dgid.global.subnet_prefix,
101 grh->dgid.global.interface_id))
119 if (!packet->grh) {
125 const struct ib_global_route *grh;
130 grh = rdma_ah_read_grh(&qp->remote_ah_attr);
131 guid = get_sguid(ibp, grh->sgid_index);
132 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix,
136 &packet->grh->sgid,
137 grh->dgid.global.subnet_prefix,
138 grh->dgid.global.interface_id))
162 * @grh: the global route address to send to
163 * @hwords: size of header after grh being sent in dwords
169 const struct ib_global_route *grh, u32 hwords, u32 nwords)
173 (grh->traffic_class << IB_GRH_TCLASS_SHIFT) |
174 (grh->flow_label << IB_GRH_FLOW_SHIFT));
178 hdr->hop_limit = grh->hop_limit;
182 grh->sgid_index < HFI1_GUIDS_PER_PORT ?
183 get_sguid(ibp, grh->sgid_index) :
185 hdr->dgid = grh->dgid;
293 struct ib_grh *grh;
302 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh;
305 hfi1_make_grh(ibp, grh, grd,
375 struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh;
379 hfi1_make_grh(ibp, grh,