Home
last modified time | relevance | path

Searched refs:ah_attr (Results 1 – 25 of 38) sorted by relevance

12

/linux-3.4.99/drivers/infiniband/hw/mlx4/
Dah.c42 int mlx4_ib_resolve_grh(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr, in mlx4_ib_resolve_grh() argument
49 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6); in mlx4_ib_resolve_grh()
61 static struct ib_ah *create_ib_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, in create_ib_ah() argument
66 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah()
67 ah->av.ib.g_slid = ah_attr->src_path_bits; in create_ib_ah()
68 if (ah_attr->ah_flags & IB_AH_GRH) { in create_ib_ah()
70 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah()
71 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
73 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in create_ib_ah()
74 ah_attr->grh.flow_label); in create_ib_ah()
[all …]
Dmad.c127 struct ib_ah_attr ah_attr; in update_sm_ah() local
132 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
133 ah_attr.dlid = lid; in update_sm_ah()
134 ah_attr.sl = sl; in update_sm_ah()
135 ah_attr.port_num = port_num; in update_sm_ah()
138 &ah_attr); in update_sm_ah()
Dmlx4_ib.h304 struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
305 int mlx4_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr);
348 int mlx4_ib_resolve_grh(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr,
/linux-3.4.99/drivers/infiniband/hw/ehca/
Dehca_av.c88 struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) in ehca_create_ah() argument
98 pd, ah_attr); in ehca_create_ah()
102 av->av.sl = ah_attr->sl; in ehca_create_ah()
103 av->av.dlid = ah_attr->dlid; in ehca_create_ah()
104 av->av.slid_path_bits = ah_attr->src_path_bits; in ehca_create_ah()
108 if (ehca_calc_ipd(shca, ah_attr->port_num, in ehca_create_ah()
109 ah_attr->static_rate, &ipd)) { in ehca_create_ah()
117 av->av.lnh = ah_attr->ah_flags; in ehca_create_ah()
120 ah_attr->grh.traffic_class); in ehca_create_ah()
122 ah_attr->grh.flow_label); in ehca_create_ah()
[all …]
Dehca_iverbs.h69 struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
71 int ehca_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
73 int ehca_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
Dehca_qp.c1491 mqpcb->dlid = attr->ah_attr.dlid; in internal_modify_qp()
1493 mqpcb->source_path_bits = attr->ah_attr.src_path_bits; in internal_modify_qp()
1495 mqpcb->service_level = attr->ah_attr.sl; in internal_modify_qp()
1499 attr->ah_attr.static_rate, in internal_modify_qp()
1516 if (attr->ah_attr.ah_flags == IB_AH_GRH) { in internal_modify_qp()
1519 mqpcb->source_gid_idx = attr->ah_attr.grh.sgid_index; in internal_modify_qp()
1525 attr->ah_attr.grh.dgid.raw[cnt]; in internal_modify_qp()
1528 mqpcb->flow_label = attr->ah_attr.grh.flow_label; in internal_modify_qp()
1530 mqpcb->hop_limit = attr->ah_attr.grh.hop_limit; in internal_modify_qp()
1532 mqpcb->traffic_class = attr->ah_attr.grh.traffic_class; in internal_modify_qp()
[all …]
/linux-3.4.99/drivers/infiniband/hw/qib/
Dqib_ud.c54 struct ib_ah_attr *ah_attr; in qib_ud_loopback() local
79 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in qib_ud_loopback()
90 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
93 ah_attr->sl, in qib_ud_loopback()
96 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
114 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
117 ah_attr->sl, in qib_ud_loopback()
120 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
166 if (ah_attr->ah_flags & IB_AH_GRH) { in qib_ud_loopback()
167 qib_copy_sge(&qp->r_sge, &ah_attr->grh, in qib_ud_loopback()
[all …]
Dqib_verbs.c1776 int qib_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr) in qib_check_ah() argument
1779 if (ah_attr->dlid >= QIB_MULTICAST_LID_BASE && in qib_check_ah()
1780 ah_attr->dlid != QIB_PERMISSIVE_LID && in qib_check_ah()
1781 !(ah_attr->ah_flags & IB_AH_GRH)) in qib_check_ah()
1783 if ((ah_attr->ah_flags & IB_AH_GRH) && in qib_check_ah()
1784 ah_attr->grh.sgid_index >= QIB_GUIDS_PER_PORT) in qib_check_ah()
1786 if (ah_attr->dlid == 0) in qib_check_ah()
1788 if (ah_attr->port_num < 1 || in qib_check_ah()
1789 ah_attr->port_num > ibdev->phys_port_cnt) in qib_check_ah()
1791 if (ah_attr->static_rate != IB_RATE_PORT_CURRENT && in qib_check_ah()
[all …]
Dqib_qp.c588 if (attr->ah_attr.dlid >= QIB_MULTICAST_LID_BASE) in qib_modify_qp()
590 if (qib_check_ah(qp->ibqp.device, &attr->ah_attr)) in qib_modify_qp()
768 qp->remote_ah_attr = attr->ah_attr; in qib_modify_qp()
769 qp->s_srate = attr->ah_attr.static_rate; in qib_modify_qp()
869 attr->ah_attr = qp->remote_ah_attr; in qib_query_qp()
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_av.c155 struct ib_ah_attr *ah_attr, in mthca_create_ah() argument
201 av->port_pd = cpu_to_be32(pd->pd_num | (ah_attr->port_num << 24)); in mthca_create_ah()
202 av->g_slid = ah_attr->src_path_bits; in mthca_create_ah()
203 av->dlid = cpu_to_be16(ah_attr->dlid); in mthca_create_ah()
205 mthca_get_rate(dev, ah_attr->static_rate, ah_attr->port_num); in mthca_create_ah()
206 av->sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28); in mthca_create_ah()
207 if (ah_attr->ah_flags & IB_AH_GRH) { in mthca_create_ah()
209 av->gid_index = (ah_attr->port_num - 1) * dev->limits.gid_table_len + in mthca_create_ah()
210 ah_attr->grh.sgid_index; in mthca_create_ah()
211 av->hop_limit = ah_attr->grh.hop_limit; in mthca_create_ah()
[all …]
Dmthca_mad.c78 struct ib_ah_attr ah_attr; in update_sm_ah() local
84 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
85 ah_attr.dlid = lid; in update_sm_ah()
86 ah_attr.sl = sl; in update_sm_ah()
87 ah_attr.port_num = port_num; in update_sm_ah()
90 &ah_attr); in update_sm_ah()
/linux-3.4.99/drivers/infiniband/hw/ipath/
Dipath_ud.c54 struct ib_ah_attr *ah_attr; in ipath_ud_loopback() local
178 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in ipath_ud_loopback()
179 if (ah_attr->ah_flags & IB_AH_GRH) { in ipath_ud_loopback()
180 ipath_copy_sge(&rsge, &ah_attr->grh, sizeof(struct ib_grh)); in ipath_ud_loopback()
220 (ah_attr->src_path_bits & in ipath_ud_loopback()
222 wc.sl = ah_attr->sl; in ipath_ud_loopback()
224 ah_attr->dlid & ((1 << dev->dd->ipath_lmc) - 1); in ipath_ud_loopback()
245 struct ib_ah_attr *ah_attr; in ipath_make_ud_req() local
283 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in ipath_make_ud_req()
284 if (ah_attr->dlid >= IPATH_MULTICAST_LID_BASE) { in ipath_make_ud_req()
[all …]
Dipath_qp.c470 if (attr->ah_attr.dlid == 0 || in ipath_modify_qp()
471 attr->ah_attr.dlid >= IPATH_MULTICAST_LID_BASE) in ipath_modify_qp()
474 if ((attr->ah_attr.ah_flags & IB_AH_GRH) && in ipath_modify_qp()
475 (attr->ah_attr.grh.sgid_index > 1)) in ipath_modify_qp()
568 qp->remote_ah_attr = attr->ah_attr; in ipath_modify_qp()
569 qp->s_dmult = ipath_ib_rate_to_mult(attr->ah_attr.static_rate); in ipath_modify_qp()
640 attr->ah_attr = qp->remote_ah_attr; in ipath_query_qp()
Dipath_verbs.c1763 struct ib_ah_attr *ah_attr) in ipath_create_ah() argument
1771 if (ah_attr->dlid >= IPATH_MULTICAST_LID_BASE && in ipath_create_ah()
1772 ah_attr->dlid != IPATH_PERMISSIVE_LID && in ipath_create_ah()
1773 !(ah_attr->ah_flags & IB_AH_GRH)) { in ipath_create_ah()
1778 if (ah_attr->dlid == 0) { in ipath_create_ah()
1783 if (ah_attr->port_num < 1 || in ipath_create_ah()
1784 ah_attr->port_num > pd->device->phys_port_cnt) { in ipath_create_ah()
1807 ah->attr = *ah_attr; in ipath_create_ah()
1808 ah->attr.static_rate = ipath_ib_rate_to_mult(ah_attr->static_rate); in ipath_create_ah()
1837 static int ipath_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) in ipath_query_ah() argument
[all …]
/linux-3.4.99/drivers/infiniband/core/
Dsa_query.c364 struct ib_ah_attr ah_attr; in update_sm_ah() local
385 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
386 ah_attr.dlid = port_attr.sm_lid; in update_sm_ah()
387 ah_attr.sl = port_attr.sm_sl; in update_sm_ah()
388 ah_attr.port_num = port->port_num; in update_sm_ah()
390 new_ah->ah = ib_create_ah(port->agent->qp->pd, &ah_attr); in update_sm_ah()
495 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument
501 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_path()
502 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path()
503 ah_attr->sl = rec->sl; in ib_init_ah_from_path()
[all …]
Dverbs.c169 struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) in ib_create_ah() argument
173 ah = pd->device->create_ah(pd, ah_attr); in ib_create_ah()
187 struct ib_grh *grh, struct ib_ah_attr *ah_attr) in ib_init_ah_from_wc() argument
193 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_wc()
194 ah_attr->dlid = wc->slid; in ib_init_ah_from_wc()
195 ah_attr->sl = wc->sl; in ib_init_ah_from_wc()
196 ah_attr->src_path_bits = wc->dlid_path_bits; in ib_init_ah_from_wc()
197 ah_attr->port_num = port_num; in ib_init_ah_from_wc()
200 ah_attr->ah_flags = IB_AH_GRH; in ib_init_ah_from_wc()
201 ah_attr->grh.dgid = grh->sgid; in ib_init_ah_from_wc()
[all …]
Duser_mad.c236 struct ib_ah_attr ah_attr; in recv_handler() local
240 &ah_attr); in recv_handler()
242 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; in recv_handler()
243 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; in recv_handler()
244 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; in recv_handler()
245 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); in recv_handler()
246 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); in recv_handler()
447 struct ib_ah_attr ah_attr; in ib_umad_write() local
485 memset(&ah_attr, 0, sizeof ah_attr); in ib_umad_write()
486 ah_attr.dlid = be16_to_cpu(packet->mad.hdr.lid); in ib_umad_write()
[all …]
Dmulticast.c721 struct ib_ah_attr *ah_attr) in ib_init_ah_from_mcmember() argument
731 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_mcmember()
732 ah_attr->dlid = be16_to_cpu(rec->mlid); in ib_init_ah_from_mcmember()
733 ah_attr->sl = rec->sl; in ib_init_ah_from_mcmember()
734 ah_attr->port_num = port_num; in ib_init_ah_from_mcmember()
735 ah_attr->static_rate = rec->rate; in ib_init_ah_from_mcmember()
737 ah_attr->ah_flags = IB_AH_GRH; in ib_init_ah_from_mcmember()
738 ah_attr->grh.dgid = rec->mgid; in ib_init_ah_from_mcmember()
740 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_mcmember()
741 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_mcmember()
[all …]
Duverbs_cmd.c1711 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
1712 resp.dest.flow_label = attr->ah_attr.grh.flow_label; in ib_uverbs_query_qp()
1713 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
1714 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
1715 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
1716 resp.dest.dlid = attr->ah_attr.dlid; in ib_uverbs_query_qp()
1717 resp.dest.sl = attr->ah_attr.sl; in ib_uverbs_query_qp()
1718 resp.dest.src_path_bits = attr->ah_attr.src_path_bits; in ib_uverbs_query_qp()
1719 resp.dest.static_rate = attr->ah_attr.static_rate; in ib_uverbs_query_qp()
1720 resp.dest.is_global = !!(attr->ah_attr.ah_flags & IB_AH_GRH); in ib_uverbs_query_qp()
[all …]
Duverbs_marshall.c74 ib_copy_ah_attr_to_user(&dst->ah_attr, &src->ah_attr); in ib_copy_qp_attr_to_user()
Dmad_rmpp.c840 struct ib_ah_attr ah_attr; in init_newwin() local
855 if (ib_query_ah(mad_send_wr->send_buf.ah, &ah_attr)) in init_newwin()
858 if (rmpp_recv->slid == ah_attr.dlid) { in init_newwin()
/linux-3.4.99/include/rdma/
Dib_sa.h372 struct ib_ah_attr *ah_attr);
380 struct ib_ah_attr *ah_attr);
Dib_verbs.h726 struct ib_ah_attr ah_attr; member
1122 struct ib_ah_attr *ah_attr);
1124 struct ib_ah_attr *ah_attr);
1126 struct ib_ah_attr *ah_attr);
1363 struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
1377 struct ib_grh *grh, struct ib_ah_attr *ah_attr);
1401 int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
1410 int ib_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
Drdma_cm.h101 struct ib_ah_attr ah_attr; member
Drdma_user_cm.h149 struct ib_uverbs_ah_attr ah_attr; member

12