Home
last modified time | relevance | path

Searched refs:mgmt_class (Results 1 – 23 of 23) 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()
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()
165 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
221 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mthca_process_mad()
222 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mthca_process_mad()
236 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in mthca_process_mad()
237 in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS1 || in mthca_process_mad()
238 in_mad->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS2) { in mthca_process_mad()
[all …]
Dmthca_provider.c55 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad()
/drivers/infiniband/hw/mlx5/
Dmad.c72 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mlx5_ib_process_mad()
73 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mlx5_ib_process_mad()
83 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in mlx5_ib_process_mad()
84 in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS1 || in mlx5_ib_process_mad()
85 in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS2 || in mlx5_ib_process_mad()
86 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) { in mlx5_ib_process_mad()
102 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in mlx5_ib_process_mad()
Dmlx5_ib.h550 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad()
/drivers/infiniband/core/
Dmad.c84 u8 mgmt_class);
121 static inline u8 convert_mgmt_class(u8 mgmt_class) in convert_mgmt_class() argument
124 return mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE ? in convert_mgmt_class()
125 0 : mgmt_class; in convert_mgmt_class()
141 static int vendor_class_index(u8 mgmt_class) in vendor_class_index() argument
143 return mgmt_class - IB_MGMT_CLASS_VENDOR_RANGE2_START; in vendor_class_index()
146 static int is_vendor_class(u8 mgmt_class) in is_vendor_class() argument
148 if ((mgmt_class < IB_MGMT_CLASS_VENDOR_RANGE2_START) || in is_vendor_class()
149 (mgmt_class > IB_MGMT_CLASS_VENDOR_RANGE2_END)) in is_vendor_class()
186 ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_BM) && in ib_response_mad()
[all …]
Duser_mad.c295 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
421 (hdr->mgmt_class != sent_hdr->mgmt_class)) in is_duplicate()
508 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in ib_umad_write()
510 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
564 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) in ib_umad_write()
659 if (ureq.mgmt_class) { in ib_umad_reg_agent()
661 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent()
679 ureq.mgmt_class ? &req : NULL, in ib_umad_reg_agent()
775 if (ureq.mgmt_class) { in ib_umad_reg_agent2()
777 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent2()
[all …]
Dmad_rmpp.c67 u8 mgmt_class; member
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()
316 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv()
336 rmpp_recv->mgmt_class == mad_hdr->mgmt_class && in find_rmpp_recv()
437 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len()
850 rmpp_recv->mgmt_class != mad_hdr->mgmt_class || in init_newwin()
Dsysfs.c342 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in show_pma_counter()
Dsa_query.c610 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in init_mad()
Dcm.c1002 hdr->mgmt_class = IB_MGMT_CLASS_CM; in cm_format_mad_hdr()
3763 .mgmt_class = IB_MGMT_CLASS_CM, in cm_add_one()
/drivers/infiniband/hw/mlx4/
Dmad.c234 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
235 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
349 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
350 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
361 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
629 if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_CM) { in mlx4_ib_demux_mad()
673 switch (mad->mad_hdr.mgmt_class) { in mlx4_ib_demux_mad()
683 slave, mad->mad_hdr.mgmt_class, in mlx4_ib_demux_mad()
706 "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); in mlx4_ib_demux_mad()
739 in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method, in ib_process_mad()
[all …]
Dmcg.c282 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
323 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_reply_to_slave()
Dmain.c91 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in init_query_mad()
/drivers/infiniband/hw/ehca/
Dehca_sqp.c229 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_PERF_MGMT) in ehca_process_mad()
Dehca_reqs.c130 mad_hdr->mgmt_class, in trace_send_wr_ud()
/drivers/infiniband/hw/qib/
Dqib_mad.h252 u8 mgmt_class; member
Dqib_mad.c47 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
59 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply_failure()
92 smp->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in qib_send_trap()
185 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in qib_bad_mkey()
2410 switch (in_mad->mad_hdr.mgmt_class) { in qib_process_mad()
Dqib_ud.c505 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in qib_ud_rcv()
Dqib_iba7322.c5511 smp->mgmt_class = IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE; in try_7322_ipg()
/drivers/infiniband/hw/ipath/
Dipath_mad.c53 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
1498 switch (in_mad->mad_hdr.mgmt_class) { in ipath_process_mad()
Dipath_ud.c469 if (smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ipath_ud_rcv()
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c747 smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
822 if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
825 slave, smp->method, smp->mgmt_class, in mlx4_MAD_IFC_wrapper()
/drivers/infiniband/ulp/srpt/
Dib_srpt.c556 reg_req.mgmt_class = IB_MGMT_CLASS_DEVICE_MGMT; in srpt_refresh_port()