/linux-6.3-rc2/drivers/infiniband/hw/mthca/ |
A D | mthca_mad.c | 116 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { in smp_snoop() 156 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override() 223 if (in->mad_hdr.method != IB_MGMT_METHOD_GET && in mthca_process_mad() 224 in->mad_hdr.method != IB_MGMT_METHOD_SET && in mthca_process_mad() 232 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad() 239 if (in->mad_hdr.method != IB_MGMT_METHOD_GET && in mthca_process_mad() 240 in->mad_hdr.method != IB_MGMT_METHOD_SET) in mthca_process_mad() 246 in->mad_hdr.method == IB_MGMT_METHOD_SET && in mthca_process_mad() 247 in->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in mthca_process_mad() 261 if (!out->mad_hdr.status) { in mthca_process_mad() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | ib_umad.h | 18 struct ib_mad_hdr *mad_hdr), 19 TP_ARGS(file, umad_hdr, mad_hdr), 77 __entry->method = mad_hdr->method; 80 __entry->tid = mad_hdr->tid; 81 __entry->attr_id = mad_hdr->attr_id; 111 struct ib_mad_hdr *mad_hdr), 112 TP_ARGS(file, umad_hdr, mad_hdr)); 116 struct ib_mad_hdr *mad_hdr), 117 TP_ARGS(file, umad_hdr, mad_hdr)); 121 struct ib_mad_hdr *mad_hdr), [all …]
|
A D | ib_mad.h | 185 struct ib_mad_hdr *mad_hdr), 186 TP_ARGS(qp_info, wc, mad_hdr), 213 __entry->base_version = mad_hdr->base_version; 214 __entry->mgmt_class = mad_hdr->mgmt_class; 215 __entry->class_version = mad_hdr->class_version; 216 __entry->method = mad_hdr->method; 217 __entry->status = mad_hdr->status; 218 __entry->class_specific = mad_hdr->class_specific; 219 __entry->tid = mad_hdr->tid; 220 __entry->attr_id = mad_hdr->attr_id; [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx4/ |
A D | cm.c | 87 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 102 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 117 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id() 309 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 310 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 311 mad->mad_hdr.attr_id == CM_MRA_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 341 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID) in mlx4_ib_multiplex_cm_handler() 435 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_demux_cm_handler() 463 if (mad->mad_hdr.attr_id == CM_REJ_ATTR_ID && in mlx4_ib_demux_cm_handler() 478 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID || in mlx4_ib_demux_cm_handler() [all …]
|
A D | mcg.c | 286 mad.mad_hdr.base_version = 1; in send_leave_to_wire() 288 mad.mad_hdr.class_version = 2; in send_leave_to_wire() 290 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire() 295 mad.mad_hdr.attr_mod = cpu_to_be32(0); in send_leave_to_wire() 327 mad.mad_hdr.base_version = 1; in send_reply_to_slave() 329 mad.mad_hdr.class_version = 2; in send_reply_to_slave() 333 mad.mad_hdr.tid = req_sa_mad->mad_hdr.tid; in send_reply_to_slave() 890 switch (mad->mad_hdr.method) { in mlx4_ib_mcg_demux_handler() 898 __be64 tid = mad->mad_hdr.tid; in mlx4_ib_mcg_demux_handler() 926 port, mad->mad_hdr.method); in mlx4_ib_mcg_demux_handler() [all …]
|
A D | mad.c | 233 mad->mad_hdr.method == IB_MGMT_METHOD_SET) in smp_snoop() 234 switch (mad->mad_hdr.attr_id) { in smp_snoop() 746 if (mad->mad_hdr.method & 0x80) { in mlx4_ib_demux_mad() 747 slave_id = (u8 *) &mad->mad_hdr.tid; in mlx4_ib_demux_mad() 770 switch (mad->mad_hdr.mgmt_class) { in mlx4_ib_demux_mad() 780 slave, mad->mad_hdr.mgmt_class, in mlx4_ib_demux_mad() 781 mad->mad_hdr.method); in mlx4_ib_demux_mad() 874 if (!out_mad->mad_hdr.status) { in ib_process_mad() 973 in_mad->mad_hdr.attr_id); in iboe_process_mad() 1512 switch (tunnel->mad.mad_hdr.method) { in mlx4_ib_multiplex_mad() [all …]
|
/linux-6.3-rc2/drivers/infiniband/ulp/opa_vnic/ |
A D | opa_vnic_vema.c | 339 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_veswport_info() 362 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_entries() 374 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_entries() 397 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_mac_entries() 406 rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; in vema_set_mac_entries() 431 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_set_delete_vesw() 465 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_mac_list() 502 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_summary_counters() 524 rsp_mad->mad_hdr.status = OPA_VNIC_INVAL_ATTR; in vema_get_error_counters() 561 rsp_mad->mad_hdr.status = OPA_VNIC_UNSUP_ATTR; in vema_get() [all …]
|
A D | opa_vnic_encap.h | 475 struct ib_mad_hdr mad_hdr; member 517 struct ib_mad_hdr mad_hdr; member
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | mad_rmpp.c | 117 memcpy(ack, &data->mad_hdr, msg->hdr_len); in format_ack() 119 ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; in format_ack() 280 struct ib_mad_hdr *mad_hdr; in create_rmpp_recv() local 308 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv() 309 rmpp_recv->tid = mad_hdr->tid; in create_rmpp_recv() 312 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv() 314 rmpp_recv->method = mad_hdr->method; in create_rmpp_recv() 327 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in find_rmpp_recv() local 330 if (rmpp_recv->tid == mad_hdr->tid && in find_rmpp_recv() 335 rmpp_recv->method == mad_hdr->method) in find_rmpp_recv() [all …]
|
A D | agent.c | 81 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, in agent_send_response() argument 109 if (opa && mad_hdr->base_version != OPA_MGMT_BASE_VERSION) in agent_send_response() 116 mad_hdr->base_version); in agent_send_response() 122 memcpy(send_buf->mad, mad_hdr, resp_mad_len); in agent_send_response()
|
A D | mad.c | 1536 if (ib_response_mad(mad_hdr)) { in find_mad_agent() 1566 mad_hdr->class_version].class; in find_mad_agent() 1573 mad_hdr->mgmt_class)]; in find_mad_agent() 1579 mad_hdr->class_version].vendor; in find_mad_agent() 1583 mad_hdr->mgmt_class)]; in find_mad_agent() 1650 const struct ib_mad_hdr *mad_hdr) in is_rmpp_data_mad() argument 1666 rwc->recv_buf.mad->mad_hdr.mgmt_class; in rcv_has_same_class() 1736 const struct ib_mad_hdr *mad_hdr; in ib_find_send_mad() local 1738 mad_hdr = &wc->recv_buf.mad->mad_hdr; in ib_find_send_mad() 1741 if ((wr->tid == mad_hdr->tid) && in ib_find_send_mad() [all …]
|
A D | sa_query.c | 917 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP; in ib_nl_process_good_resolve_rsp() 937 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP; in ib_nl_process_good_resolve_rsp() 1322 mad->mad_hdr.class_version = OPA_SA_CLASS_VERSION; in init_mad() 1324 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; in init_mad() 1325 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; in init_mad() 1329 mad->mad_hdr.tid = in init_mad() 1581 mad->mad_hdr.method = IB_MGMT_METHOD_GET; in ib_sa_path_rec_get() 1686 mad->mad_hdr.method = method; in ib_sa_mcmember_rec_query() 1783 mad->mad_hdr.method = method; in ib_sa_guid_info_rec_query() 1912 mad->mad_hdr.method = IB_MGMT_METHOD_GET; in ib_sa_classport_info_rec_query() [all …]
|
A D | agent.h | 47 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
|
A D | user_mad.c | 329 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad() 343 trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr); in copy_recv_mad() 564 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write() 566 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write() 618 rmpp_mad->mad_hdr.tid = *tid; in ib_umad_write() 622 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
|
A D | sysfs.c | 573 in_mad->mad_hdr.base_version = 1; in get_perf_mad() 574 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad() 575 in_mad->mad_hdr.class_version = 1; in get_perf_mad() 576 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in get_perf_mad() 577 in_mad->mad_hdr.attr_id = attr; in get_perf_mad()
|
A D | cm.c | 4005 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler() 4048 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
|
/linux-6.3-rc2/include/rdma/ |
A D | ib_mad.h | 177 struct ib_mad_hdr mad_hdr; member 182 struct ib_mad_hdr mad_hdr; member 187 struct ib_mad_hdr mad_hdr; member 193 struct ib_mad_hdr mad_hdr; member 199 struct ib_mad_hdr mad_hdr; member 206 struct ib_mad_hdr mad_hdr; member
|
A D | ib_pma.h | 29 struct ib_mad_hdr mad_hdr; member
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/ |
A D | mad.c | 48 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED && in can_do_mad_ifc() 49 in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in can_do_mad_ifc() 198 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd() 207 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd() 252 u8 mgmt_class = in->mad_hdr.mgmt_class; in mlx5_ib_process_mad() 253 u8 method = in->mad_hdr.method; in mlx5_ib_process_mad() 273 if (in->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in mlx5_ib_process_mad() 300 out->mad_hdr.status |= cpu_to_be16(1 << 15); in mlx5_ib_process_mad()
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | mad.c | 2276 struct ib_mad_hdr mad_hdr; member 2568 if (pmp->mad_hdr.attr_mod != 0) in pma_get_opa_classportinfo() 4649 switch (pmp->mad_hdr.method) { in process_perf() 4651 switch (pmp->mad_hdr.attr_id) { in process_perf() 4670 if (pmp->mad_hdr.attr_id) { in process_perf() 4709 *resp_len = sizeof(pmp->mad_hdr); in process_perf_opa() 4711 switch (pmp->mad_hdr.method) { in process_perf_opa() 4713 switch (pmp->mad_hdr.attr_id) { in process_perf_opa() 4741 switch (pmp->mad_hdr.attr_id) { in process_perf_opa() 4797 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_opa_mad() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/qib/ |
A D | qib_mad.c | 1160 if (pmp->mad_hdr.attr_mod != 0) in pma_get_classportinfo() 1161 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_classportinfo() 1198 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portsamplescontrol() 1234 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_set_portsamplescontrol() 1465 pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; in pma_get_portcounters() 2020 if (pmp->mad_hdr.class_version != 1) { in process_perf() 2026 switch (pmp->mad_hdr.method) { in process_perf() 2028 switch (pmp->mad_hdr.attr_id) { in process_perf() 2057 switch (pmp->mad_hdr.attr_id) { in process_perf() 2087 pmp->mad_hdr.status |= IB_SMP_UNSUP_METHOD; in process_perf() [all …]
|
/linux-6.3-rc2/drivers/infiniband/ulp/srpt/ |
A D | ib_dm_mad.h | 79 struct ib_mad_hdr mad_hdr; member
|
A D | ib_srpt.c | 280 mad->mad_hdr.status = 0; in srpt_get_class_port_info() 305 mad->mad_hdr.status = 0; in srpt_get_iou() 328 mad->mad_hdr.status in srpt_get_ioc() 334 mad->mad_hdr.status in srpt_get_ioc() 366 mad->mad_hdr.status = 0; in srpt_get_ioc() 388 mad->mad_hdr.status in srpt_get_svc_entries() 394 mad->mad_hdr.status in srpt_get_svc_entries() 408 mad->mad_hdr.status = 0; in srpt_get_svc_entries() 445 rsp_mad->mad_hdr.status = in srpt_mgmt_method_get() 508 dm_mad->mad_hdr.status = in srpt_mad_recv_handler() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_ah.c | 261 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT) { in ocrdma_process_mad()
|