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->mdev, in_mad, response_mad, op_modifier, in mlx5_MAD_IFC()
151 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_pma_cmd() argument
176 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd()
185 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd()
290 struct ib_smp *in_mad = NULL; in mlx5_query_ext_port_caps() local
295 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_ext_port_caps()
297 if (!in_mad || !out_mad) in mlx5_query_ext_port_caps()
300 init_query_mad(in_mad); in mlx5_query_ext_port_caps()
301 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
302 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_ext_port_caps()
304 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_ext_port_caps()
312 kfree(in_mad); in mlx5_query_ext_port_caps()
320 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_smp_attr_node_info() local
323 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_smp_attr_node_info()
324 if (!in_mad) in mlx5_query_mad_ifc_smp_attr_node_info()
327 init_query_mad(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
328 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info()
330 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info()
333 kfree(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
405 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_node_desc() local
409 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc()
411 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_desc()
414 init_query_mad(in_mad); in mlx5_query_mad_ifc_node_desc()
415 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc()
417 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_desc()
423 kfree(in_mad); in mlx5_query_mad_ifc_node_desc()
430 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_node_guid() local
434 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid()
436 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_guid()
439 init_query_mad(in_mad); in mlx5_query_mad_ifc_node_guid()
440 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid()
442 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_guid()
448 kfree(in_mad); in mlx5_query_mad_ifc_node_guid()
456 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_pkey() local
460 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey()
462 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_pkey()
465 init_query_mad(in_mad); in mlx5_query_mad_ifc_pkey()
466 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey()
467 in_mad->attr_mod = cpu_to_be32(index / 32); in mlx5_query_mad_ifc_pkey()
469 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_pkey()
477 kfree(in_mad); in mlx5_query_mad_ifc_pkey()
485 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_gids() local
489 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids()
491 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_gids()
494 init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
495 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids()
496 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_gids()
498 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
505 init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
506 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids()
507 in_mad->attr_mod = cpu_to_be32(index / 8); in mlx5_query_mad_ifc_gids()
509 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
517 kfree(in_mad); in mlx5_query_mad_ifc_gids()
527 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_port() local
532 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_port()
534 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_port()
539 init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
540 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_port()
541 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
543 err = mlx5_MAD_IFC(dev, 1, 1, port, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
600 init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
601 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_mad_ifc_port()
602 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
605 NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
616 kfree(in_mad); in mlx5_query_mad_ifc_port()