/linux-6.12.1/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 struct ib_grh *in_grh, const void *in_mad, in mlx5_MAD_IFC() argument 61 if (!can_do_mad_ifc(dev, port, (struct ib_mad *)in_mad)) in mlx5_MAD_IFC() 72 return mlx5_cmd_mad_ifc(dev, in_mad, response_mad, op_modifier, in mlx5_MAD_IFC() 210 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_pma_cmd() argument 237 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd() 246 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd() 359 struct ib_smp *in_mad; in mlx5_query_ext_port_caps() local [all …]
|
/linux-6.12.1/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 56 struct ib_smp *in_mad; in mthca_query_device() local 64 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device() 66 if (!in_mad || !out_mad) in mthca_query_device() 73 ib_init_query_mad(in_mad); in mthca_query_device() 74 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device() 77 1, NULL, NULL, in_mad, out_mad); in mthca_query_device() 116 kfree(in_mad); in mthca_query_device() 124 struct ib_smp *in_mad; in mthca_query_port() local 128 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port() 130 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 | 1864 const void *in_mad, void *response_mad) in mthca_MAD_IFC() argument 1892 memcpy(inbox, in_mad, 256); in mthca_MAD_IFC()
|
/linux-6.12.1/drivers/infiniband/hw/mlx4/ |
D | main.c | 440 struct ib_smp *in_mad; in mlx4_ib_query_device() local 465 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mlx4_ib_query_device() 468 if (!in_mad || !out_mad) in mlx4_ib_query_device() 471 ib_init_query_mad(in_mad); in mlx4_ib_query_device() 472 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device() 475 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device() 640 kfree(in_mad); in mlx4_ib_query_device() 658 struct ib_smp *in_mad; in ib_link_query_port() local 664 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in ib_link_query_port() 666 if (!in_mad || !out_mad) in ib_link_query_port() [all …]
|
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() 824 const struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument 832 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad() 833 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad() 837 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad() 838 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad() 839 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad() 840 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in ib_process_mad() 841 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in ib_process_mad() [all …]
|
D | mlx4_ib.h | 813 const void *in_mad, void *response_mad);
|
/linux-6.12.1/drivers/infiniband/core/ |
D | sysfs.c | 561 struct ib_mad *in_mad; in get_perf_mad() local 570 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in get_perf_mad() 572 if (!in_mad || !out_mad) { in get_perf_mad() 577 in_mad->mad_hdr.base_version = 1; in get_perf_mad() 578 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in get_perf_mad() 579 in_mad->mad_hdr.class_version = 1; in get_perf_mad() 580 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in get_perf_mad() 581 in_mad->mad_hdr.attr_id = attr; in get_perf_mad() 584 in_mad->data[41] = port_num; /* PortSelect field */ in get_perf_mad() 587 in_mad, out_mad, &mad_size, in get_perf_mad() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/hfi1/ |
D | mad.c | 4450 const struct opa_mad *in_mad, in hfi1_pkey_validation_pma() argument 4456 if (!is_local_mad(ibp, in_mad, in_wc) && in hfi1_pkey_validation_pma() 4470 u32 port, const struct opa_mad *in_mad, in process_subn_opa() argument 4481 *out_mad = *in_mad; in process_subn_opa() 4575 u32 port, const struct ib_mad *in_mad, in process_subn() argument 4582 *out_mad = *in_mad; in process_subn() 4602 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn() 4634 const struct ib_mad *in_mad, in process_perf() argument 4642 *out_mad = *in_mad; in process_perf() 4696 const struct opa_mad *in_mad, in process_perf_opa() argument [all …]
|
D | verbs.h | 291 const struct ib_mad *in_mad, struct ib_mad *out_mad,
|
/linux-6.12.1/drivers/infiniband/hw/qedr/ |
D | verbs.h | 96 const struct ib_grh *in_grh, const struct ib_mad *in_mad,
|
/linux-6.12.1/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() 2292 u8 port, const struct ib_mad *in_mad, in process_cc() argument 2296 *out_mad = *in_mad; in process_cc()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 843 struct ib_smp *in_mad = (struct ib_smp *)(inbox->buf); in query_pkey_block() local 851 in_mad->attr_mod = cpu_to_be32(index / 32); in query_pkey_block()
|
/linux-6.12.1/include/rdma/ |
D | ib_verbs.h | 2350 const struct ib_mad *in_mad, struct ib_mad *out_mad,
|