Lines Matching refs:grh
79 struct ocrdma_grh grh; in set_av_attr() local
91 memset(&grh, 0, sizeof(grh)); in set_av_attr()
141 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
142 grh.tclass_flow = cpu_to_be32((6 << 28) | in set_av_attr()
145 memcpy(&grh.dgid[0], ib_grh->dgid.raw, in set_av_attr()
147 grh.pdid_hoplimit = cpu_to_be32((pdid << 16) | in set_av_attr()
150 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
178 sgid_attr = attr->grh.sgid_attr; in ocrdma_create_ah()
231 struct ocrdma_grh *grh; in ocrdma_query_ah() local
235 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
239 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
244 be32_to_cpu(grh->tclass_flow) & 0xffffffff, in ocrdma_query_ah()
246 be32_to_cpu(grh->pdid_hoplimit) & 0xff, in ocrdma_query_ah()
247 be32_to_cpu(grh->tclass_flow) >> 24); in ocrdma_query_ah()
248 rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); in ocrdma_query_ah()