/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mad.c | 42 const void *in_mad, void *response_mad) in mlx5_MAD_IFC() argument 54 return mlx5_core_mad_ifc(dev->mdev, in_mad, response_mad, op_modifier, port); in mlx5_MAD_IFC() 59 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_mad() argument 66 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) in process_mad() 69 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in process_mad() 70 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in process_mad() 71 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in process_mad() 72 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in process_mad() 73 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in process_mad() 78 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in process_mad() [all …]
|
H A D | mlx5_ib.h | 903 const void *in_mad, void *response_mad);
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mad.c | 210 const struct ib_mad *in_mad = (const struct ib_mad *)in; in mthca_process_mad() local 213 if (WARN_ON_ONCE(in_mad_size != sizeof(*in_mad) || in mthca_process_mad() 218 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && in mthca_process_mad() 220 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad() 230 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mthca_process_mad() 231 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mthca_process_mad() 232 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in mthca_process_mad() 233 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in mthca_process_mad() 234 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in mthca_process_mad() 241 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad() [all …]
|
H A D | mthca_provider.c | 63 struct ib_smp *in_mad = NULL; in mthca_query_device() local 71 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device() 73 if (!in_mad || !out_mad) in mthca_query_device() 80 init_query_mad(in_mad); in mthca_query_device() 81 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device() 84 1, NULL, NULL, in_mad, out_mad); in mthca_query_device() 132 kfree(in_mad); in mthca_query_device() 140 struct ib_smp *in_mad = NULL; in mthca_query_port() local 144 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port() 146 if (!in_mad || !out_mad) in mthca_query_port() [all …]
|
H A D | mthca_cmd.h | 316 const void *in_mad, void *response_mad);
|
H A D | mthca_cmd.c | 1867 const void *in_mad, void *response_mad) in mthca_MAD_IFC() argument 1895 memcpy(inbox, in_mad, 256); in mthca_MAD_IFC()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mad.c | 109 const void *in_mad, void *response_mad) in mlx4_MAD_IFC() argument 128 memcpy(inbox, in_mad, 256); in mlx4_MAD_IFC() 766 const struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument 779 in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method, in ib_process_mad() 780 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad() 793 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad() 794 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad() 798 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad() 799 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad() 800 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad() [all …]
|
H A D | mlx4_ib_main.c | 443 struct ib_smp *in_mad = NULL; in mlx4_ib_query_device() local 468 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mlx4_ib_query_device() 470 if (!in_mad || !out_mad) in mlx4_ib_query_device() 473 init_query_mad(in_mad); in mlx4_ib_query_device() 474 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device() 477 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device() 577 kfree(in_mad); in mlx4_ib_query_device() 595 struct ib_smp *in_mad = NULL; in ib_link_query_port() local 601 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in ib_link_query_port() 603 if (!in_mad || !out_mad) in ib_link_query_port() [all …]
|
H A D | mlx4_ib.h | 774 const void *in_mad, void *response_mad);
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_sysfs.c | 469 struct ib_mad *in_mad; in get_perf_mad() local 478 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in get_perf_mad() 480 if (!in_mad || !out_mad) { in get_perf_mad() 485 in_mad->mad_hdr.base_version = 1; in get_perf_mad() 486 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad() 487 in_mad->mad_hdr.class_version = 1; in get_perf_mad() 488 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in get_perf_mad() 489 in_mad->mad_hdr.attr_id = attr; in get_perf_mad() 492 in_mad->data[41] = port_num; /* PortSelect field */ in get_perf_mad() 496 (const struct ib_mad_hdr *)in_mad, mad_size, in get_perf_mad() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | ib_verbs.h | 350 const struct ib_mad_hdr *in_mad, size_t in_mad_size,
|
H A D | ib_verbs.c | 5489 const struct ib_mad_hdr *in_mad, size_t in_mad_size, in bnxt_re_process_mad() argument
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | provider.c | 83 const struct ib_mad_hdr *in_mad, in c4iw_process_mad() argument
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_cmd.c | 851 struct ib_smp *in_mad = (struct ib_smp *)(inbox->buf); in query_pkey_block() local 859 in_mad->attr_mod = cpu_to_be32(index / 32); in query_pkey_block()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_verbs.h | 2332 const struct ib_mad_hdr *in_mad,
|