Lines Matching refs:active_speed
362 static int translate_eth_legacy_proto_oper(u32 eth_proto_oper, u8 *active_speed, in translate_eth_legacy_proto_oper() argument
371 *active_speed = IB_SPEED_SDR; in translate_eth_legacy_proto_oper()
381 *active_speed = IB_SPEED_QDR; in translate_eth_legacy_proto_oper()
387 *active_speed = IB_SPEED_EDR; in translate_eth_legacy_proto_oper()
394 *active_speed = IB_SPEED_QDR; in translate_eth_legacy_proto_oper()
400 *active_speed = IB_SPEED_HDR; in translate_eth_legacy_proto_oper()
404 *active_speed = IB_SPEED_FDR; in translate_eth_legacy_proto_oper()
411 *active_speed = IB_SPEED_EDR; in translate_eth_legacy_proto_oper()
420 static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u8 *active_speed, in translate_eth_ext_proto_oper() argument
427 *active_speed = IB_SPEED_SDR; in translate_eth_ext_proto_oper()
431 *active_speed = IB_SPEED_DDR; in translate_eth_ext_proto_oper()
435 *active_speed = IB_SPEED_QDR; in translate_eth_ext_proto_oper()
439 *active_speed = IB_SPEED_QDR; in translate_eth_ext_proto_oper()
443 *active_speed = IB_SPEED_EDR; in translate_eth_ext_proto_oper()
447 *active_speed = IB_SPEED_EDR; in translate_eth_ext_proto_oper()
451 *active_speed = IB_SPEED_HDR; in translate_eth_ext_proto_oper()
455 *active_speed = IB_SPEED_EDR; in translate_eth_ext_proto_oper()
459 *active_speed = IB_SPEED_HDR; in translate_eth_ext_proto_oper()
463 *active_speed = IB_SPEED_HDR; in translate_eth_ext_proto_oper()
472 static int translate_eth_proto_oper(u32 eth_proto_oper, u8 *active_speed, in translate_eth_proto_oper() argument
476 translate_eth_ext_proto_oper(eth_proto_oper, active_speed, in translate_eth_proto_oper()
478 translate_eth_legacy_proto_oper(eth_proto_oper, active_speed, in translate_eth_proto_oper()
524 props->active_speed = IB_SPEED_QDR; in mlx5_query_port_roce()
526 translate_eth_proto_oper(eth_prot_oper, &props->active_speed, in mlx5_query_port_roce()
1346 err = mlx5_query_port_ib_proto_oper(mdev, &props->active_speed, port); in mlx5_query_hca_port()