Lines Matching refs:mad_hdr

1702 	       const struct ib_mad_hdr *mad_hdr)
1708 if (ib_response_mad(mad_hdr)) {
1716 hi_tid = be64_to_cpu(mad_hdr->tid) >> 32;
1735 if (mad_hdr->class_version >= MAX_MGMT_VERSION)
1737 if (!is_vendor_class(mad_hdr->mgmt_class)) {
1739 mad_hdr->class_version].class;
1742 if (convert_mgmt_class(mad_hdr->mgmt_class) >=
1746 mad_hdr->mgmt_class)];
1748 mad_agent = method->agent[mad_hdr->method &
1752 mad_hdr->class_version].vendor;
1756 mad_hdr->mgmt_class)];
1760 vendor_mad = (const struct ib_vendor_mad *)mad_hdr;
1766 mad_agent = method->agent[mad_hdr->method &
1788 static int validate_mad(const struct ib_mad_hdr *mad_hdr,
1796 if (mad_hdr->base_version != IB_MGMT_BASE_VERSION &&
1797 (!opa || mad_hdr->base_version != OPA_MGMT_BASE_VERSION)) {
1799 mad_hdr->base_version, opa ? "(opa)" : "");
1804 if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) ||
1805 (mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) {
1810 if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_CM) &&
1811 (mad_hdr->attr_id != IB_MGMT_CLASSPORTINFO_ATTR_ID) &&
1812 (mad_hdr->method != IB_MGMT_METHOD_SEND))
1824 const struct ib_mad_hdr *mad_hdr)
1828 rmpp_mad = (const struct ib_rmpp_mad *)mad_hdr;
1840 rwc->recv_buf.mad->mad_hdr.mgmt_class;
1855 rcv_resp = ib_response_mad(&rwc->recv_buf.mad->mad_hdr);
1904 const struct ib_mad_hdr *mad_hdr;
1906 mad_hdr = &wc->recv_buf.mad->mad_hdr;
1909 if ((wr->tid == mad_hdr->tid) &&
1915 (is_direct(mad_hdr->mgmt_class) ||
1926 wr->tid == mad_hdr->tid &&
1933 (is_direct(mad_hdr->mgmt_class) ||
1968 if (ib_response_mad(&mad_recv_wc->recv_buf.mad->mad_hdr)) {
1974 && ib_is_mad_class_rmpp(mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class)
2161 struct ib_mad_hdr *mad_hdr = (struct ib_mad_hdr *)recv->mad;
2163 if (opa && mad_hdr->base_version == OPA_MGMT_BASE_VERSION &&
2164 mad_hdr->class_version == OPA_SMI_CLASS_VERSION)