Lines Matching defs:out_mad

58 		       const struct ib_mad *in_mad, struct ib_mad *out_mad)
93 port_num, in_wc, in_grh, in_mad, out_mad);
99 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
181 const struct ib_mad *in_mad, struct ib_mad *out_mad)
192 memcpy((out_mad->data + 40), &cpi, sizeof(cpi));
198 (struct ib_pma_portcounters_ext *)(out_mad->data + 40);
211 (struct ib_pma_portcounters *)(out_mad->data + 40);
240 struct ib_mad *out_mad = (struct ib_mad *)out;
243 *out_mad_size != sizeof(*out_mad)))
246 memset(out_mad->data, 0, sizeof(out_mad->data));
251 return process_pma_cmd(ibdev, port_num, in_mad, out_mad);
254 in_mad, out_mad);
261 struct ib_smp *out_mad = NULL;
266 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
267 if (!in_mad || !out_mad)
274 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
276 packet_error = be16_to_cpu(out_mad->status);
283 kfree(out_mad);
288 struct ib_smp *out_mad)
301 out_mad);
310 struct ib_smp *out_mad = NULL;
313 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
314 if (!out_mad)
317 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
321 memcpy(sys_image_guid, out_mad->data + 4, 8);
324 kfree(out_mad);
332 struct ib_smp *out_mad = NULL;
335 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
336 if (!out_mad)
339 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
343 *max_pkeys = be16_to_cpup((__be16 *)(out_mad->data + 28));
346 kfree(out_mad);
354 struct ib_smp *out_mad = NULL;
357 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
358 if (!out_mad)
361 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
365 *vendor_id = be32_to_cpup((__be32 *)(out_mad->data + 36)) & 0xffff;
368 kfree(out_mad);
376 struct ib_smp *out_mad = NULL;
380 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
381 if (!in_mad || !out_mad)
387 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
391 memcpy(node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
394 kfree(out_mad);
401 struct ib_smp *out_mad = NULL;
405 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
406 if (!in_mad || !out_mad)
412 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
416 memcpy(node_guid, out_mad->data + 12, 8);
419 kfree(out_mad);
427 struct ib_smp *out_mad = NULL;
431 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
432 if (!in_mad || !out_mad)
440 out_mad);
444 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]);
448 kfree(out_mad);
456 struct ib_smp *out_mad = NULL;
460 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
461 if (!in_mad || !out_mad)
469 out_mad);
473 memcpy(gid->raw, out_mad->data + 8, 8);
480 out_mad);
484 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
488 kfree(out_mad);
498 struct ib_smp *out_mad = NULL;
508 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
509 if (!in_mad || !out_mad)
518 err = mlx5_MAD_IFC(dev, 1, 1, port, NULL, NULL, in_mad, out_mad);
524 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16));
525 props->lmc = out_mad->data[34] & 0x7;
526 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18));
527 props->sm_sl = out_mad->data[36] & 0xf;
528 props->state = out_mad->data[32] & 0xf;
529 props->phys_state = out_mad->data[33] >> 4;
530 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20));
531 props->gid_tbl_len = out_mad->data[50];
534 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46));
535 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48));
536 props->active_width = out_mad->data[31] & 0xf;
537 props->active_speed = out_mad->data[35] >> 4;
538 props->max_mtu = out_mad->data[41] & 0xf;
539 props->active_mtu = out_mad->data[36] >> 4;
540 props->subnet_timeout = out_mad->data[51] & 0x1f;
541 props->max_vl_num = out_mad->data[37] >> 4;
542 props->init_type_reply = out_mad->data[41] >> 4;
546 ext_active_speed = out_mad->data[62] >> 4;
567 NULL, NULL, in_mad, out_mad);
572 if (out_mad->data[15] & 0x1)
579 kfree(out_mad);