/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | mad.c | 46 struct ib_mad *in_mad) in can_do_mad_ifc() argument 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() 56 const void *in_mad, void *response_mad) in mlx5_MAD_IFC() argument 60 if (!can_do_mad_ifc(dev, port, (struct ib_mad *)in_mad)) in mlx5_MAD_IFC() 71 return mlx5_core_mad_ifc(dev->mdev, in_mad, response_mad, op_modifier, port); in mlx5_MAD_IFC() 76 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_mad() argument 83 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) in process_mad() 86 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in process_mad() 87 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in process_mad() [all …]
|
D | mlx5_ib.h | 1005 const void *in_mad, void *response_mad);
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 211 const struct ib_mad *in_mad = (const struct ib_mad *)in; in mthca_process_mad() local 214 if (WARN_ON_ONCE(in_mad_size != sizeof(*in_mad) || in mthca_process_mad() 219 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && in mthca_process_mad() 221 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad() 231 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in mthca_process_mad() 232 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in mthca_process_mad() 233 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in mthca_process_mad() 234 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in mthca_process_mad() 235 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in mthca_process_mad() 242 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad() [all …]
|
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() 133 kfree(in_mad); in mthca_query_device() 141 struct ib_smp *in_mad = NULL; in mthca_query_port() local 145 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port() 147 if (!in_mad || !out_mad) in mthca_query_port() [all …]
|
D | mthca_cmd.h | 316 const void *in_mad, void *response_mad);
|
D | mthca_cmd.c | 1870 const void *in_mad, void *response_mad) in mthca_MAD_IFC() argument 1898 memcpy(inbox, in_mad, 256); in mthca_MAD_IFC()
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | mad.c | 111 const void *in_mad, void *response_mad) in mlx4_MAD_IFC() argument 130 memcpy(inbox, in_mad, 256); in mlx4_MAD_IFC() 804 const struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument 817 in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method, in ib_process_mad() 818 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad() 831 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad() 832 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad() 836 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad() 837 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad() 838 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad() [all …]
|
D | main.c | 426 struct ib_smp *in_mad = NULL; in mlx4_ib_query_device() local 451 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mlx4_ib_query_device() 454 if (!in_mad || !out_mad) in mlx4_ib_query_device() 457 init_query_mad(in_mad); in mlx4_ib_query_device() 458 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device() 461 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device() 630 kfree(in_mad); in mlx4_ib_query_device() 648 struct ib_smp *in_mad = NULL; in ib_link_query_port() local 654 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in ib_link_query_port() 656 if (!in_mad || !out_mad) in ib_link_query_port() [all …]
|
D | mlx4_ib.h | 797 const void *in_mad, void *response_mad);
|
/Linux-v4.19/drivers/infiniband/core/ |
D | sysfs.c | 459 struct ib_mad *in_mad; in get_perf_mad() local 468 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in get_perf_mad() 470 if (!in_mad || !out_mad) { in get_perf_mad() 475 in_mad->mad_hdr.base_version = 1; in get_perf_mad() 476 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad() 477 in_mad->mad_hdr.class_version = 1; in get_perf_mad() 478 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in get_perf_mad() 479 in_mad->mad_hdr.attr_id = attr; in get_perf_mad() 482 in_mad->data[41] = port_num; /* PortSelect field */ in get_perf_mad() 486 (const struct ib_mad_hdr *)in_mad, mad_size, in get_perf_mad() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 268 const struct ib_mad *in_mad = (const struct ib_mad *)in; in ocrdma_process_mad() local 271 if (WARN_ON_ONCE(in_mad_size != sizeof(*in_mad) || in ocrdma_process_mad() 275 switch (in_mad->mad_hdr.mgmt_class) { in ocrdma_process_mad()
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | mad.c | 4503 const struct opa_mad *in_mad, in hfi1_pkey_validation_pma() argument 4509 if (!is_local_mad(ibp, in_mad, in_wc) && in hfi1_pkey_validation_pma() 4523 u8 port, const struct opa_mad *in_mad, in process_subn_opa() argument 4534 *out_mad = *in_mad; in process_subn_opa() 4628 u8 port, const struct ib_mad *in_mad, in process_subn() argument 4635 *out_mad = *in_mad; in process_subn() 4655 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn() 4687 const struct ib_mad *in_mad, in process_perf() argument 4695 *out_mad = *in_mad; in process_perf() 4749 const struct opa_mad *in_mad, in process_perf_opa() argument [all …]
|
D | verbs.h | 268 const struct ib_mad_hdr *in_mad, size_t in_mad_size,
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 1861 u8 port, const struct ib_mad *in_mad, in process_subn() argument 1869 *out_mad = *in_mad; in process_subn() 1887 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn() 2013 const struct ib_mad *in_mad, in process_perf() argument 2019 *out_mad = *in_mad; in process_perf() 2306 u8 port, const struct ib_mad *in_mad, in process_cc() argument 2313 *out_mad = *in_mad; in process_cc() 2415 const struct ib_mad *in_mad = (const struct ib_mad *)in; in qib_process_mad() local 2418 if (WARN_ON_ONCE(in_mad_size != sizeof(*in_mad) || in qib_process_mad() 2422 switch (in_mad->mad_hdr.mgmt_class) { in qib_process_mad() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qedr/ |
D | verbs.h | 101 const struct ib_mad_hdr *in_mad,
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 850 struct ib_smp *in_mad = (struct ib_smp *)(inbox->buf); in query_pkey_block() local 858 in_mad->attr_mod = cpu_to_be32(index / 32); in query_pkey_block()
|
/Linux-v4.19/include/rdma/ |
D | ib_verbs.h | 2461 const struct ib_mad_hdr *in_mad,
|