Lines Matching defs:mad_hdr

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