Lines Matching refs:out_mad

441 	struct ib_smp *out_mad;  in mlx4_ib_query_device()  local
466 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
468 if (!in_mad || !out_mad) in mlx4_ib_query_device()
475 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
524 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
527 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
528 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
641 kfree(out_mad); in mlx4_ib_query_device()
659 struct ib_smp *out_mad; in ib_link_query_port() local
665 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
666 if (!in_mad || !out_mad) in ib_link_query_port()
677 in_mad, out_mad); in ib_link_query_port()
682 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in ib_link_query_port()
683 props->lmc = out_mad->data[34] & 0x7; in ib_link_query_port()
684 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in ib_link_query_port()
685 props->sm_sl = out_mad->data[36] & 0xf; in ib_link_query_port()
686 props->state = out_mad->data[32] & 0xf; in ib_link_query_port()
687 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
688 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in ib_link_query_port()
690 props->gid_tbl_len = out_mad->data[50]; in ib_link_query_port()
695 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in ib_link_query_port()
696 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in ib_link_query_port()
697 props->active_width = out_mad->data[31] & 0xf; in ib_link_query_port()
698 props->active_speed = out_mad->data[35] >> 4; in ib_link_query_port()
699 props->max_mtu = out_mad->data[41] & 0xf; in ib_link_query_port()
700 props->active_mtu = out_mad->data[36] >> 4; in ib_link_query_port()
701 props->subnet_timeout = out_mad->data[51] & 0x1f; in ib_link_query_port()
702 props->max_vl_num = out_mad->data[37] >> 4; in ib_link_query_port()
703 props->init_type_reply = out_mad->data[41] >> 4; in ib_link_query_port()
707 ext_active_speed = out_mad->data[62] >> 4; in ib_link_query_port()
726 NULL, NULL, in_mad, out_mad); in ib_link_query_port()
731 if (out_mad->data[15] & 0x1) in ib_link_query_port()
741 kfree(out_mad); in ib_link_query_port()
837 struct ib_smp *out_mad; in __mlx4_ib_query_gid() local
844 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_gid()
845 if (!in_mad || !out_mad) in __mlx4_ib_query_gid()
855 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
859 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
875 NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
879 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
885 kfree(out_mad); in __mlx4_ib_query_gid()
902 struct ib_smp *out_mad; in mlx4_ib_query_sl2vl() local
913 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx4_ib_query_sl2vl()
914 if (!in_mad || !out_mad) in mlx4_ib_query_sl2vl()
925 in_mad, out_mad); in mlx4_ib_query_sl2vl()
930 sl2vl64.sl8[jj] = ((struct ib_smp *)out_mad)->data[jj]; in mlx4_ib_query_sl2vl()
935 kfree(out_mad); in mlx4_ib_query_sl2vl()
962 struct ib_smp *out_mad; in __mlx4_ib_query_pkey() local
967 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_pkey()
968 if (!in_mad || !out_mad) in __mlx4_ib_query_pkey()
979 in_mad, out_mad); in __mlx4_ib_query_pkey()
983 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey()
987 kfree(out_mad); in __mlx4_ib_query_pkey()
1978 struct ib_smp *out_mad; in init_node_data() local
1983 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in init_node_data()
1984 if (!in_mad || !out_mad) in init_node_data()
1992 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1996 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX); in init_node_data()
2000 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
2004 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in init_node_data()
2005 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
2009 kfree(out_mad); in init_node_data()