Home
last modified time | relevance | path

Searched refs:in_mad (Results 1 – 22 of 22) sorted by relevance

/drivers/infiniband/hw/mthca/
Dmthca_mad.c200 struct ib_mad *in_mad, in mthca_process_mad() argument
209 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && in mthca_process_mad()
211 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad()
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()
223 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in mthca_process_mad()
224 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in mthca_process_mad()
225 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in mthca_process_mad()
232 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad()
233 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == in mthca_process_mad()
[all …]
Dmthca_provider.c63 struct ib_smp *in_mad = NULL; in mthca_query_device() local
68 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device()
70 if (!in_mad || !out_mad) in mthca_query_device()
77 init_query_mad(in_mad); in mthca_query_device()
78 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
81 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
128 kfree(in_mad); in mthca_query_device()
136 struct ib_smp *in_mad = NULL; in mthca_query_port() local
140 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port()
142 if (!in_mad || !out_mad) in mthca_query_port()
[all …]
Dmthca_cmd.h316 void *in_mad, void *response_mad);
Dmthca_dev.h581 struct ib_mad *in_mad,
Dmthca_cmd.c1862 void *in_mad, void *response_mad) in mthca_MAD_IFC() argument
1890 memcpy(inbox, in_mad, 256); in mthca_MAD_IFC()
/drivers/infiniband/hw/mlx4/
Dmain.c95 struct ib_smp *in_mad = NULL; in mlx4_ib_query_device() local
99 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mlx4_ib_query_device()
101 if (!in_mad || !out_mad) in mlx4_ib_query_device()
104 init_query_mad(in_mad); in mlx4_ib_query_device()
105 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx4_ib_query_device()
108 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
184 kfree(in_mad); in mlx4_ib_query_device()
202 struct ib_smp *in_mad = NULL; in ib_link_query_port() local
208 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in ib_link_query_port()
210 if (!in_mad || !out_mad) in ib_link_query_port()
[all …]
Dmad.c107 void *in_mad, void *response_mad) in mlx4_MAD_IFC() argument
126 memcpy(inbox, in_mad, 256); in mlx4_MAD_IFC()
642 struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument
655 in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.method, in ib_process_mad()
656 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad()
669 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad()
670 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad()
674 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
675 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad()
676 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad()
[all …]
Dmlx4_ib.h645 void *in_mad, void *response_mad);
648 struct ib_mad *in_mad, struct ib_mad *out_mad);
/drivers/infiniband/hw/ehca/
Dehca_sqp.c144 struct ib_mad *in_mad, struct ib_mad *out_mad) in ehca_process_perf() argument
146 struct ib_perf *in_perf = (struct ib_perf *)in_mad; in ehca_process_perf()
158 *out_mad = *in_mad; in ehca_process_perf()
221 struct ib_mad *in_mad, struct ib_mad *out_mad) in ehca_process_mad() argument
229 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_PERF_MGMT) in ehca_process_mad()
234 in_mad, out_mad); in ehca_process_mad()
Dehca_iverbs.h192 struct ib_mad *in_mad,
/drivers/infiniband/core/
Dsysfs.c327 struct ib_mad *in_mad = NULL; in show_pma_counter() local
334 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in show_pma_counter()
336 if (!in_mad || !out_mad) { in show_pma_counter()
341 in_mad->mad_hdr.base_version = 1; in show_pma_counter()
342 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; in show_pma_counter()
343 in_mad->mad_hdr.class_version = 1; in show_pma_counter()
344 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; in show_pma_counter()
345 in_mad->mad_hdr.attr_id = cpu_to_be16(0x12); /* PortCounters */ in show_pma_counter()
347 in_mad->data[41] = p->port_num; /* PortSelect field */ in show_pma_counter()
350 p->port_num, NULL, NULL, in_mad, out_mad) & in show_pma_counter()
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.h41 struct ib_mad *in_mad, struct ib_mad *out_mad);
Docrdma_ah.c169 struct ib_mad *in_mad, struct ib_mad *out_mad) in ocrdma_process_mad() argument
/drivers/infiniband/hw/ipath/
Dipath_mad.c1254 u8 port_num, struct ib_mad *in_mad, in process_subn() argument
1261 *out_mad = *in_mad; in process_subn()
1386 struct ib_mad *in_mad, in process_perf() argument
1392 *out_mad = *in_mad; in process_perf()
1488 struct ib_mad *in_mad, struct ib_mad *out_mad) in ipath_process_mad() argument
1492 switch (in_mad->mad_hdr.mgmt_class) { in ipath_process_mad()
1496 in_mad, out_mad); in ipath_process_mad()
1499 ret = process_perf(ibdev, port_num, in_mad, out_mad); in ipath_process_mad()
Dipath_verbs.h706 struct ib_mad *in_mad, struct ib_mad *out_mad);
/drivers/infiniband/hw/qib/
Dqib_mad.c1829 u8 port, struct ib_mad *in_mad, in process_subn() argument
1837 *out_mad = *in_mad; in process_subn()
1855 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in process_subn()
1981 struct ib_mad *in_mad, in process_perf() argument
1987 *out_mad = *in_mad; in process_perf()
2274 u8 port, struct ib_mad *in_mad, in process_cc() argument
2281 *out_mad = *in_mad; in process_cc()
2376 struct ib_mad *in_mad, struct ib_mad *out_mad) in qib_process_mad() argument
2382 switch (in_mad->mad_hdr.mgmt_class) { in qib_process_mad()
2385 ret = process_subn(ibdev, mad_flags, port, in_mad, out_mad); in qib_process_mad()
[all …]
Dqib_verbs.h861 struct ib_mad *in_mad, struct ib_mad *out_mad);
/drivers/infiniband/hw/cxgb4/
Dprovider.c84 struct ib_grh *in_grh, struct ib_mad *in_mad, in c4iw_process_mad() argument
/drivers/infiniband/hw/amso1100/
Dc2_provider.c592 struct ib_mad *in_mad, struct ib_mad *out_mad) in c2_process_mad() argument
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c636 struct ib_smp *in_mad = (struct ib_smp *)(inbox->buf); in query_pkey_block() local
644 in_mad->attr_mod = cpu_to_be32(index / 32); in query_pkey_block()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c90 struct ib_mad *in_mad, struct ib_mad *out_mad) in iwch_process_mad() argument
/drivers/infiniband/hw/nes/
Dnes_verbs.c3225 struct ib_mad *in_mad, struct ib_mad *out_mad) in nes_process_mad() argument