• Home
  • Raw
  • Download

Lines Matching refs:mad_hdr

2318 	struct ib_mad_hdr mad_hdr;  member
2610 if (pmp->mad_hdr.attr_mod != 0) in pma_get_opa_classportinfo()
2611 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_classportinfo()
2734 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_portstatus()
2747 pmp->mad_hdr.status |= OPA_PM_STATUS_REQUEST_TOO_LARGE; in pma_get_opa_portstatus()
2753 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_portstatus()
2997 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_datacounters()
3006 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
3014 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
3027 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_datacounters()
3132 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { in pma_get_ib_portcounters_ext()
3133 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_ib_portcounters_ext()
3217 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_get_opa_porterrors()
3223 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_porterrors()
3230 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_porterrors()
3242 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_porterrors()
3298 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { in pma_get_ib_portcounters()
3299 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_ib_portcounters()
3387 num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); in pma_get_opa_errorinfo()
3393 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_errorinfo()
3401 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_errorinfo()
3414 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_opa_errorinfo()
3478 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; in pma_set_opa_portstatus()
3485 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_opa_portstatus()
3637 num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); in pma_set_opa_errorinfo()
3643 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_opa_errorinfo()
3656 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_opa_errorinfo()
4644 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn()
4685 if (pmp->mad_hdr.class_version != 1) { in process_perf()
4686 pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION; in process_perf()
4691 switch (pmp->mad_hdr.method) { in process_perf()
4693 switch (pmp->mad_hdr.attr_id) { in process_perf()
4705 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in process_perf()
4712 if (pmp->mad_hdr.attr_id) { in process_perf()
4713 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in process_perf()
4729 pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; in process_perf()
4746 if (pmp->mad_hdr.class_version != OPA_SM_CLASS_VERSION) { in process_perf_opa()
4747 pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION; in process_perf_opa()
4751 *resp_len = sizeof(pmp->mad_hdr); in process_perf_opa()
4753 switch (pmp->mad_hdr.method) { in process_perf_opa()
4755 switch (pmp->mad_hdr.attr_id) { in process_perf_opa()
4776 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in process_perf_opa()
4783 switch (pmp->mad_hdr.attr_id) { in process_perf_opa()
4793 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in process_perf_opa()
4810 pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; in process_perf_opa()
4839 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_opa_mad()
4880 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_ib_mad()
4920 switch (in_mad->mad_hdr.base_version) { in hfi1_process_mad()