mad_hdr 81 drivers/infiniband/core/agent.c void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, mad_hdr 109 drivers/infiniband/core/agent.c if (opa && mad_hdr->base_version != OPA_MGMT_BASE_VERSION) mad_hdr 116 drivers/infiniband/core/agent.c mad_hdr->base_version); mad_hdr 122 drivers/infiniband/core/agent.c memcpy(send_buf->mad, mad_hdr, resp_mad_len); mad_hdr 47 drivers/infiniband/core/agent.h extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, mad_hdr 4001 drivers/infiniband/core/cm.c switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { mad_hdr 4044 drivers/infiniband/core/cm.c attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); mad_hdr 1770 drivers/infiniband/core/mad.c const struct ib_mad_hdr *mad_hdr) mad_hdr 1775 drivers/infiniband/core/mad.c if (ib_response_mad(mad_hdr)) { mad_hdr 1782 drivers/infiniband/core/mad.c hi_tid = be64_to_cpu(mad_hdr->tid) >> 32; mad_hdr 1801 drivers/infiniband/core/mad.c if (mad_hdr->class_version >= MAX_MGMT_VERSION) mad_hdr 1803 drivers/infiniband/core/mad.c if (!is_vendor_class(mad_hdr->mgmt_class)) { mad_hdr 1805 drivers/infiniband/core/mad.c mad_hdr->class_version].class; mad_hdr 1808 drivers/infiniband/core/mad.c if (convert_mgmt_class(mad_hdr->mgmt_class) >= mad_hdr 1812 drivers/infiniband/core/mad.c mad_hdr->mgmt_class)]; mad_hdr 1814 drivers/infiniband/core/mad.c mad_agent = method->agent[mad_hdr->method & mad_hdr 1818 drivers/infiniband/core/mad.c mad_hdr->class_version].vendor; mad_hdr 1822 drivers/infiniband/core/mad.c mad_hdr->mgmt_class)]; mad_hdr 1826 drivers/infiniband/core/mad.c vendor_mad = (const struct ib_vendor_mad *)mad_hdr; mad_hdr 1832 drivers/infiniband/core/mad.c mad_agent = method->agent[mad_hdr->method & mad_hdr 1853 drivers/infiniband/core/mad.c static int validate_mad(const struct ib_mad_hdr *mad_hdr, mad_hdr 1861 drivers/infiniband/core/mad.c if (mad_hdr->base_version != IB_MGMT_BASE_VERSION && mad_hdr 1862 drivers/infiniband/core/mad.c (!opa || mad_hdr->base_version != OPA_MGMT_BASE_VERSION)) { mad_hdr 1864 drivers/infiniband/core/mad.c mad_hdr->base_version, opa ? "(opa)" : ""); mad_hdr 1869 drivers/infiniband/core/mad.c if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED) || mad_hdr 1870 drivers/infiniband/core/mad.c (mad_hdr->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)) { mad_hdr 1875 drivers/infiniband/core/mad.c if ((mad_hdr->mgmt_class == IB_MGMT_CLASS_CM) && mad_hdr 1876 drivers/infiniband/core/mad.c (mad_hdr->attr_id != IB_MGMT_CLASSPORTINFO_ATTR_ID) && mad_hdr 1877 drivers/infiniband/core/mad.c (mad_hdr->method != IB_MGMT_METHOD_SEND)) mad_hdr 1889 drivers/infiniband/core/mad.c const struct ib_mad_hdr *mad_hdr) mad_hdr 1893 drivers/infiniband/core/mad.c rmpp_mad = (struct ib_rmpp_mad *)mad_hdr; mad_hdr 1905 drivers/infiniband/core/mad.c rwc->recv_buf.mad->mad_hdr.mgmt_class; mad_hdr 1921 drivers/infiniband/core/mad.c rcv_resp = ib_response_mad(&rwc->recv_buf.mad->mad_hdr); mad_hdr 1974 drivers/infiniband/core/mad.c const struct ib_mad_hdr *mad_hdr; mad_hdr 1976 drivers/infiniband/core/mad.c mad_hdr = &wc->recv_buf.mad->mad_hdr; mad_hdr 1979 drivers/infiniband/core/mad.c if ((wr->tid == mad_hdr->tid) && mad_hdr 1985 drivers/infiniband/core/mad.c (is_direct(mad_hdr->mgmt_class) || mad_hdr 1996 drivers/infiniband/core/mad.c wr->tid == mad_hdr->tid && mad_hdr 2003 drivers/infiniband/core/mad.c (is_direct(mad_hdr->mgmt_class) || mad_hdr 2047 drivers/infiniband/core/mad.c if (ib_response_mad(&mad_recv_wc->recv_buf.mad->mad_hdr)) { mad_hdr 2053 drivers/infiniband/core/mad.c && ib_is_mad_class_rmpp(mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class) mad_hdr 2246 drivers/infiniband/core/mad.c struct ib_mad_hdr *mad_hdr = (struct ib_mad_hdr *)recv->mad; mad_hdr 2248 drivers/infiniband/core/mad.c if (opa && mad_hdr->base_version == OPA_MGMT_BASE_VERSION && mad_hdr 2249 drivers/infiniband/core/mad.c mad_hdr->class_version == OPA_SM_CLASS_VERSION) mad_hdr 122 drivers/infiniband/core/mad_rmpp.c memcpy(ack, &data->mad_hdr, msg->hdr_len); mad_hdr 124 drivers/infiniband/core/mad_rmpp.c ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; mad_hdr 141 drivers/infiniband/core/mad_rmpp.c hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); mad_hdr 168 drivers/infiniband/core/mad_rmpp.c hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); mad_hdr 197 drivers/infiniband/core/mad_rmpp.c rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; mad_hdr 231 drivers/infiniband/core/mad_rmpp.c rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; mad_hdr 289 drivers/infiniband/core/mad_rmpp.c struct ib_mad_hdr *mad_hdr; mad_hdr 317 drivers/infiniband/core/mad_rmpp.c mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; mad_hdr 318 drivers/infiniband/core/mad_rmpp.c rmpp_recv->tid = mad_hdr->tid; mad_hdr 321 drivers/infiniband/core/mad_rmpp.c rmpp_recv->mgmt_class = mad_hdr->mgmt_class; mad_hdr 322 drivers/infiniband/core/mad_rmpp.c rmpp_recv->class_version = mad_hdr->class_version; mad_hdr 323 drivers/infiniband/core/mad_rmpp.c rmpp_recv->method = mad_hdr->method; mad_hdr 324 drivers/infiniband/core/mad_rmpp.c rmpp_recv->base_version = mad_hdr->base_version; mad_hdr 336 drivers/infiniband/core/mad_rmpp.c struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; mad_hdr 339 drivers/infiniband/core/mad_rmpp.c if (rmpp_recv->tid == mad_hdr->tid && mad_hdr 342 drivers/infiniband/core/mad_rmpp.c rmpp_recv->mgmt_class == mad_hdr->mgmt_class && mad_hdr 343 drivers/infiniband/core/mad_rmpp.c rmpp_recv->class_version == mad_hdr->class_version && mad_hdr 344 drivers/infiniband/core/mad_rmpp.c rmpp_recv->method == mad_hdr->method) mad_hdr 445 drivers/infiniband/core/mad_rmpp.c hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); mad_hdr 854 drivers/infiniband/core/mad_rmpp.c struct ib_mad_hdr *mad_hdr = mad_send_wr->send_buf.mad; mad_hdr 860 drivers/infiniband/core/mad_rmpp.c if (!(mad_hdr->method & IB_MGMT_METHOD_RESP)) mad_hdr 865 drivers/infiniband/core/mad_rmpp.c if (rmpp_recv->tid != mad_hdr->tid || mad_hdr 866 drivers/infiniband/core/mad_rmpp.c rmpp_recv->mgmt_class != mad_hdr->mgmt_class || mad_hdr 867 drivers/infiniband/core/mad_rmpp.c rmpp_recv->class_version != mad_hdr->class_version || mad_hdr 958 drivers/infiniband/core/sa_query.c mad->mad_hdr.method |= mad_hdr 1349 drivers/infiniband/core/sa_query.c mad->mad_hdr.base_version = OPA_MGMT_BASE_VERSION; mad_hdr 1350 drivers/infiniband/core/sa_query.c mad->mad_hdr.class_version = OPA_SA_CLASS_VERSION; mad_hdr 1352 drivers/infiniband/core/sa_query.c mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; mad_hdr 1353 drivers/infiniband/core/sa_query.c mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; mad_hdr 1355 drivers/infiniband/core/sa_query.c mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; mad_hdr 1357 drivers/infiniband/core/sa_query.c mad->mad_hdr.tid = mad_hdr 1607 drivers/infiniband/core/sa_query.c mad->mad_hdr.method = IB_MGMT_METHOD_GET; mad_hdr 1608 drivers/infiniband/core/sa_query.c mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); mad_hdr 1744 drivers/infiniband/core/sa_query.c mad->mad_hdr.method = method; mad_hdr 1745 drivers/infiniband/core/sa_query.c mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); mad_hdr 1836 drivers/infiniband/core/sa_query.c mad->mad_hdr.method = method; mad_hdr 1837 drivers/infiniband/core/sa_query.c mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); mad_hdr 1934 drivers/infiniband/core/sa_query.c mad->mad_hdr.method = method; mad_hdr 1935 drivers/infiniband/core/sa_query.c mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC); mad_hdr 2088 drivers/infiniband/core/sa_query.c mad->mad_hdr.method = IB_MGMT_METHOD_GET; mad_hdr 2089 drivers/infiniband/core/sa_query.c mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_CLASS_PORTINFO); mad_hdr 2206 drivers/infiniband/core/sa_query.c mad_recv_wc->recv_buf.mad->mad_hdr.status ? mad_hdr 491 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.base_version = 1; mad_hdr 492 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; mad_hdr 493 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.class_version = 1; mad_hdr 494 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; mad_hdr 495 drivers/infiniband/core/sysfs.c in_mad->mad_hdr.attr_id = attr; mad_hdr 329 drivers/infiniband/core/user_mad.c offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); mad_hdr 343 drivers/infiniband/core/user_mad.c trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr); mad_hdr 554 drivers/infiniband/core/user_mad.c hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); mad_hdr 556 drivers/infiniband/core/user_mad.c if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) mad_hdr 608 drivers/infiniband/core/user_mad.c rmpp_mad->mad_hdr.tid = *tid; mad_hdr 612 drivers/infiniband/core/user_mad.c && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) mad_hdr 2319 drivers/infiniband/hw/hfi1/mad.c struct ib_mad_hdr mad_hdr; mad_hdr 2611 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.attr_mod != 0) mad_hdr 2612 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 2735 drivers/infiniband/hw/hfi1/mad.c u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; mad_hdr 2748 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= OPA_PM_STATUS_REQUEST_TOO_LARGE; mad_hdr 2754 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 2998 drivers/infiniband/hw/hfi1/mad.c num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; mad_hdr 3007 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3015 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3028 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3133 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { mad_hdr 3134 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3218 drivers/infiniband/hw/hfi1/mad.c num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; mad_hdr 3224 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3231 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3243 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3299 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { mad_hdr 3300 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3388 drivers/infiniband/hw/hfi1/mad.c num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); mad_hdr 3394 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3402 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3415 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3479 drivers/infiniband/hw/hfi1/mad.c u32 nports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; mad_hdr 3486 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3638 drivers/infiniband/hw/hfi1/mad.c num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); mad_hdr 3644 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 3657 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 4645 drivers/infiniband/hw/hfi1/mad.c if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && mad_hdr 4686 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.class_version != 1) { mad_hdr 4687 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION; mad_hdr 4692 drivers/infiniband/hw/hfi1/mad.c switch (pmp->mad_hdr.method) { mad_hdr 4694 drivers/infiniband/hw/hfi1/mad.c switch (pmp->mad_hdr.attr_id) { mad_hdr 4706 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 4713 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.attr_id) { mad_hdr 4714 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 4730 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; mad_hdr 4747 drivers/infiniband/hw/hfi1/mad.c if (pmp->mad_hdr.class_version != OPA_SM_CLASS_VERSION) { mad_hdr 4748 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION; mad_hdr 4752 drivers/infiniband/hw/hfi1/mad.c *resp_len = sizeof(pmp->mad_hdr); mad_hdr 4754 drivers/infiniband/hw/hfi1/mad.c switch (pmp->mad_hdr.method) { mad_hdr 4756 drivers/infiniband/hw/hfi1/mad.c switch (pmp->mad_hdr.attr_id) { mad_hdr 4777 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 4784 drivers/infiniband/hw/hfi1/mad.c switch (pmp->mad_hdr.attr_id) { mad_hdr 4794 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 4811 drivers/infiniband/hw/hfi1/mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; mad_hdr 4840 drivers/infiniband/hw/hfi1/mad.c switch (in_mad->mad_hdr.mgmt_class) { mad_hdr 4881 drivers/infiniband/hw/hfi1/mad.c switch (in_mad->mad_hdr.mgmt_class) { mad_hdr 77 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 81 drivers/infiniband/hw/mlx4/cm.c } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { mad_hdr 92 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 96 drivers/infiniband/hw/mlx4/cm.c } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { mad_hdr 107 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { mad_hdr 111 drivers/infiniband/hw/mlx4/cm.c } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 122 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { mad_hdr 126 drivers/infiniband/hw/mlx4/cm.c } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 295 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || mad_hdr 296 drivers/infiniband/hw/mlx4/cm.c mad->mad_hdr.attr_id == CM_REP_ATTR_ID || mad_hdr 297 drivers/infiniband/hw/mlx4/cm.c mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 308 drivers/infiniband/hw/mlx4/cm.c } else if (mad->mad_hdr.attr_id == CM_REJ_ATTR_ID || mad_hdr 309 drivers/infiniband/hw/mlx4/cm.c mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { mad_hdr 325 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID) mad_hdr 336 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || mad_hdr 337 drivers/infiniband/hw/mlx4/cm.c mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { mad_hdr 365 drivers/infiniband/hw/mlx4/cm.c if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID || mad_hdr 366 drivers/infiniband/hw/mlx4/cm.c mad->mad_hdr.attr_id == CM_REJ_ATTR_ID) mad_hdr 231 drivers/infiniband/hw/mlx4/mad.c if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 232 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 233 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.method == IB_MGMT_METHOD_SET) mad_hdr 234 drivers/infiniband/hw/mlx4/mad.c switch (mad->mad_hdr.attr_id) { mad_hdr 372 drivers/infiniband/hw/mlx4/mad.c if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 373 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 374 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && mad_hdr 375 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { mad_hdr 385 drivers/infiniband/hw/mlx4/mad.c int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; mad_hdr 422 drivers/infiniband/hw/mlx4/mad.c switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { mad_hdr 689 drivers/infiniband/hw/mlx4/mad.c if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_CM) { mad_hdr 727 drivers/infiniband/hw/mlx4/mad.c if (mad->mad_hdr.method & 0x80) { mad_hdr 728 drivers/infiniband/hw/mlx4/mad.c slave_id = (u8 *) &mad->mad_hdr.tid; mad_hdr 751 drivers/infiniband/hw/mlx4/mad.c switch (mad->mad_hdr.mgmt_class) { mad_hdr 759 drivers/infiniband/hw/mlx4/mad.c if (!(mad->mad_hdr.method & IB_MGMT_METHOD_RESP)) { mad_hdr 761 drivers/infiniband/hw/mlx4/mad.c slave, mad->mad_hdr.mgmt_class, mad_hdr 762 drivers/infiniband/hw/mlx4/mad.c mad->mad_hdr.method); mad_hdr 777 drivers/infiniband/hw/mlx4/mad.c if (mad->mad_hdr.method != IB_MGMT_METHOD_GET_RESP) mad_hdr 784 drivers/infiniband/hw/mlx4/mad.c "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); mad_hdr 818 drivers/infiniband/hw/mlx4/mad.c be64_to_cpu(in_mad->mad_hdr.tid), mad_hdr 819 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method, mad_hdr 820 drivers/infiniband/hw/mlx4/mad.c be16_to_cpu(in_mad->mad_hdr.attr_id)); mad_hdr 833 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { mad_hdr 838 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 839 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { mad_hdr 840 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 841 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && mad_hdr 842 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 848 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) mad_hdr 850 drivers/infiniband/hw/mlx4/mad.c } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || mad_hdr 851 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1 || mad_hdr 852 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2 || mad_hdr 853 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) { mad_hdr 854 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 855 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET) mad_hdr 860 drivers/infiniband/hw/mlx4/mad.c if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 861 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 862 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.method == IB_MGMT_METHOD_SET && mad_hdr 863 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && mad_hdr 875 drivers/infiniband/hw/mlx4/mad.c if (!out_mad->mad_hdr.status) { mad_hdr 883 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) mad_hdr 884 drivers/infiniband/hw/mlx4/mad.c out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); mad_hdr 886 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 946 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_PERF_MGMT) mad_hdr 949 drivers/infiniband/hw/mlx4/mad.c if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) mad_hdr 974 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.attr_id); mad_hdr 1005 drivers/infiniband/hw/mlx4/mad.c (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT && mad_hdr 1006 drivers/infiniband/hw/mlx4/mad.c (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS || mad_hdr 1007 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT || mad_hdr 1008 drivers/infiniband/hw/mlx4/mad.c in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO))) mad_hdr 1342 drivers/infiniband/hw/mlx4/mad.c switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { mad_hdr 1515 drivers/infiniband/hw/mlx4/mad.c switch (tunnel->mad.mad_hdr.method) { mad_hdr 1523 drivers/infiniband/hw/mlx4/mad.c slave_id = (u8 *) &tunnel->mad.mad_hdr.tid; mad_hdr 1527 drivers/infiniband/hw/mlx4/mad.c tunnel->mad.mad_hdr.mgmt_class, slave); mad_hdr 1536 drivers/infiniband/hw/mlx4/mad.c switch (tunnel->mad.mad_hdr.mgmt_class) { mad_hdr 1554 drivers/infiniband/hw/mlx4/mad.c if (tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 1555 drivers/infiniband/hw/mlx4/mad.c tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_SET) mad_hdr 1562 drivers/infiniband/hw/mlx4/mad.c "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave); mad_hdr 265 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); mad_hdr 266 drivers/infiniband/hw/mlx4/mcg.c group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ mad_hdr 286 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.base_version = 1; mad_hdr 287 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; mad_hdr 288 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.class_version = 2; mad_hdr 289 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.method = IB_SA_METHOD_DELETE; mad_hdr 290 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.status = cpu_to_be16(0); mad_hdr 291 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.class_specific = cpu_to_be16(0); mad_hdr 292 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); mad_hdr 293 drivers/infiniband/hw/mlx4/mcg.c group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ mad_hdr 294 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); mad_hdr 295 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.attr_mod = cpu_to_be32(0); mad_hdr 327 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.base_version = 1; mad_hdr 328 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; mad_hdr 329 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.class_version = 2; mad_hdr 330 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.method = IB_MGMT_METHOD_GET_RESP; mad_hdr 331 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.status = cpu_to_be16(status); mad_hdr 332 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.class_specific = cpu_to_be16(0); mad_hdr 333 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.tid = req_sa_mad->mad_hdr.tid; mad_hdr 334 drivers/infiniband/hw/mlx4/mcg.c *(u8 *)&mad.mad_hdr.tid = 0; /* resetting tid to 0 */ mad_hdr 335 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); mad_hdr 336 drivers/infiniband/hw/mlx4/mcg.c mad.mad_hdr.attr_mod = cpu_to_be32(0); mad_hdr 663 drivers/infiniband/hw/mlx4/mcg.c status = be16_to_cpu(group->response_sa_mad.mad_hdr.status); mad_hdr 664 drivers/infiniband/hw/mlx4/mcg.c method = group->response_sa_mad.mad_hdr.method; mad_hdr 665 drivers/infiniband/hw/mlx4/mcg.c if (group->last_req_tid != group->response_sa_mad.mad_hdr.tid) { mad_hdr 667 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->response_sa_mad.mad_hdr.tid), mad_hdr 718 drivers/infiniband/hw/mlx4/mcg.c if (req->sa_mad.mad_hdr.method == IB_SA_METHOD_DELETE) mad_hdr 890 drivers/infiniband/hw/mlx4/mcg.c switch (mad->mad_hdr.method) { mad_hdr 897 drivers/infiniband/hw/mlx4/mcg.c if (mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP) { mad_hdr 898 drivers/infiniband/hw/mlx4/mcg.c __be64 tid = mad->mad_hdr.tid; mad_hdr 926 drivers/infiniband/hw/mlx4/mcg.c port, mad->mad_hdr.method); mad_hdr 944 drivers/infiniband/hw/mlx4/mcg.c switch (sa_mad->mad_hdr.method) { mad_hdr 985 drivers/infiniband/hw/mlx4/mcg.c port, slave, sa_mad->mad_hdr.method); mad_hdr 1012 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(req->sa_mad.mad_hdr.tid)); mad_hdr 1159 drivers/infiniband/hw/mlx4/mcg.c mad->mad_hdr.method = IB_SA_METHOD_DELETE; mad_hdr 49 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED && mad_hdr 50 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) mad_hdr 86 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) mad_hdr 89 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 90 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { mad_hdr 91 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 92 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && mad_hdr 93 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 98 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) mad_hdr 100 drivers/infiniband/hw/mlx5/mad.c } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || mad_hdr 101 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS1 || mad_hdr 102 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS2 || mad_hdr 103 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) { mad_hdr 104 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 105 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET) mad_hdr 119 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) mad_hdr 120 drivers/infiniband/hw/mlx5/mad.c out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); mad_hdr 122 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 223 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { mad_hdr 232 drivers/infiniband/hw/mlx5/mad.c if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { mad_hdr 290 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT && mad_hdr 291 drivers/infiniband/hw/mlx5/mad.c in_mad->mad_hdr.method == IB_MGMT_METHOD_GET) { mad_hdr 114 drivers/infiniband/hw/mthca/mthca_mad.c if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 115 drivers/infiniband/hw/mthca/mthca_mad.c mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 116 drivers/infiniband/hw/mthca/mthca_mad.c mad->mad_hdr.method == IB_MGMT_METHOD_SET) { mad_hdr 117 drivers/infiniband/hw/mthca/mthca_mad.c if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { mad_hdr 141 drivers/infiniband/hw/mthca/mthca_mad.c if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { mad_hdr 153 drivers/infiniband/hw/mthca/mthca_mad.c if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 154 drivers/infiniband/hw/mthca/mthca_mad.c mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 155 drivers/infiniband/hw/mthca/mthca_mad.c mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && mad_hdr 156 drivers/infiniband/hw/mthca/mthca_mad.c mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { mad_hdr 168 drivers/infiniband/hw/mthca/mthca_mad.c int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; mad_hdr 220 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && mad_hdr 232 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 233 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { mad_hdr 234 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 235 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && mad_hdr 236 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 243 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || mad_hdr 244 drivers/infiniband/hw/mthca/mthca_mad.c ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == mad_hdr 247 drivers/infiniband/hw/mthca/mthca_mad.c } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || mad_hdr 248 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS1 || mad_hdr 249 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS2) { mad_hdr 250 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && mad_hdr 251 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.method != IB_MGMT_METHOD_SET) mad_hdr 255 drivers/infiniband/hw/mthca/mthca_mad.c if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || mad_hdr 256 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && mad_hdr 257 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.method == IB_MGMT_METHOD_SET && mad_hdr 258 drivers/infiniband/hw/mthca/mthca_mad.c in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && mad_hdr 273 drivers/infiniband/hw/mthca/mthca_mad.c if (!out_mad->mad_hdr.status) { mad_hdr 279 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) mad_hdr 280 drivers/infiniband/hw/mthca/mthca_mad.c out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); mad_hdr 282 drivers/infiniband/hw/mthca/mthca_mad.c if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) mad_hdr 268 drivers/infiniband/hw/ocrdma/ocrdma_ah.c switch (in_mad->mad_hdr.mgmt_class) { mad_hdr 4136 drivers/infiniband/hw/qedr/verbs.c const struct ib_mad_hdr *mad_hdr, mad_hdr 4144 drivers/infiniband/hw/qedr/verbs.c mad_hdr->attr_id, mad_hdr->base_version, mad_hdr->attr_mod, mad_hdr 4145 drivers/infiniband/hw/qedr/verbs.c mad_hdr->class_specific, mad_hdr->class_version, mad_hdr 4146 drivers/infiniband/hw/qedr/verbs.c mad_hdr->method, mad_hdr->mgmt_class, mad_hdr->status); mad_hdr 1160 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.attr_mod != 0) mad_hdr 1161 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1197 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { mad_hdr 1198 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1233 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { mad_hdr 1234 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1464 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.attr_mod != 0 || port_select != port) mad_hdr 1465 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1538 drivers/infiniband/hw/qib/qib_mad.c u32 port_select = be32_to_cpu(pmp->mad_hdr.attr_mod) & 0xFF; mad_hdr 1547 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 1549 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1672 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { mad_hdr 1673 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; mad_hdr 1775 drivers/infiniband/hw/qib/qib_mad.c u32 counter_select = (be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24) & 0xFF; mad_hdr 1887 drivers/infiniband/hw/qib/qib_mad.c if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && mad_hdr 2020 drivers/infiniband/hw/qib/qib_mad.c if (pmp->mad_hdr.class_version != 1) { mad_hdr 2021 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_VERSION; mad_hdr 2026 drivers/infiniband/hw/qib/qib_mad.c switch (pmp->mad_hdr.method) { mad_hdr 2028 drivers/infiniband/hw/qib/qib_mad.c switch (pmp->mad_hdr.attr_id) { mad_hdr 2051 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 2057 drivers/infiniband/hw/qib/qib_mad.c switch (pmp->mad_hdr.attr_id) { mad_hdr 2071 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; mad_hdr 2087 drivers/infiniband/hw/qib/qib_mad.c pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; mad_hdr 2422 drivers/infiniband/hw/qib/qib_mad.c switch (in_mad->mad_hdr.mgmt_class) { mad_hdr 454 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h struct ib_mad_hdr mad_hdr; mad_hdr 494 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h struct ib_mad_hdr mad_hdr; mad_hdr 136 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c return be32_to_cpu(recvd_mad->mad_hdr.attr_mod) & 0xff; mad_hdr 340 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 363 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 375 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 398 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 405 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; mad_hdr 407 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; mad_hdr 432 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 466 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 503 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 525 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; mad_hdr 539 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); mad_hdr 563 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; mad_hdr 578 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c u16 attr_id = be16_to_cpu(recvd_mad->mad_hdr.attr_id); mad_hdr 594 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; mad_hdr 651 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c vema_mad->mad_hdr.method = IB_MGMT_METHOD_GET_RESP; mad_hdr 652 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c vema_mad->mad_hdr.status = 0; mad_hdr 657 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c switch (mad_wc->recv_buf.mad->mad_hdr.method) { mad_hdr 667 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c vema_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; mad_hdr 810 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.base_version = OPA_MGMT_BASE_VERSION; mad_hdr 811 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.mgmt_class = OPA_MGMT_CLASS_INTEL_EMA; mad_hdr 812 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.class_version = OPA_EMA_CLASS_VERSION; mad_hdr 813 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.method = IB_MGMT_METHOD_TRAP; mad_hdr 815 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.tid = cpu_to_be64(port->tid); mad_hdr 816 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c trap_mad->mad_hdr.attr_id = IB_SMP_ATTR_NOTICE; mad_hdr 79 drivers/infiniband/ulp/srpt/ib_dm_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 282 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status = 0; mad_hdr 307 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status = 0; mad_hdr 330 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status mad_hdr 336 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status mad_hdr 368 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status = 0; mad_hdr 390 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status mad_hdr 396 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status mad_hdr 410 drivers/infiniband/ulp/srpt/ib_srpt.c mad->mad_hdr.status = 0; mad_hdr 426 drivers/infiniband/ulp/srpt/ib_srpt.c attr_id = be16_to_cpu(rq_mad->mad_hdr.attr_id); mad_hdr 435 drivers/infiniband/ulp/srpt/ib_srpt.c slot = be32_to_cpu(rq_mad->mad_hdr.attr_mod); mad_hdr 439 drivers/infiniband/ulp/srpt/ib_srpt.c slot = be32_to_cpu(rq_mad->mad_hdr.attr_mod); mad_hdr 447 drivers/infiniband/ulp/srpt/ib_srpt.c rsp_mad->mad_hdr.status = mad_hdr 502 drivers/infiniband/ulp/srpt/ib_srpt.c dm_mad->mad_hdr.method = IB_MGMT_METHOD_GET_RESP; mad_hdr 503 drivers/infiniband/ulp/srpt/ib_srpt.c dm_mad->mad_hdr.status = 0; mad_hdr 505 drivers/infiniband/ulp/srpt/ib_srpt.c switch (mad_wc->recv_buf.mad->mad_hdr.method) { mad_hdr 510 drivers/infiniband/ulp/srpt/ib_srpt.c dm_mad->mad_hdr.status = mad_hdr 514 drivers/infiniband/ulp/srpt/ib_srpt.c dm_mad->mad_hdr.status = mad_hdr 204 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 209 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 214 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 220 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 226 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 233 include/rdma/ib_mad.h struct ib_mad_hdr mad_hdr; mad_hdr 56 include/rdma/ib_pma.h struct ib_mad_hdr mad_hdr; mad_hdr 186 include/trace/events/ib_mad.h struct ib_mad_hdr *mad_hdr), mad_hdr 187 include/trace/events/ib_mad.h TP_ARGS(qp_info, wc, mad_hdr), mad_hdr 215 include/trace/events/ib_mad.h __entry->base_version = mad_hdr->base_version; mad_hdr 216 include/trace/events/ib_mad.h __entry->mgmt_class = mad_hdr->mgmt_class; mad_hdr 217 include/trace/events/ib_mad.h __entry->class_version = mad_hdr->class_version; mad_hdr 218 include/trace/events/ib_mad.h __entry->method = mad_hdr->method; mad_hdr 219 include/trace/events/ib_mad.h __entry->status = mad_hdr->status; mad_hdr 220 include/trace/events/ib_mad.h __entry->class_specific = mad_hdr->class_specific; mad_hdr 221 include/trace/events/ib_mad.h __entry->tid = mad_hdr->tid; mad_hdr 222 include/trace/events/ib_mad.h __entry->attr_id = mad_hdr->attr_id; mad_hdr 223 include/trace/events/ib_mad.h __entry->attr_mod = mad_hdr->attr_mod; mad_hdr 18 include/trace/events/ib_umad.h struct ib_mad_hdr *mad_hdr), mad_hdr 19 include/trace/events/ib_umad.h TP_ARGS(file, umad_hdr, mad_hdr), mad_hdr 74 include/trace/events/ib_umad.h __entry->base_version = mad_hdr->base_version; mad_hdr 75 include/trace/events/ib_umad.h __entry->mgmt_class = mad_hdr->mgmt_class; mad_hdr 76 include/trace/events/ib_umad.h __entry->class_version = mad_hdr->class_version; mad_hdr 77 include/trace/events/ib_umad.h __entry->method = mad_hdr->method; mad_hdr 78 include/trace/events/ib_umad.h __entry->mad_status = mad_hdr->status; mad_hdr 79 include/trace/events/ib_umad.h __entry->class_specific = mad_hdr->class_specific; mad_hdr 80 include/trace/events/ib_umad.h __entry->tid = mad_hdr->tid; mad_hdr 81 include/trace/events/ib_umad.h __entry->attr_id = mad_hdr->attr_id; mad_hdr 82 include/trace/events/ib_umad.h __entry->attr_mod = mad_hdr->attr_mod; mad_hdr 111 include/trace/events/ib_umad.h struct ib_mad_hdr *mad_hdr), mad_hdr 112 include/trace/events/ib_umad.h TP_ARGS(file, umad_hdr, mad_hdr)); mad_hdr 116 include/trace/events/ib_umad.h struct ib_mad_hdr *mad_hdr), mad_hdr 117 include/trace/events/ib_umad.h TP_ARGS(file, umad_hdr, mad_hdr)); mad_hdr 121 include/trace/events/ib_umad.h struct ib_mad_hdr *mad_hdr), mad_hdr 122 include/trace/events/ib_umad.h TP_ARGS(file, umad_hdr, mad_hdr));