• 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/mthca/

Lines Matching refs:out_mad

62 	struct ib_smp *out_mad = NULL;
69 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
70 if (!in_mad || !out_mad)
81 1, NULL, NULL, in_mad, out_mad,
91 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
93 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30));
94 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
95 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
134 kfree(out_mad);
142 struct ib_smp *out_mad = NULL;
147 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
148 if (!in_mad || !out_mad)
158 port, NULL, NULL, in_mad, out_mad,
167 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
168 props->lmc = out_mad->data[34] & 0x7;
169 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
170 props->sm_sl = out_mad->data[36] & 0xf;
171 props->state = out_mad->data[32] & 0xf;
172 props->phys_state = out_mad->data[33] >> 4;
173 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
177 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
178 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
179 props->active_width = out_mad->data[31] & 0xf;
180 props->active_speed = out_mad->data[35] >> 4;
181 props->max_mtu = out_mad->data[41] & 0xf;
182 props->active_mtu = out_mad->data[36] >> 4;
183 props->subnet_timeout = out_mad->data[51] & 0x1f;
184 props->max_vl_num = out_mad->data[37] >> 4;
185 props->init_type_reply = out_mad->data[41] >> 4;
189 kfree(out_mad);
249 struct ib_smp *out_mad = NULL;
254 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
255 if (!in_mad || !out_mad)
263 port, NULL, NULL, in_mad, out_mad,
272 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
276 kfree(out_mad);
284 struct ib_smp *out_mad = NULL;
289 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
290 if (!in_mad || !out_mad)
298 port, NULL, NULL, in_mad, out_mad,
307 memcpy(gid->raw, out_mad->data + 8, 8);
314 port, NULL, NULL, in_mad, out_mad,
323 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
327 kfree(out_mad);
1254 struct ib_smp *out_mad = NULL;
1259 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
1260 if (!in_mad || !out_mad)
1267 1, NULL, NULL, in_mad, out_mad,
1276 memcpy(dev->ib_dev.node_desc, out_mad->data, 64);
1281 1, NULL, NULL, in_mad, out_mad,
1291 dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
1292 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
1296 kfree(out_mad);