Lines Matching defs:out_mad
443 struct ib_smp *out_mad = NULL;
468 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
470 if (!in_mad || !out_mad)
477 1, NULL, NULL, in_mad, out_mad);
526 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
529 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
530 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
643 kfree(out_mad);
661 struct ib_smp *out_mad = NULL;
667 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
668 if (!in_mad || !out_mad)
679 in_mad, out_mad);
684 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
685 props->lmc = out_mad->data[34] & 0x7;
686 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
687 props->sm_sl = out_mad->data[36] & 0xf;
688 props->state = out_mad->data[32] & 0xf;
689 props->phys_state = out_mad->data[33] >> 4;
690 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
692 props->gid_tbl_len = out_mad->data[50];
697 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
698 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
699 props->active_width = out_mad->data[31] & 0xf;
700 props->active_speed = out_mad->data[35] >> 4;
701 props->max_mtu = out_mad->data[41] & 0xf;
702 props->active_mtu = out_mad->data[36] >> 4;
703 props->subnet_timeout = out_mad->data[51] & 0x1f;
704 props->max_vl_num = out_mad->data[37] >> 4;
705 props->init_type_reply = out_mad->data[41] >> 4;
709 ext_active_speed = out_mad->data[62] >> 4;
728 NULL, NULL, in_mad, out_mad);
733 if (out_mad->data[15] & 0x1)
743 kfree(out_mad);
839 struct ib_smp *out_mad = NULL;
846 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
847 if (!in_mad || !out_mad)
857 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad);
861 memcpy(gid->raw, out_mad->data + 8, 8);
877 NULL, NULL, in_mad, out_mad);
881 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
887 kfree(out_mad);
903 struct ib_smp *out_mad = NULL;
914 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
915 if (!in_mad || !out_mad)
926 in_mad, out_mad);
931 sl2vl64.sl8[jj] = ((struct ib_smp *)out_mad)->data[jj];
936 kfree(out_mad);
963 struct ib_smp *out_mad = NULL;
968 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
969 if (!in_mad || !out_mad)
980 in_mad, out_mad);
984 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
988 kfree(out_mad);
1984 struct ib_smp *out_mad = NULL;
1989 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
1990 if (!in_mad || !out_mad)
1998 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad);
2002 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
2006 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad);
2010 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
2011 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
2015 kfree(out_mad);