Lines Matching defs:mad_hdr
171 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) ||
172 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) ||
173 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) &&
174 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP)));
749 mad_priv->mad.mad.mad_hdr.tid =
750 ((struct ib_mad *)smp)->mad_hdr.tid;
1565 hi_tid = be64_to_cpu(mad->mad_hdr.tid) >> 32;
1584 if (mad->mad_hdr.class_version >= MAX_MGMT_VERSION)
1586 if (!is_vendor_class(mad->mad_hdr.mgmt_class)) {
1588 mad->mad_hdr.class_version].class;
1592 mad->mad_hdr.mgmt_class)];
1594 mad_agent = method->agent[mad->mad_hdr.method &
1598 mad->mad_hdr.class_version].vendor;
1602 mad->mad_hdr.mgmt_class)];
1612 mad_agent = method->agent[mad->mad_hdr.method &
1639 if (mad->mad_hdr.base_version != IB_MGMT_BASE_VERSION) {
1641 "version %d\n", mad->mad_hdr.base_version);
1646 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) ||
1647 (mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) {
1661 struct ib_mad_hdr *mad_hdr)
1665 rmpp_mad = (struct ib_rmpp_mad *)mad_hdr;
1675 return ((struct ib_mad *)(wr->send_buf.mad))->mad_hdr.mgmt_class ==
1676 rwc->recv_buf.mad->mad_hdr.mgmt_class;
1691 mad_hdr.method & IB_MGMT_METHOD_RESP;
1692 rcv_resp = rwc->recv_buf.mad->mad_hdr.method & IB_MGMT_METHOD_RESP;
1746 if ((wr->tid == mad->mad_hdr.tid) &&
1752 (is_direct(wc->recv_buf.mad->mad_hdr.mgmt_class) ||
1763 wr->tid == mad->mad_hdr.tid &&
1770 (is_direct(wc->recv_buf.mad->mad_hdr.mgmt_class) ||
1875 if (recv->mad.mad.mad_hdr.mgmt_class ==