Lines Matching defs:mad_hdr

2276 	struct ib_mad_hdr mad_hdr;
2568 if (pmp->mad_hdr.attr_mod != 0)
2569 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
2692 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24;
2705 pmp->mad_hdr.status |= OPA_PM_STATUS_REQUEST_TOO_LARGE;
2711 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
2955 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24;
2964 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
2972 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
2985 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3090 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) {
3091 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3175 num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24;
3181 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3188 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3200 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3256 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) {
3257 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3345 num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod));
3351 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3359 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3372 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3436 u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24;
3443 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3595 num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod));
3601 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
3614 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD;
4602 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO &&
4643 if (pmp->mad_hdr.class_version != 1) {
4644 pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION;
4649 switch (pmp->mad_hdr.method) {
4651 switch (pmp->mad_hdr.attr_id) {
4663 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR;
4670 if (pmp->mad_hdr.attr_id) {
4671 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR;
4687 pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD;
4704 if (pmp->mad_hdr.class_version != OPA_SM_CLASS_VERSION) {
4705 pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION;
4709 *resp_len = sizeof(pmp->mad_hdr);
4711 switch (pmp->mad_hdr.method) {
4713 switch (pmp->mad_hdr.attr_id) {
4734 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR;
4741 switch (pmp->mad_hdr.attr_id) {
4751 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR;
4768 pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD;
4797 switch (in_mad->mad_hdr.mgmt_class) {
4838 switch (in_mad->mad_hdr.mgmt_class) {
4880 switch (in_mad->mad_hdr.base_version) {