Lines Matching refs:mad_hdr
180 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) ||
181 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) ||
182 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) &&
183 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP)));
1566 hi_tid = be64_to_cpu(mad->mad_hdr.tid) >> 32;
1585 if (mad->mad_hdr.class_version >= MAX_MGMT_VERSION)
1587 if (!is_vendor_class(mad->mad_hdr.mgmt_class)) {
1589 mad->mad_hdr.class_version].class;
1593 mad->mad_hdr.mgmt_class)];
1595 mad_agent = method->agent[mad->mad_hdr.method &
1599 mad->mad_hdr.class_version].vendor;
1603 mad->mad_hdr.mgmt_class)];
1613 mad_agent = method->agent[mad->mad_hdr.method &
1640 if (mad->mad_hdr.base_version != IB_MGMT_BASE_VERSION) {
1642 "version %d\n", mad->mad_hdr.base_version);
1647 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) ||
1648 (mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) {
1662 struct ib_mad_hdr *mad_hdr)
1666 rmpp_mad = (struct ib_rmpp_mad *)mad_hdr;
1676 return ((struct ib_mad *)(wr->send_buf.mad))->mad_hdr.mgmt_class ==
1677 rwc->recv_buf.mad->mad_hdr.mgmt_class;
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) ||
1883 if (recv->mad.mad.mad_hdr.mgmt_class ==