• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/mlx4/

Lines Matching refs:out_mad

74 	struct ib_smp *out_mad = NULL;
78 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
79 if (!in_mad || !out_mad)
85 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, out_mad);
116 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
118 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30));
119 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
120 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
152 kfree(out_mad);
161 struct ib_smp *out_mad = NULL;
165 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
166 if (!in_mad || !out_mad)
175 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, out_mad);
179 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
180 props->lmc = out_mad->data[34] & 0x7;
181 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
182 props->sm_sl = out_mad->data[36] & 0xf;
183 props->state = out_mad->data[32] & 0xf;
184 props->phys_state = out_mad->data[33] >> 4;
185 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
189 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
190 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
191 props->active_width = out_mad->data[31] & 0xf;
192 props->active_speed = out_mad->data[35] >> 4;
193 props->max_mtu = out_mad->data[41] & 0xf;
194 props->active_mtu = out_mad->data[36] >> 4;
195 props->subnet_timeout = out_mad->data[51] & 0x1f;
196 props->max_vl_num = out_mad->data[37] >> 4;
197 props->init_type_reply = out_mad->data[41] >> 4;
201 kfree(out_mad);
210 struct ib_smp *out_mad = NULL;
214 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
215 if (!in_mad || !out_mad)
222 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, out_mad);
226 memcpy(gid->raw, out_mad->data + 8, 8);
232 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, out_mad);
236 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
240 kfree(out_mad);
248 struct ib_smp *out_mad = NULL;
252 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
253 if (!in_mad || !out_mad)
260 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, out_mad);
264 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
268 kfree(out_mad);
467 struct ib_smp *out_mad = NULL;
471 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
472 if (!in_mad || !out_mad)
478 err = mlx4_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
482 memcpy(dev->ib_dev.node_desc, out_mad->data, 64);
486 err = mlx4_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
490 dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
491 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
495 kfree(out_mad);