Lines Matching defs:mad
54 #include "mad.h"
352 smp = send_buf->mad;
480 static void bad_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad,
493 trap->data.ntc_256.method = mad->method;
494 trap->data.ntc_256.attr_id = mad->attr_id;
495 trap->data.ntc_256.attr_mod = mad->attr_mod;
497 if (mad->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) {
692 static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad,
713 (mad->method == IB_MGMT_METHOD_GET ||
714 mad->method == IB_MGMT_METHOD_SET ||
715 mad->method == IB_MGMT_METHOD_TRAP_REPRESS))
719 switch (mad->method) {
734 bad_mkey(ibp, mad, mkey, dr_slid, return_path,
4392 * is_local_mad() returns 1 if 'mad' is sent from, and destined to the
4395 static int is_local_mad(struct hfi1_ibport *ibp, const struct opa_mad *mad,
4399 const struct opa_smp *smp = (const struct opa_smp *)mad;