Lines Matching refs:out_mad
427 struct ib_smp *out_mad = NULL; in mlx4_ib_query_device() local
452 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
454 if (!in_mad || !out_mad) in mlx4_ib_query_device()
461 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
510 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
513 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
514 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
631 kfree(out_mad); in mlx4_ib_query_device()
649 struct ib_smp *out_mad = NULL; in ib_link_query_port() local
655 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
656 if (!in_mad || !out_mad) in ib_link_query_port()
667 in_mad, out_mad); in ib_link_query_port()
672 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in ib_link_query_port()
673 props->lmc = out_mad->data[34] & 0x7; in ib_link_query_port()
674 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in ib_link_query_port()
675 props->sm_sl = out_mad->data[36] & 0xf; in ib_link_query_port()
676 props->state = out_mad->data[32] & 0xf; in ib_link_query_port()
677 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
678 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in ib_link_query_port()
680 props->gid_tbl_len = out_mad->data[50]; in ib_link_query_port()
685 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in ib_link_query_port()
686 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in ib_link_query_port()
687 props->active_width = out_mad->data[31] & 0xf; in ib_link_query_port()
688 props->active_speed = out_mad->data[35] >> 4; in ib_link_query_port()
689 props->max_mtu = out_mad->data[41] & 0xf; in ib_link_query_port()
690 props->active_mtu = out_mad->data[36] >> 4; in ib_link_query_port()
691 props->subnet_timeout = out_mad->data[51] & 0x1f; in ib_link_query_port()
692 props->max_vl_num = out_mad->data[37] >> 4; in ib_link_query_port()
693 props->init_type_reply = out_mad->data[41] >> 4; in ib_link_query_port()
697 ext_active_speed = out_mad->data[62] >> 4; in ib_link_query_port()
716 NULL, NULL, in_mad, out_mad); in ib_link_query_port()
721 if (out_mad->data[15] & 0x1) in ib_link_query_port()
731 kfree(out_mad); in ib_link_query_port()
825 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_gid() local
832 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_gid()
833 if (!in_mad || !out_mad) in __mlx4_ib_query_gid()
843 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
847 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
863 NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
867 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
873 kfree(out_mad); in __mlx4_ib_query_gid()
889 struct ib_smp *out_mad = NULL; in mlx4_ib_query_sl2vl() local
900 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx4_ib_query_sl2vl()
901 if (!in_mad || !out_mad) in mlx4_ib_query_sl2vl()
912 in_mad, out_mad); in mlx4_ib_query_sl2vl()
917 sl2vl64.sl8[jj] = ((struct ib_smp *)out_mad)->data[jj]; in mlx4_ib_query_sl2vl()
922 kfree(out_mad); in mlx4_ib_query_sl2vl()
949 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_pkey() local
954 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_pkey()
955 if (!in_mad || !out_mad) in __mlx4_ib_query_pkey()
966 in_mad, out_mad); in __mlx4_ib_query_pkey()
970 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey()
974 kfree(out_mad); in __mlx4_ib_query_pkey()
2101 struct ib_smp *out_mad = NULL; in init_node_data() local
2106 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in init_node_data()
2107 if (!in_mad || !out_mad) in init_node_data()
2115 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
2119 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX); in init_node_data()
2123 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
2127 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in init_node_data()
2128 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
2132 kfree(out_mad); in init_node_data()