Home
last modified time | relevance | path

Searched refs:out_mad (Results 1 – 18 of 18) sorted by relevance

/drivers/infiniband/hw/mlx5/
Dmad.c64 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_mad() argument
99 port_num, in_wc, in_grh, in_mad, out_mad); in process_mad()
105 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); in process_mad()
187 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_pma_cmd() argument
198 memcpy((out_mad->data + 40), &cpi, sizeof(cpi)); in process_pma_cmd()
204 (struct ib_pma_portcounters_ext *)(out_mad->data + 40); in process_pma_cmd()
217 (struct ib_pma_portcounters *)(out_mad->data + 40); in process_pma_cmd()
246 struct ib_mad *out_mad = (struct ib_mad *)out; in mlx5_ib_process_mad() local
249 *out_mad_size != sizeof(*out_mad))) in mlx5_ib_process_mad()
252 memset(out_mad->data, 0, sizeof(out_mad->data)); in mlx5_ib_process_mad()
[all …]
Dmlx5_ib.h810 struct ib_smp *out_mad);
/drivers/infiniband/hw/mthca/
Dmthca_provider.c64 struct ib_smp *out_mad = NULL; in mthca_query_device() local
72 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_device()
73 if (!in_mad || !out_mad) in mthca_query_device()
84 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
89 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mthca_query_device()
91 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); in mthca_query_device()
92 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_query_device()
93 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mthca_query_device()
133 kfree(out_mad); in mthca_query_device()
141 struct ib_smp *out_mad = NULL; in mthca_query_port() local
[all …]
Dmthca_mad.c211 struct ib_mad *out_mad = (struct ib_mad *)out; in mthca_process_mad() local
214 *out_mad_size != sizeof(*out_mad))) in mthca_process_mad()
263 port_num, in_wc, in_grh, in_mad, out_mad); in mthca_process_mad()
271 if (!out_mad->mad_hdr.status) { in mthca_process_mad()
273 node_desc_override(ibdev, out_mad); in mthca_process_mad()
278 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); in mthca_process_mad()
/drivers/infiniband/hw/mlx4/
Dmain.c432 struct ib_smp *out_mad = NULL; in mlx4_ib_query_device() local
457 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
458 if (!in_mad || !out_mad) in mlx4_ib_query_device()
465 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
514 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
517 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
518 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
569 kfree(out_mad); in mlx4_ib_query_device()
587 struct ib_smp *out_mad = NULL; in ib_link_query_port() local
593 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
[all …]
Dmad.c773 const struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument
838 port_num, in_wc, in_grh, in_mad, out_mad); in ib_process_mad()
842 if (!out_mad->mad_hdr.status) { in ib_process_mad()
846 node_desc_override(ibdev, out_mad); in ib_process_mad()
851 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); in ib_process_mad()
895 static int iboe_process_mad_port_info(void *out_mad) in iboe_process_mad_port_info() argument
900 memcpy(out_mad, &cpi, sizeof(cpi)); in iboe_process_mad_port_info()
906 const struct ib_mad *in_mad, struct ib_mad *out_mad) in iboe_process_mad() argument
917 return iboe_process_mad_port_info((void *)(out_mad->data + 40)); in iboe_process_mad()
936 memset(out_mad->data, 0, sizeof out_mad->data); in iboe_process_mad()
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c291 struct ib_mad *out_mad = (struct ib_mad *)out; in ocrdma_process_mad() local
294 *out_mad_size != sizeof(*out_mad))) in ocrdma_process_mad()
300 if (!ocrdma_pma_counters(dev, out_mad)) in ocrdma_process_mad()
Docrdma_stats.h73 struct ib_mad *out_mad);
Docrdma_stats.c678 struct ib_mad *out_mad) in ocrdma_pma_counters() argument
682 memset(out_mad->data, 0, sizeof out_mad->data); in ocrdma_pma_counters()
683 pma_cnt = (void *)(out_mad->data + 40); in ocrdma_pma_counters()
/drivers/infiniband/core/
Dsysfs.c433 struct ib_mad *out_mad; in get_perf_mad() local
434 size_t mad_size = sizeof(*out_mad); in get_perf_mad()
442 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in get_perf_mad()
443 if (!in_mad || !out_mad) { in get_perf_mad()
460 (struct ib_mad_hdr *)out_mad, &mad_size, in get_perf_mad()
467 memcpy(data, out_mad->data + offset, size); in get_perf_mad()
471 kfree(out_mad); in get_perf_mad()
/drivers/infiniband/hw/qib/
Dqib_mad.c1866 struct ib_mad *out_mad) in process_subn() argument
1868 struct ib_smp *smp = (struct ib_smp *)out_mad; in process_subn()
1873 *out_mad = *in_mad; in process_subn()
2018 struct ib_mad *out_mad) in process_perf() argument
2020 struct ib_pma_mad *pmp = (struct ib_pma_mad *)out_mad; in process_perf()
2023 *out_mad = *in_mad; in process_perf()
2311 struct ib_mad *out_mad) in process_cc() argument
2313 struct ib_cc_mad *ccp = (struct ib_cc_mad *)out_mad; in process_cc()
2317 *out_mad = *in_mad; in process_cc()
2420 struct ib_mad *out_mad = (struct ib_mad *)out; in qib_process_mad() local
[all …]
/drivers/infiniband/hw/hfi1/
Dmad.c4010 struct opa_mad *out_mad, in process_subn_opa() argument
4013 struct opa_smp *smp = (struct opa_smp *)out_mad; in process_subn_opa()
4020 *out_mad = *in_mad; in process_subn_opa()
4107 struct ib_mad *out_mad) in process_subn() argument
4109 struct ib_smp *smp = (struct ib_smp *)out_mad; in process_subn()
4113 *out_mad = *in_mad; in process_subn()
4166 struct ib_mad *out_mad) in process_perf() argument
4168 struct ib_pma_mad *pmp = (struct ib_pma_mad *)out_mad; in process_perf()
4173 *out_mad = *in_mad; in process_perf()
4228 struct opa_mad *out_mad, u32 *resp_len) in process_perf_opa() argument
[all …]
Dverbs.h242 struct ib_mad_hdr *out_mad, size_t *out_mad_size,
/drivers/infiniband/hw/qedr/
Dverbs.h96 size_t in_mad_size, struct ib_mad_hdr *out_mad,
Dverbs.c3536 size_t in_mad_size, struct ib_mad_hdr *out_mad, in qedr_process_mad() argument
/drivers/infiniband/hw/cxgb4/
Dprovider.c87 struct ib_mad_hdr *out_mad, in c4iw_process_mad() argument
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c850 struct ib_smp *out_mad = (struct ib_smp *)(outbox->buf); in query_pkey_block() local
866 pkey[i] = be16_to_cpu(((__be16 *) out_mad->data)[i]); in query_pkey_block()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c92 struct ib_mad_hdr *out_mad, in iwch_process_mad() argument