Searched refs:grh (Results 1 - 25 of 35) sorted by relevance

12

/drivers/infiniband/hw/ehca/
H A Dehca_av.c118 av->av.grh.word_0 = EHCA_BMASK_SET(GRH_IPVERSION_MASK, 6);
119 av->av.grh.word_0 |= EHCA_BMASK_SET(GRH_TCLASS_MASK,
120 ah_attr->grh.traffic_class);
121 av->av.grh.word_0 |= EHCA_BMASK_SET(GRH_FLOWLABEL_MASK,
122 ah_attr->grh.flow_label);
123 av->av.grh.word_0 |= EHCA_BMASK_SET(GRH_HOPLIMIT_MASK,
124 ah_attr->grh.hop_limit);
125 av->av.grh.word_0 |= EHCA_BMASK_SET(GRH_NEXTHEADER_MASK, 0x1B);
126 /* set sgid in grh.word_1 */
144 ah_attr->grh
[all...]
H A Dehca_qp.c1519 mqpcb->source_gid_idx = attr->ah_attr.grh.sgid_index;
1525 attr->ah_attr.grh.dgid.raw[cnt];
1528 mqpcb->flow_label = attr->ah_attr.grh.flow_label;
1530 mqpcb->hop_limit = attr->ah_attr.grh.hop_limit;
1532 mqpcb->traffic_class = attr->ah_attr.grh.traffic_class;
1635 attr->alt_ah_attr.grh.dgid.raw[cnt];
1637 attr->alt_ah_attr.grh.sgid_index;
1638 mqpcb->flow_label_al = attr->alt_ah_attr.grh.flow_label;
1639 mqpcb->hop_limit_al = attr->alt_ah_attr.grh.hop_limit;
1641 attr->alt_ah_attr.grh
[all...]
H A Dehca_qes.h90 } grh; member in union:ehca_ud_av::__anon947
/drivers/infiniband/core/
H A Dagent.h47 extern void agent_send_response(struct ib_mad *mad, struct ib_grh *grh,
H A Dud_header.c120 { STRUCT_FIELD(grh, ip_version),
124 { STRUCT_FIELD(grh, traffic_class),
128 { STRUCT_FIELD(grh, flow_label),
132 { STRUCT_FIELD(grh, payload_length),
136 { STRUCT_FIELD(grh, next_header),
140 { STRUCT_FIELD(grh, hop_limit),
144 { STRUCT_FIELD(grh, source_gid),
148 { STRUCT_FIELD(grh, destination_gid),
256 header->grh.ip_version = 6;
257 header->grh
[all...]
H A Duverbs_marshall.c39 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
40 dst->grh.flow_label = src->grh.flow_label;
41 dst->grh.sgid_index = src->grh.sgid_index;
42 dst->grh.hop_limit = src->grh.hop_limit;
43 dst->grh
[all...]
H A Dagent.c81 void agent_send_response(struct ib_mad *mad, struct ib_grh *grh, argument
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
H A Dverbs.c187 struct ib_grh *grh, struct ib_ah_attr *ah_attr)
201 ah_attr->grh.dgid = grh->sgid;
203 ret = ib_find_cached_gid(device, &grh->dgid, &port_num,
208 ah_attr->grh.sgid_index = (u8) gid_index;
209 flow_class = be32_to_cpu(grh->version_tclass_flow);
210 ah_attr->grh.flow_label = flow_class & 0xFFFFF;
211 ah_attr->grh.hop_limit = 0xFF;
212 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF;
219 struct ib_grh *grh, u
186 ib_init_ah_from_wc(struct ib_device *device, u8 port_num, struct ib_wc *wc, struct ib_grh *grh, struct ib_ah_attr *ah_attr) argument
218 ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, struct ib_grh *grh, u8 port_num) argument
[all...]
H A Duser_mad.c235 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh,
238 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index;
239 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit;
240 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class;
241 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16);
242 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label);
488 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16);
489 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index;
490 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label);
491 ah_attr.grh
[all...]
H A Duverbs_cmd.c1711 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16);
1712 resp.dest.flow_label = attr->ah_attr.grh.flow_label;
1713 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index;
1714 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit;
1715 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class;
1723 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16);
1724 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label;
1725 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index;
1726 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit;
1727 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh
[all...]
H A Dmad_priv.h81 struct ib_grh grh; member in struct:ib_mad_private
H A Dmulticast.c738 ah_attr->grh.dgid = rec->mgid;
740 ah_attr->grh.sgid_index = (u8) gid_index;
741 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
742 ah_attr->grh.hop_limit = rec->hop_limit;
743 ah_attr->grh.traffic_class = rec->traffic_class;
H A Dsa_query.c513 ah_attr->grh.dgid = rec->dgid;
520 ah_attr->grh.sgid_index = gid_index;
521 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label);
522 ah_attr->grh.hop_limit = rec->hop_limit;
523 ah_attr->grh.traffic_class = rec->traffic_class;
H A Dmad.c1728 attr.grh.sgid_index, &sgid))
1730 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw,
1738 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw,
1853 response->header.recv_wc.recv_buf.grh = &response->grh;
1894 recv->header.recv_wc.recv_buf.grh = &recv->grh;
1943 response->header.recv_wc.recv_buf.grh = &response->grh;
[all...]
H A Dmad_rmpp.c161 recv_wc->recv_buf.grh, agent->port_num);
292 mad_recv_wc->recv_buf.grh,
/drivers/infiniband/hw/mlx4/
H A Dah.c49 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6);
70 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
71 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
73 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
74 ah_attr->grh.flow_label);
75 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
106 err = ib_get_cached_gid(pd->device, ah_attr->port_num, ah_attr->grh.sgid_index, &sgid);
113 ah->av.eth.gid_index = ah_attr->grh.sgid_index;
128 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16);
183 ah_attr->grh
[all...]
H A Dqp.c948 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) {
950 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1);
955 path->mgid_index = ah->grh.sgid_index;
956 path->hop_limit = ah->grh.hop_limit;
958 cpu_to_be32((ah->grh.traffic_class << 20) |
959 (ah->grh.flow_label));
960 memcpy(path->rgid, ah->grh.dgid.raw, 16);
979 vlan_tag = rdma_get_vlan_id(&dev->iboe.gid_table[port - 1][ah->grh.sgid_index]);
1390 sqp->ud_header.grh.traffic_class =
1392 sqp->ud_header.grh
[all...]
H A Dmad.c89 u8 grh[40]; member in struct:__anon970
103 memcpy(ext_info->grh, in_grh, 40);
/drivers/infiniband/hw/mthca/
H A Dmthca_av.c210 ah_attr->grh.sgid_index;
211 av->hop_limit = ah_attr->grh.hop_limit;
213 cpu_to_be32((ah_attr->grh.traffic_class << 20) |
214 ah_attr->grh.flow_label);
215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16);
276 header->grh.traffic_class =
278 header->grh.flow_label =
280 header->grh.hop_limit = ah->av->hop_limit;
284 &header->grh.source_gid);
285 memcpy(header->grh
[all...]
H A Dmthca_qp.c412 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1);
413 ib_ah_attr->grh.hop_limit = path->hop_limit;
414 ib_ah_attr->grh.traffic_class =
416 ib_ah_attr->grh.flow_label =
418 memcpy(ib_ah_attr->grh.dgid.raw,
419 path->rgid, sizeof ib_ah_attr->grh.dgid.raw);
521 if (ah->grh.sgid_index >= dev->limits.gid_table_len) {
523 ah->grh.sgid_index, dev->limits.gid_table_len-1);
528 path->mgid_index = ah->grh.sgid_index;
529 path->hop_limit = ah->grh
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_ruc.c280 guid = get_sguid(ibp, qp->alt_ah_attr.grh.sgid_index);
281 if (!gid_ok(&hdr->u.l.grh.dgid, ibp->gid_prefix, guid))
283 if (!gid_ok(&hdr->u.l.grh.sgid,
284 qp->alt_ah_attr.grh.dgid.global.subnet_prefix,
285 qp->alt_ah_attr.grh.dgid.global.interface_id))
312 qp->remote_ah_attr.grh.sgid_index);
313 if (!gid_ok(&hdr->u.l.grh.dgid, ibp->gid_prefix, guid))
315 if (!gid_ok(&hdr->u.l.grh.sgid,
316 qp->remote_ah_attr.grh.dgid.global.subnet_prefix,
317 qp->remote_ah_attr.grh
657 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, struct ib_global_route *grh, u32 hwords, u32 nwords) argument
[all...]
H A Dqib_ud.c160 qib_copy_sge(&qp->r_sge, &ah_attr->grh,
324 qp->s_hdrwords += qib_make_grh(ibp, &qp->s_hdr.u.l.grh,
325 &ah_attr->grh,
553 qib_copy_sge(&qp->r_sge, &hdr->u.l.grh,
H A Dqib_driver.c332 if (hdr->u.l.grh.next_hdr != IB_GRH_NEXT_HDR)
334 vtf = be32_to_cpu(hdr->u.l.grh.version_tclass_flow);
/drivers/infiniband/hw/ipath/
H A Dipath_ruc.c574 * @grh: the global route address to send to
581 struct ib_global_route *grh, u32 hwords, u32 nwords)
585 (grh->traffic_class << 20) |
586 grh->flow_label);
590 hdr->hop_limit = grh->hop_limit;
594 hdr->dgid = grh->dgid;
613 qp->s_hdrwords += ipath_make_grh(dev, &qp->s_hdr.u.l.grh,
614 &qp->remote_ah_attr.grh,
580 ipath_make_grh(struct ipath_ibdev *dev, struct ib_grh *hdr, struct ib_global_route *grh, u32 hwords, u32 nwords) argument
H A Dipath_ud.c180 ipath_copy_sge(&rsge, &ah_attr->grh, sizeof(struct ib_grh));
329 qp->s_hdrwords += ipath_make_grh(dev, &qp->s_hdr.u.l.grh,
330 &ah_attr->grh,
548 ipath_copy_sge(&qp->r_sge, &hdr->u.l.grh,

Completed in 1210 milliseconds

12