Lines Matching refs:grh
64 struct ocrdma_grh grh; in set_av_attr() local
68 memset(&grh, 0, sizeof(grh)); in set_av_attr()
95 ah->sgid_index = attr->grh.sgid_index; in set_av_attr()
96 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
97 memcpy(&grh.dgid[0], attr->grh.dgid.raw, sizeof(attr->grh.dgid.raw)); in set_av_attr()
99 grh.tclass_flow = cpu_to_be32((6 << 28) | in set_av_attr()
100 (attr->grh.traffic_class << 24) | in set_av_attr()
101 attr->grh.flow_label); in set_av_attr()
103 grh.pdid_hoplimit = cpu_to_be32((pdid << 16) | in set_av_attr()
104 (0x1b << 8) | attr->grh.hop_limit); in set_av_attr()
107 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
139 status = ib_get_cached_gid(&dev->ibdev, 1, attr->grh.sgid_index, &sgid, in ocrdma_create_ah()
153 (!rdma_is_multicast_addr((struct in6_addr *)attr->grh.dgid.raw)) && in ocrdma_create_ah()
154 (!rdma_link_local_addr((struct in6_addr *)attr->grh.dgid.raw))) { in ocrdma_create_ah()
155 status = rdma_addr_find_dmac_by_grh(&sgid, &attr->grh.dgid, in ocrdma_create_ah()
202 struct ocrdma_grh *grh; in ocrdma_query_ah() local
205 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
209 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
213 memcpy(&attr->grh.dgid.raw[0], &grh->dgid[0], sizeof(grh->dgid)); in ocrdma_query_ah()
214 attr->grh.sgid_index = ah->sgid_index; in ocrdma_query_ah()
215 attr->grh.hop_limit = be32_to_cpu(grh->pdid_hoplimit) & 0xff; in ocrdma_query_ah()
216 attr->grh.traffic_class = be32_to_cpu(grh->tclass_flow) >> 24; in ocrdma_query_ah()
217 attr->grh.flow_label = be32_to_cpu(grh->tclass_flow) & 0x00ffffffff; in ocrdma_query_ah()