Lines Matching refs:out_mad
365 struct ib_smp *out_mad = NULL; in mlx4_ib_query_device() local
390 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
391 if (!in_mad || !out_mad) in mlx4_ib_query_device()
398 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
447 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
450 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
451 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
502 kfree(out_mad); in mlx4_ib_query_device()
520 struct ib_smp *out_mad = NULL; in ib_link_query_port() local
526 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
527 if (!in_mad || !out_mad) in ib_link_query_port()
538 in_mad, out_mad); in ib_link_query_port()
543 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in ib_link_query_port()
544 props->lmc = out_mad->data[34] & 0x7; in ib_link_query_port()
545 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in ib_link_query_port()
546 props->sm_sl = out_mad->data[36] & 0xf; in ib_link_query_port()
547 props->state = out_mad->data[32] & 0xf; in ib_link_query_port()
548 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
549 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in ib_link_query_port()
551 props->gid_tbl_len = out_mad->data[50]; in ib_link_query_port()
556 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in ib_link_query_port()
557 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in ib_link_query_port()
558 props->active_width = out_mad->data[31] & 0xf; in ib_link_query_port()
559 props->active_speed = out_mad->data[35] >> 4; in ib_link_query_port()
560 props->max_mtu = out_mad->data[41] & 0xf; in ib_link_query_port()
561 props->active_mtu = out_mad->data[36] >> 4; in ib_link_query_port()
562 props->subnet_timeout = out_mad->data[51] & 0x1f; in ib_link_query_port()
563 props->max_vl_num = out_mad->data[37] >> 4; in ib_link_query_port()
564 props->init_type_reply = out_mad->data[41] >> 4; in ib_link_query_port()
568 ext_active_speed = out_mad->data[62] >> 4; in ib_link_query_port()
587 NULL, NULL, in_mad, out_mad); in ib_link_query_port()
592 if (out_mad->data[15] & 0x1) in ib_link_query_port()
602 kfree(out_mad); in ib_link_query_port()
693 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_gid() local
700 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_gid()
701 if (!in_mad || !out_mad) in __mlx4_ib_query_gid()
711 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
715 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
731 NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
735 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
741 kfree(out_mad); in __mlx4_ib_query_gid()
772 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_pkey() local
777 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_pkey()
778 if (!in_mad || !out_mad) in __mlx4_ib_query_pkey()
789 in_mad, out_mad); in __mlx4_ib_query_pkey()
793 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey()
797 kfree(out_mad); in __mlx4_ib_query_pkey()
1849 struct ib_smp *out_mad = NULL; in init_node_data() local
1854 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in init_node_data()
1855 if (!in_mad || !out_mad) in init_node_data()
1863 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1867 memcpy(dev->ib_dev.node_desc, out_mad->data, 64); in init_node_data()
1871 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1875 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in init_node_data()
1876 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
1880 kfree(out_mad); in init_node_data()