Lines Matching refs:out_mad
139 struct ib_smp *out_mad = NULL; in mlx4_ib_query_device() local
144 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
145 if (!in_mad || !out_mad) in mlx4_ib_query_device()
152 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
199 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
202 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
203 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
235 kfree(out_mad); in mlx4_ib_query_device()
253 struct ib_smp *out_mad = NULL; in ib_link_query_port() local
259 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
260 if (!in_mad || !out_mad) in ib_link_query_port()
271 in_mad, out_mad); in ib_link_query_port()
276 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in ib_link_query_port()
277 props->lmc = out_mad->data[34] & 0x7; in ib_link_query_port()
278 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in ib_link_query_port()
279 props->sm_sl = out_mad->data[36] & 0xf; in ib_link_query_port()
280 props->state = out_mad->data[32] & 0xf; in ib_link_query_port()
281 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
282 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in ib_link_query_port()
284 props->gid_tbl_len = out_mad->data[50]; in ib_link_query_port()
289 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in ib_link_query_port()
290 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in ib_link_query_port()
291 props->active_width = out_mad->data[31] & 0xf; in ib_link_query_port()
292 props->active_speed = out_mad->data[35] >> 4; in ib_link_query_port()
293 props->max_mtu = out_mad->data[41] & 0xf; in ib_link_query_port()
294 props->active_mtu = out_mad->data[36] >> 4; in ib_link_query_port()
295 props->subnet_timeout = out_mad->data[51] & 0x1f; in ib_link_query_port()
296 props->max_vl_num = out_mad->data[37] >> 4; in ib_link_query_port()
297 props->init_type_reply = out_mad->data[41] >> 4; in ib_link_query_port()
301 ext_active_speed = out_mad->data[62] >> 4; in ib_link_query_port()
320 NULL, NULL, in_mad, out_mad); in ib_link_query_port()
325 if (out_mad->data[15] & 0x1) in ib_link_query_port()
335 kfree(out_mad); in ib_link_query_port()
427 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_gid() local
434 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_gid()
435 if (!in_mad || !out_mad) in __mlx4_ib_query_gid()
445 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
449 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
465 NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
469 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
475 kfree(out_mad); in __mlx4_ib_query_gid()
502 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_pkey() local
507 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_pkey()
508 if (!in_mad || !out_mad) in __mlx4_ib_query_pkey()
519 in_mad, out_mad); in __mlx4_ib_query_pkey()
523 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey()
527 kfree(out_mad); in __mlx4_ib_query_pkey()
1410 struct ib_smp *out_mad = NULL; in init_node_data() local
1415 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in init_node_data()
1416 if (!in_mad || !out_mad) in init_node_data()
1424 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1428 memcpy(dev->ib_dev.node_desc, out_mad->data, 64); in init_node_data()
1432 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1436 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in init_node_data()
1437 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
1441 kfree(out_mad); in init_node_data()