• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/ofed/drivers/infiniband/core/

Lines Matching defs:mad_hdr

1715 	       const struct ib_mad_hdr *mad_hdr)
1721 if (ib_response_mad(mad_hdr)) {
1729 hi_tid = be64_to_cpu(mad_hdr->tid) >> 32;
1748 if (mad_hdr->class_version >= MAX_MGMT_VERSION)
1750 if (!is_vendor_class(mad_hdr->mgmt_class)) {
1752 mad_hdr->class_version].class;
1755 if (convert_mgmt_class(mad_hdr->mgmt_class) >=
1759 mad_hdr->mgmt_class)];
1761 mad_agent = method->agent[mad_hdr->method &
1765 mad_hdr->class_version].vendor;
1769 mad_hdr->mgmt_class)];
1773 vendor_mad = (const struct ib_vendor_mad *)mad_hdr;
1779 mad_agent = method->agent[mad_hdr->method &
1801 static int validate_mad(const struct ib_mad_hdr *mad_hdr,
1809 if (mad_hdr->base_version != IB_MGMT_BASE_VERSION &&
1810 (!opa || mad_hdr->base_version != OPA_MGMT_BASE_VERSION)) {
1812 mad_hdr->base_version, opa ? "(opa)" : "");
1817 if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) ||
1818 (mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) {
1823 if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_CM) &&
1824 (mad_hdr->attr_id != IB_MGMT_CLASSPORTINFO_ATTR_ID) &&
1825 (mad_hdr->method != IB_MGMT_METHOD_SEND))
1837 const struct ib_mad_hdr *mad_hdr)
1841 rmpp_mad = (const struct ib_rmpp_mad *)mad_hdr;
1853 rwc->recv_buf.mad->mad_hdr.mgmt_class;
1868 rcv_resp = ib_response_mad(&rwc->recv_buf.mad->mad_hdr);
1917 const struct ib_mad_hdr *mad_hdr;
1919 mad_hdr = &wc->recv_buf.mad->mad_hdr;
1922 if ((wr->tid == mad_hdr->tid) &&
1928 (is_direct(mad_hdr->mgmt_class) ||
1939 wr->tid == mad_hdr->tid &&
1946 (is_direct(mad_hdr->mgmt_class) ||
1981 if (ib_response_mad(&mad_recv_wc->recv_buf.mad->mad_hdr)) {
1987 && ib_is_mad_class_rmpp(mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class)
2174 struct ib_mad_hdr *mad_hdr = (struct ib_mad_hdr *)recv->mad;
2176 if (opa && mad_hdr->base_version == OPA_MGMT_BASE_VERSION &&
2177 mad_hdr->class_version == OPA_SMI_CLASS_VERSION)