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()
173 const struct ib_mad *in_mad, struct ib_mad *out_mad) in process_pma_cmd() argument
198 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd()
207 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd()
311 struct ib_smp *in_mad = NULL; in mlx5_query_ext_port_caps() local
316 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_ext_port_caps()
318 if (!in_mad || !out_mad) in mlx5_query_ext_port_caps()
321 ib_init_query_mad(in_mad); in mlx5_query_ext_port_caps()
322 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
323 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_ext_port_caps()
325 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_ext_port_caps()
333 kfree(in_mad); in mlx5_query_ext_port_caps()
341 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_smp_attr_node_info() local
344 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_smp_attr_node_info()
345 if (!in_mad) in mlx5_query_mad_ifc_smp_attr_node_info()
348 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
349 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info()
351 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info()
354 kfree(in_mad); in mlx5_query_mad_ifc_smp_attr_node_info()
426 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_node_desc() local
430 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc()
432 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_desc()
435 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_node_desc()
436 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc()
438 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_desc()
444 kfree(in_mad); in mlx5_query_mad_ifc_node_desc()
451 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_node_guid() local
455 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid()
457 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_node_guid()
460 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_node_guid()
461 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid()
463 err = mlx5_MAD_IFC(dev, 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_node_guid()
469 kfree(in_mad); in mlx5_query_mad_ifc_node_guid()
477 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_pkey() local
481 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey()
483 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_pkey()
486 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_pkey()
487 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey()
488 in_mad->attr_mod = cpu_to_be32(index / 32); in mlx5_query_mad_ifc_pkey()
490 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_pkey()
498 kfree(in_mad); in mlx5_query_mad_ifc_pkey()
506 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_gids() local
510 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids()
512 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_gids()
515 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
516 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids()
517 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_gids()
519 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
526 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_gids()
527 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids()
528 in_mad->attr_mod = cpu_to_be32(index / 8); in mlx5_query_mad_ifc_gids()
530 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in_mad, in mlx5_query_mad_ifc_gids()
538 kfree(in_mad); in mlx5_query_mad_ifc_gids()
548 struct ib_smp *in_mad = NULL; in mlx5_query_mad_ifc_port() local
553 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_port()
555 if (!in_mad || !out_mad) in mlx5_query_mad_ifc_port()
560 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
561 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_port()
562 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
564 err = mlx5_MAD_IFC(dev, 1, 1, port, NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
626 ib_init_query_mad(in_mad); in mlx5_query_mad_ifc_port()
627 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_mad_ifc_port()
628 in_mad->attr_mod = cpu_to_be32(port); in mlx5_query_mad_ifc_port()
631 NULL, NULL, in_mad, out_mad); in mlx5_query_mad_ifc_port()
642 kfree(in_mad); in mlx5_query_mad_ifc_port()