Lines Matching refs:in_mad
46 struct ib_mad *in_mad) in can_do_mad_ifc() argument
48 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED && in can_do_mad_ifc()
49 in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in can_do_mad_ifc()
56 const struct ib_grh *in_grh, const void *in_mad, in mlx5_MAD_IFC() argument
61 if (!can_do_mad_ifc(dev, port, (struct ib_mad *)in_mad)) in mlx5_MAD_IFC()
72 return mlx5_cmd_mad_ifc(dev, in_mad, response_mad, op_modifier, in mlx5_MAD_IFC()
210 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_pma_cmd() argument
237 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd()
246 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd()
359 struct ib_smp *in_mad; in mlx5_query_ext_port_caps() local
364 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_ext_port_caps()
366 if (!in_mad || !out_mad) in mlx5_query_ext_port_caps()
369 ib_init_query_mad(in_mad); in mlx5_query_ext_port_caps()
370 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
371 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_ext_port_caps()
373 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_ext_port_caps()
381 kfree(in_mad); in mlx5_query_ext_port_caps()
389 struct ib_smp *in_mad; in mlx5_query_mad_ifc_smp_attr_node_info() local
392 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_smp_attr_node_info()
393 if (!in_mad) in mlx5_query_mad_ifc_smp_attr_node_info()
396 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
397 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info()
399 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info()
402 kfree(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
474 struct ib_smp *in_mad; in mlx5_query_mad_ifc_node_desc() local
478 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc()
480 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_desc()
483 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_node_desc()
484 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc()
486 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_desc()
492 kfree(in_mad); in mlx5_query_mad_ifc_node_desc()
499 struct ib_smp *in_mad; in mlx5_query_mad_ifc_node_guid() local
503 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid()
505 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_guid()
508 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_node_guid()
509 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid()
511 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_guid()
517 kfree(in_mad); in mlx5_query_mad_ifc_node_guid()
525 struct ib_smp *in_mad; in mlx5_query_mad_ifc_pkey() local
529 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey()
531 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_pkey()
534 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_pkey()
535 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey()
536 in_mad->attr_mod = cpu_to_be32(index / 32); in mlx5_query_mad_ifc_pkey()
538 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_pkey()
546 kfree(in_mad); in mlx5_query_mad_ifc_pkey()
554 struct ib_smp *in_mad; in mlx5_query_mad_ifc_gids() local
558 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids()
560 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_gids()
563 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
564 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids()
565 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_gids()
567 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
574 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
575 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids()
576 in_mad->attr_mod = cpu_to_be32(index / 8); in mlx5_query_mad_ifc_gids()
578 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
586 kfree(in_mad); in mlx5_query_mad_ifc_gids()
596 struct ib_smp *in_mad; in mlx5_query_mad_ifc_port() local
601 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_port()
603 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_port()
608 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
609 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_port()
610 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
612 err = mlx5_MAD_IFC(dev, 1, 1, port, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
687 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
688 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_mad_ifc_port()
689 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
692 NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
703 kfree(in_mad); in mlx5_query_mad_ifc_port()