Home
last modified time | relevance | path

Searched refs:mgmt_class (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c114 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
115 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
153 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
154 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
168 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
221 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mthca_process_mad()
222 in->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mthca_process_mad()
236 } else if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in mthca_process_mad()
237 in->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS1 || in mthca_process_mad()
238 in->mad_hdr.mgmt_class == MTHCA_VENDOR_CLASS2) { in mthca_process_mad()
[all …]
/linux/drivers/infiniband/core/
H A Dmad.c104 u8 mgmt_class);
144 static inline u8 convert_mgmt_class(u8 mgmt_class) in convert_mgmt_class() argument
147 return mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE ? in convert_mgmt_class()
148 0 : mgmt_class; in convert_mgmt_class()
163 static int vendor_class_index(u8 mgmt_class) in vendor_class_index() argument
165 return mgmt_class - IB_MGMT_CLASS_VENDOR_RANGE2_START; in vendor_class_index()
168 static int is_vendor_class(u8 mgmt_class) in is_vendor_class() argument
170 if ((mgmt_class < IB_MGMT_CLASS_VENDOR_RANGE2_START) || in is_vendor_class()
171 (mgmt_class > IB_MGMT_CLASS_VENDOR_RANGE2_END)) in is_vendor_class()
208 ((hdr->mgmt_class == IB_MGMT_CLASS_BM) && in ib_response_mad()
[all …]
H A Duser_mad.c341 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); in copy_recv_mad()
485 (hdr->mgmt_class != sent_hdr->mgmt_class)) in is_duplicate()
578 hdr_len = ib_get_mad_data_offset(rmpp_mad_hdr->mad_hdr.mgmt_class); in ib_umad_write()
580 if (ib_is_mad_class_rmpp(rmpp_mad_hdr->mad_hdr.mgmt_class) in ib_umad_write()
636 && ib_is_mad_class_rmpp(rmpp_mad_hdr->mad_hdr.mgmt_class) in ib_umad_write()
734 if (ureq.mgmt_class) { in ib_umad_reg_agent()
736 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent()
754 ureq.mgmt_class ? &req : NULL, in ib_umad_reg_agent()
847 if (ureq.mgmt_class) { in ib_umad_reg_agent2()
849 req.mgmt_class = ureq.mgmt_class; in ib_umad_reg_agent2()
[all …]
H A Dmad_rmpp.c67 u8 mgmt_class; member
136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
312 rmpp_recv->mgmt_class = mad_hdr->mgmt_class; in create_rmpp_recv()
333 rmpp_recv->mgmt_class == mad_hdr->mgmt_class && in find_rmpp_recv()
436 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len()
857 rmpp_recv->mgmt_class != mad_hdr->mgmt_class || in init_newwin()
H A Dsysfs.c578 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad()
H A Dsa_query.c1327 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in init_mad()
/linux/include/trace/events/
H A Dib_mad.h30 __field(u8, mgmt_class)
68 __entry->mgmt_class =
69 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
96 __entry->base_version, __entry->mgmt_class,
127 __field(u8, mgmt_class)
155 __entry->mgmt_class =
156 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
177 __entry->base_version, __entry->mgmt_class,
190 __field(u8, mgmt_class)
214 __entry->mgmt_class = mad_hdr->mgmt_class;
[all …]
H A Dib_umad.h39 __field(u8, mgmt_class)
75 __entry->mgmt_class = mad_hdr->mgmt_class;
100 __entry->base_version, __entry->mgmt_class,
/linux/samples/bpf/
H A Dibumad_kern.c64 u8 mgmt_class; member
81 u8 class = ctx->mgmt_class; in on_ib_umad_read_recv()
101 u8 class = ctx->mgmt_class; in on_ib_umad_read_send()
121 u8 class = ctx->mgmt_class; in on_ib_umad_write()
/linux/include/rdma/
H A Dopa_smi.h24 u8 mgmt_class; member
102 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data()
110 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data_size()
118 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_header_size()
H A Dib_mad.h139 u8 mgmt_class; member
648 u8 mgmt_class; member
786 int ib_is_mad_class_rmpp(u8 mgmt_class);
796 int ib_get_mad_data_offset(u8 mgmt_class);
H A Dib_smi.h20 u8 mgmt_class; member
154 mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in ib_init_query_mad()
/linux/include/uapi/rdma/
H A Dib_user_mad.h189 __u8 mgmt_class; member
224 __u8 mgmt_class; member
/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c231 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in smp_snoop()
232 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in smp_snoop()
372 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in node_desc_override()
373 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in node_desc_override()
386 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; in forward_trap()
707 if (mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_CM) { 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()
803 "for slave:%d\n", mad->mad_hdr.mgmt_class, slave); in mlx4_ib_demux_mad()
837 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
[all …]
H A Dmcg.c287 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
328 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_reply_to_slave()
/linux/drivers/infiniband/hw/qib/
H A Dqib_mad.h121 u8 mgmt_class; member
H A 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()
94 smp->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in qib_send_trap()
184 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in qib_bad_mkey()
2372 switch (in->mad_hdr.mgmt_class) { in qib_process_mad()
H A Dqib_ud.c500 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in qib_ud_rcv()
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c261 if (in->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT) { in ocrdma_process_mad()
/linux/drivers/infiniband/hw/hfi1/
H A Dud.c746 if (smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE && in opa_smp_check()
747 smp->mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED) { in opa_smp_check()
911 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in hfi1_ud_rcv()
H A Dmad.c46 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
312 smp->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in send_trap()
455 if (mad->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in bad_mkey()
4359 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in is_local_mad()
4797 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_opa_mad()
4838 switch (in_mad->mad_hdr.mgmt_class) { in hfi1_process_ib_mad()
/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema.c809 trap_mad->mad_hdr.mgmt_class = OPA_MGMT_CLASS_INTEL_EMA; in opa_vnic_vema_send_trap()
925 .mgmt_class = OPA_MGMT_CLASS_INTEL_EMA, in vema_register()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c919 smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
1010 if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
1013 slave, smp->mgmt_class, smp->method, in mlx4_MAD_IFC_wrapper()
H A Dport.c2052 inmad->mgmt_class = 0x1; in mlx4_get_module_id()
2170 inmad->mgmt_class = 0x1; in mlx4_get_module_info()
/linux/include/linux/mlx4/
H A Ddevice.h1006 u8 mgmt_class; member

12