Lines Matching defs:out_mad

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