Lines Matching defs:mad
12 #include "mad.h"
310 smp = send_buf->mad;
438 static void bad_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad,
451 trap->data.ntc_256.method = mad->method;
452 trap->data.ntc_256.attr_id = mad->attr_id;
453 trap->data.ntc_256.attr_mod = mad->attr_mod;
455 if (mad->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) {
650 static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad,
671 (mad->method == IB_MGMT_METHOD_GET ||
672 mad->method == IB_MGMT_METHOD_SET ||
673 mad->method == IB_MGMT_METHOD_TRAP_REPRESS))
677 switch (mad->method) {
692 bad_mkey(ibp, mad, mkey, dr_slid, return_path,
4350 * is_local_mad() returns 1 if 'mad' is sent from, and destined to the
4353 static int is_local_mad(struct hfi1_ibport *ibp, const struct opa_mad *mad,
4357 const struct opa_smp *smp = (const struct opa_smp *)mad;