Lines Matching refs:mad_hdr
181 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) || in ib_response_mad()
182 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) || in ib_response_mad()
183 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) && in ib_response_mad()
184 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP))); in ib_response_mad()
1574 hi_tid = be64_to_cpu(mad->mad_hdr.tid) >> 32; in find_mad_agent()
1593 if (mad->mad_hdr.class_version >= MAX_MGMT_VERSION) in find_mad_agent()
1595 if (!is_vendor_class(mad->mad_hdr.mgmt_class)) { in find_mad_agent()
1597 mad->mad_hdr.class_version].class; in find_mad_agent()
1600 if (convert_mgmt_class(mad->mad_hdr.mgmt_class) >= in find_mad_agent()
1604 mad->mad_hdr.mgmt_class)]; in find_mad_agent()
1606 mad_agent = method->agent[mad->mad_hdr.method & in find_mad_agent()
1610 mad->mad_hdr.class_version].vendor; in find_mad_agent()
1614 mad->mad_hdr.mgmt_class)]; in find_mad_agent()
1624 mad_agent = method->agent[mad->mad_hdr.method & in find_mad_agent()
1651 if (mad->mad_hdr.base_version != IB_MGMT_BASE_VERSION) { in validate_mad()
1653 "version %d\n", mad->mad_hdr.base_version); in validate_mad()
1658 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) || in validate_mad()
1659 (mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) { in validate_mad()
1673 struct ib_mad_hdr *mad_hdr) in is_data_mad() argument
1677 rmpp_mad = (struct ib_rmpp_mad *)mad_hdr; in is_data_mad()
1687 return ((struct ib_mad *)(wr->send_buf.mad))->mad_hdr.mgmt_class == in rcv_has_same_class()
1688 rwc->recv_buf.mad->mad_hdr.mgmt_class; in rcv_has_same_class()
1757 if ((wr->tid == mad->mad_hdr.tid) && in ib_find_send_mad()
1763 (is_direct(wc->recv_buf.mad->mad_hdr.mgmt_class) || in ib_find_send_mad()
1774 wr->tid == mad->mad_hdr.tid && in ib_find_send_mad()
1781 (is_direct(wc->recv_buf.mad->mad_hdr.mgmt_class) || in ib_find_send_mad()
1848 if (recv->mad.mad.mad_hdr.method == IB_MGMT_METHOD_GET || in generate_unmatched_resp()
1849 recv->mad.mad.mad_hdr.method == IB_MGMT_METHOD_SET) { in generate_unmatched_resp()
1854 response->mad.mad.mad_hdr.method = IB_MGMT_METHOD_GET_RESP; in generate_unmatched_resp()
1855 response->mad.mad.mad_hdr.status = in generate_unmatched_resp()
1857 if (recv->mad.mad.mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in generate_unmatched_resp()
1858 response->mad.mad.mad_hdr.status |= IB_SMP_DIRECTION; in generate_unmatched_resp()
1915 if (recv->mad.mad.mad_hdr.mgmt_class == in ib_mad_recv_done_handler()