Lines Matching refs:active_width
335 u16 *active_speed, u8 *active_width) in translate_eth_legacy_proto_oper() argument
342 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
352 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
358 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
365 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
371 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
375 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
382 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
393 u8 *active_width) in translate_eth_ext_proto_oper() argument
398 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
402 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
406 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
410 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
414 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
418 *active_width = IB_WIDTH_2X; in translate_eth_ext_proto_oper()
422 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
426 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
430 *active_width = IB_WIDTH_2X; in translate_eth_ext_proto_oper()
434 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
438 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
442 *active_width = IB_WIDTH_2X; in translate_eth_ext_proto_oper()
446 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
457 u8 *active_width, bool ext) in translate_eth_proto_oper() argument
461 active_width) : in translate_eth_proto_oper()
463 active_width); in translate_eth_proto_oper()
506 props->active_width = IB_WIDTH_4X; in mlx5_query_port_roce()
510 &props->active_width, ext); in mlx5_query_port_roce()
1199 static void translate_active_width(struct ib_device *ibdev, u16 active_width, in translate_active_width() argument
1204 if (active_width & MLX5_PTYS_WIDTH_1X) in translate_active_width()
1206 else if (active_width & MLX5_PTYS_WIDTH_2X) in translate_active_width()
1208 else if (active_width & MLX5_PTYS_WIDTH_4X) in translate_active_width()
1210 else if (active_width & MLX5_PTYS_WIDTH_8X) in translate_active_width()
1212 else if (active_width & MLX5_PTYS_WIDTH_12X) in translate_active_width()
1216 active_width); in translate_active_width()
1331 translate_active_width(ibdev, ib_link_width_oper, &props->active_width); in mlx5_query_hca_port()