Home
last modified time | relevance | path

Searched refs:mad_hdr (Results 1 – 14 of 14) sorted by relevance

/drivers/infiniband/hw/mthca/
Dmthca_mad.c112 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop()
115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
152 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
153 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
165 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
[all …]
/drivers/infiniband/hw/mlx4/
Dmad.c158 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
159 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
160 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop()
161 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
184 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
196 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
197 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
198 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && in node_desc_override()
199 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
208 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
[all …]
/drivers/infiniband/hw/ehca/
Dehca_sqp.c123 struct ib_mad_hdr mad_hdr; member
156 ehca_dbg(ibdev, "method=%x", in_perf->mad_hdr.method); in ehca_process_perf()
160 if (in_perf->mad_hdr.class_version != 1) { in ehca_process_perf()
162 in_perf->mad_hdr.class_version); in ehca_process_perf()
163 out_perf->mad_hdr.status = IB_MAD_STATUS_UNSUP_VERSION; in ehca_process_perf()
167 switch (in_perf->mad_hdr.method) { in ehca_process_perf()
171 out_perf->mad_hdr.attr_id = IB_PMA_CLASS_PORT_INFO; in ehca_process_perf()
172 out_perf->mad_hdr.status = IB_MAD_STATUS_REDIRECT; in ehca_process_perf()
209 out_perf->mad_hdr.status = IB_MAD_STATUS_UNSUP_METHOD; in ehca_process_perf()
214 out_perf->mad_hdr.method = IB_MGMT_METHOD_GET_RESP; in ehca_process_perf()
[all …]
Dehca_reqs.c118 struct ib_mad_hdr *mad_hdr = send_wr->wr.ud.mad_hdr; in trace_send_wr_ud() local
124 if (mad_hdr) { in trace_send_wr_ud()
129 idx, mad_hdr->base_version, in trace_send_wr_ud()
130 mad_hdr->mgmt_class, in trace_send_wr_ud()
131 mad_hdr->class_version, mad_hdr->method, in trace_send_wr_ud()
132 mad_hdr->status, mad_hdr->class_specific, in trace_send_wr_ud()
133 mad_hdr->tid, mad_hdr->attr_id, in trace_send_wr_ud()
134 mad_hdr->resv, in trace_send_wr_ud()
135 mad_hdr->attr_mod); in trace_send_wr_ud()
/drivers/infiniband/core/
Dmad_rmpp.c120 memcpy(ack, &data->mad_hdr, msg->hdr_len); in format_ack()
122 ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in format_ack()
139 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
165 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
193 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in ack_ds_ack()
226 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in nack_recv()
284 struct ib_mad_hdr *mad_hdr; in create_rmpp_recv() local
312 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv()
313 rmpp_recv->tid = mad_hdr->tid; in create_rmpp_recv()
316 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv()
[all …]
Dmad.c181 return ((mad->mad_hdr.method & IB_MGMT_METHOD_RESP) || in ib_response_mad()
182 (mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) || in ib_response_mad()
183 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) && in ib_response_mad()
184 (mad->mad_hdr.attr_mod & IB_BM_ATTR_MOD_RESP))); in ib_response_mad()
1574 hi_tid = be64_to_cpu(mad->mad_hdr.tid) >> 32; in find_mad_agent()
1593 if (mad->mad_hdr.class_version >= MAX_MGMT_VERSION) in find_mad_agent()
1595 if (!is_vendor_class(mad->mad_hdr.mgmt_class)) { in find_mad_agent()
1597 mad->mad_hdr.class_version].class; in find_mad_agent()
1600 if (convert_mgmt_class(mad->mad_hdr.mgmt_class) >= in find_mad_agent()
1604 mad->mad_hdr.mgmt_class)]; in find_mad_agent()
[all …]
Dsa_query.c568 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; in init_mad()
569 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in init_mad()
570 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; in init_mad()
573 mad->mad_hdr.tid = in init_mad()
709 mad->mad_hdr.method = IB_MGMT_METHOD_GET; in ib_sa_path_rec_get()
710 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get()
831 mad->mad_hdr.method = method; in ib_sa_service_rec_query()
832 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query()
923 mad->mad_hdr.method = method; in ib_sa_mcmember_rec_query()
924 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in ib_sa_mcmember_rec_query()
[all …]
Dsysfs.c341 in_mad->mad_hdr.base_version = 1; in show_pma_counter()
342 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in show_pma_counter()
343 in_mad->mad_hdr.class_version = 1; in show_pma_counter()
344 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in show_pma_counter()
345 in_mad->mad_hdr.attr_id = cpu_to_be16(0x12); /* PortCounters */ in show_pma_counter()
Duser_mad.c289 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
502 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
503 if (!ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class)) { in ib_umad_write()
552 rmpp_mad->mad_hdr.tid = *tid; in ib_umad_write()
Dcm.c3390 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler()
3432 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
/drivers/infiniband/hw/ipath/
Dipath_mad.c800 if (pmp->mad_hdr.attr_mod != 0) in recv_pma_get_classportinfo()
801 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_classportinfo()
841 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portsamplescontrol()
843 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portsamplescontrol()
888 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_set_portsamplescontrol()
890 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_set_portsamplescontrol()
1050 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portcounters()
1052 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portcounters()
1136 if (pmp->mad_hdr.attr_mod != 0 || in recv_pma_get_portcounters_ext()
1138 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in recv_pma_get_portcounters_ext()
[all …]
/drivers/infiniband/hw/qib/
Dqib_mad.c1135 if (pmp->mad_hdr.attr_mod != 0) in pma_get_classportinfo()
1136 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_classportinfo()
1170 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) { in pma_get_portsamplescontrol()
1171 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portsamplescontrol()
1206 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) { in pma_set_portsamplescontrol()
1207 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_portsamplescontrol()
1437 if (pmp->mad_hdr.attr_mod != 0 || port_select != port) in pma_get_portcounters()
1438 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portcounters()
1511 u32 port_select = be32_to_cpu(pmp->mad_hdr.attr_mod) & 0xFF; in pma_get_portcounters_cong()
1520 pmp->mad_hdr.status |= IB_SMP_UNSUP_METH_ATTR; in pma_get_portcounters_cong()
[all …]
/drivers/infiniband/ulp/srpt/
Dib_srpt.c290 mad->mad_hdr.status = 0; in srpt_get_class_port_info()
314 mad->mad_hdr.status = 0; in srpt_get_iou()
333 mad->mad_hdr.status in srpt_get_ioc()
339 mad->mad_hdr.status in srpt_get_ioc()
365 mad->mad_hdr.status = 0; in srpt_get_ioc()
382 mad->mad_hdr.status in srpt_get_svc_entries()
388 mad->mad_hdr.status in srpt_get_svc_entries()
402 mad->mad_hdr.status = 0; in srpt_get_svc_entries()
418 attr_id = be16_to_cpu(rq_mad->mad_hdr.attr_id); in srpt_mgmt_method_get()
427 slot = be32_to_cpu(rq_mad->mad_hdr.attr_mod); in srpt_mgmt_method_get()
[all …]
Dib_dm_mad.h79 struct ib_mad_hdr mad_hdr; member