Lines Matching defs:out_mad

173 			   const struct ib_mad *in_mad, struct ib_mad *out_mad)
202 memcpy((out_mad->data + 40), &cpi, sizeof(cpi));
209 (struct ib_pma_portcounters_ext *)(out_mad->data + 40);
224 (struct ib_pma_portcounters *)(out_mad->data + 40);
312 struct ib_smp *out_mad;
317 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
318 if (!in_mad || !out_mad)
325 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
327 packet_error = be16_to_cpu(out_mad->status);
334 kfree(out_mad);
339 struct ib_smp *out_mad)
352 out_mad);
361 struct ib_smp *out_mad;
364 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
365 if (!out_mad)
368 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
372 memcpy(sys_image_guid, out_mad->data + 4, 8);
375 kfree(out_mad);
383 struct ib_smp *out_mad;
386 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
387 if (!out_mad)
390 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
394 *max_pkeys = be16_to_cpup((__be16 *)(out_mad->data + 28));
397 kfree(out_mad);
405 struct ib_smp *out_mad;
408 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
409 if (!out_mad)
412 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad);
416 *vendor_id = be32_to_cpup((__be32 *)(out_mad->data + 36)) & 0xffff;
419 kfree(out_mad);
427 struct ib_smp *out_mad;
431 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
432 if (!in_mad || !out_mad)
438 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
442 memcpy(node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
445 kfree(out_mad);
452 struct ib_smp *out_mad;
456 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
457 if (!in_mad || !out_mad)
463 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad);
467 memcpy(node_guid, out_mad->data + 12, 8);
470 kfree(out_mad);
478 struct ib_smp *out_mad;
482 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
483 if (!in_mad || !out_mad)
491 out_mad);
495 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]);
499 kfree(out_mad);
507 struct ib_smp *out_mad;
511 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
512 if (!in_mad || !out_mad)
520 out_mad);
524 memcpy(gid->raw, out_mad->data + 8, 8);
531 out_mad);
535 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
539 kfree(out_mad);
549 struct ib_smp *out_mad;
554 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL);
555 if (!in_mad || !out_mad)
564 err = mlx5_MAD_IFC(dev, 1, 1, port, NULL, NULL, in_mad, out_mad);
570 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16));
571 props->lmc = out_mad->data[34] & 0x7;
572 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18));
573 props->sm_sl = out_mad->data[36] & 0xf;
574 props->state = out_mad->data[32] & 0xf;
575 props->phys_state = out_mad->data[33] >> 4;
576 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20));
577 props->gid_tbl_len = out_mad->data[50];
580 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46));
581 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48));
582 props->active_width = out_mad->data[31] & 0xf;
583 props->active_speed = out_mad->data[35] >> 4;
584 props->max_mtu = out_mad->data[41] & 0xf;
585 props->active_mtu = out_mad->data[36] >> 4;
586 props->subnet_timeout = out_mad->data[51] & 0x1f;
587 props->max_vl_num = out_mad->data[37] >> 4;
588 props->init_type_reply = out_mad->data[41] >> 4;
592 be16_to_cpup((__be16 *)(out_mad->data + 60));
595 props->active_width = out_mad->data[31] & 0x1f;
600 ext_active_speed = out_mad->data[62] >> 4;
631 NULL, NULL, in_mad, out_mad);
636 if (out_mad->data[15] & 0x1)
643 kfree(out_mad);