Lines Matching refs:grh
49 struct ocrdma_grh grh; in set_av_attr() local
53 memset(&grh, 0, sizeof(grh)); in set_av_attr()
81 ah->sgid_index = attr->grh.sgid_index; in set_av_attr()
82 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
83 memcpy(&grh.dgid[0], attr->grh.dgid.raw, sizeof(attr->grh.dgid.raw)); in set_av_attr()
85 grh.tclass_flow = cpu_to_be32((6 << 28) | in set_av_attr()
86 (attr->grh.traffic_class << 24) | in set_av_attr()
87 attr->grh.flow_label); in set_av_attr()
89 grh.pdid_hoplimit = cpu_to_be32((pdid << 16) | in set_av_attr()
90 (0x1b << 8) | attr->grh.hop_limit); in set_av_attr()
93 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
123 status = ocrdma_query_gid(&dev->ibdev, 1, attr->grh.sgid_index, &sgid); in ocrdma_create_ah()
131 (!rdma_is_multicast_addr((struct in6_addr *)attr->grh.dgid.raw)) && in ocrdma_create_ah()
132 (!rdma_link_local_addr((struct in6_addr *)attr->grh.dgid.raw))) { in ocrdma_create_ah()
133 status = rdma_addr_find_dmac_by_grh(&sgid, &attr->grh.dgid, in ocrdma_create_ah()
179 struct ocrdma_grh *grh; in ocrdma_query_ah() local
182 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
186 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
190 memcpy(&attr->grh.dgid.raw[0], &grh->dgid[0], sizeof(grh->dgid)); in ocrdma_query_ah()
191 attr->grh.sgid_index = ah->sgid_index; in ocrdma_query_ah()
192 attr->grh.hop_limit = be32_to_cpu(grh->pdid_hoplimit) & 0xff; in ocrdma_query_ah()
193 attr->grh.traffic_class = be32_to_cpu(grh->tclass_flow) >> 24; in ocrdma_query_ah()
194 attr->grh.flow_label = be32_to_cpu(grh->tclass_flow) & 0x00ffffffff; in ocrdma_query_ah()