Lines Matching refs:out_mad
435 struct ib_smp *out_mad = NULL; in mlx4_ib_query_device() local
460 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mlx4_ib_query_device()
462 if (!in_mad || !out_mad) in mlx4_ib_query_device()
469 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device()
518 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mlx4_ib_query_device()
521 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mlx4_ib_query_device()
522 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mlx4_ib_query_device()
635 kfree(out_mad); in mlx4_ib_query_device()
653 struct ib_smp *out_mad = NULL; in ib_link_query_port() local
659 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in ib_link_query_port()
660 if (!in_mad || !out_mad) in ib_link_query_port()
671 in_mad, out_mad); in ib_link_query_port()
676 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in ib_link_query_port()
677 props->lmc = out_mad->data[34] & 0x7; in ib_link_query_port()
678 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in ib_link_query_port()
679 props->sm_sl = out_mad->data[36] & 0xf; in ib_link_query_port()
680 props->state = out_mad->data[32] & 0xf; in ib_link_query_port()
681 props->phys_state = out_mad->data[33] >> 4; in ib_link_query_port()
682 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in ib_link_query_port()
684 props->gid_tbl_len = out_mad->data[50]; in ib_link_query_port()
689 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in ib_link_query_port()
690 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in ib_link_query_port()
691 props->active_width = out_mad->data[31] & 0xf; in ib_link_query_port()
692 props->active_speed = out_mad->data[35] >> 4; in ib_link_query_port()
693 props->max_mtu = out_mad->data[41] & 0xf; in ib_link_query_port()
694 props->active_mtu = out_mad->data[36] >> 4; in ib_link_query_port()
695 props->subnet_timeout = out_mad->data[51] & 0x1f; in ib_link_query_port()
696 props->max_vl_num = out_mad->data[37] >> 4; in ib_link_query_port()
697 props->init_type_reply = out_mad->data[41] >> 4; in ib_link_query_port()
701 ext_active_speed = out_mad->data[62] >> 4; in ib_link_query_port()
720 NULL, NULL, in_mad, out_mad); in ib_link_query_port()
725 if (out_mad->data[15] & 0x1) in ib_link_query_port()
735 kfree(out_mad); in ib_link_query_port()
831 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_gid() local
838 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_gid()
839 if (!in_mad || !out_mad) in __mlx4_ib_query_gid()
849 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
853 memcpy(gid->raw, out_mad->data + 8, 8); in __mlx4_ib_query_gid()
869 NULL, NULL, in_mad, out_mad); in __mlx4_ib_query_gid()
873 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in __mlx4_ib_query_gid()
879 kfree(out_mad); in __mlx4_ib_query_gid()
896 struct ib_smp *out_mad = NULL; in mlx4_ib_query_sl2vl() local
907 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx4_ib_query_sl2vl()
908 if (!in_mad || !out_mad) in mlx4_ib_query_sl2vl()
919 in_mad, out_mad); in mlx4_ib_query_sl2vl()
924 sl2vl64.sl8[jj] = ((struct ib_smp *)out_mad)->data[jj]; in mlx4_ib_query_sl2vl()
929 kfree(out_mad); in mlx4_ib_query_sl2vl()
956 struct ib_smp *out_mad = NULL; in __mlx4_ib_query_pkey() local
961 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in __mlx4_ib_query_pkey()
962 if (!in_mad || !out_mad) in __mlx4_ib_query_pkey()
973 in_mad, out_mad); in __mlx4_ib_query_pkey()
977 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey()
981 kfree(out_mad); in __mlx4_ib_query_pkey()
1972 struct ib_smp *out_mad = NULL; in init_node_data() local
1977 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in init_node_data()
1978 if (!in_mad || !out_mad) in init_node_data()
1986 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1990 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX); in init_node_data()
1994 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad); in init_node_data()
1998 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in init_node_data()
1999 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
2003 kfree(out_mad); in init_node_data()