Lines Matching defs:out_mad

445 	struct ib_smp *out_mad = NULL;
470 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
471 if (!in_mad || !out_mad)
478 1, NULL, NULL, in_mad, out_mad);
527 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
530 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
531 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
582 kfree(out_mad);
600 struct ib_smp *out_mad = NULL;
606 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
607 if (!in_mad || !out_mad)
618 in_mad, out_mad);
623 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
624 props->lmc = out_mad->data[34] & 0x7;
625 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
626 props->sm_sl = out_mad->data[36] & 0xf;
627 props->state = out_mad->data[32] & 0xf;
628 props->phys_state = out_mad->data[33] >> 4;
629 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
631 props->gid_tbl_len = out_mad->data[50];
636 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
637 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
638 props->active_width = out_mad->data[31] & 0xf;
639 props->active_speed = out_mad->data[35] >> 4;
640 props->max_mtu = out_mad->data[41] & 0xf;
641 props->active_mtu = out_mad->data[36] >> 4;
642 props->subnet_timeout = out_mad->data[51] & 0x1f;
643 props->max_vl_num = out_mad->data[37] >> 4;
644 props->init_type_reply = out_mad->data[41] >> 4;
648 ext_active_speed = out_mad->data[62] >> 4;
667 NULL, NULL, in_mad, out_mad);
672 if (out_mad->data[15] & 0x1)
682 kfree(out_mad);
775 struct ib_smp *out_mad = NULL;
782 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
783 if (!in_mad || !out_mad)
793 err = mlx4_MAD_IFC(dev, mad_ifc_flags, port, NULL, NULL, in_mad, out_mad);
797 memcpy(gid->raw, out_mad->data + 8, 8);
813 NULL, NULL, in_mad, out_mad);
817 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
823 kfree(out_mad);
854 struct ib_smp *out_mad = NULL;
865 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
866 if (!in_mad || !out_mad)
877 in_mad, out_mad);
882 sl2vl64.sl8[jj] = ((struct ib_smp *)out_mad)->data[jj];
887 kfree(out_mad);
914 struct ib_smp *out_mad = NULL;
919 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
920 if (!in_mad || !out_mad)
931 in_mad, out_mad);
935 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
939 kfree(out_mad);
2023 struct ib_smp *out_mad = NULL;
2028 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
2029 if (!in_mad || !out_mad)
2037 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad);
2041 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
2045 err = mlx4_MAD_IFC(dev, mad_ifc_flags, 1, NULL, NULL, in_mad, out_mad);
2049 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
2050 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
2054 kfree(out_mad);