Lines Matching refs:active_width
330 u16 *active_speed, u8 *active_width) in translate_eth_legacy_proto_oper() argument
337 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
347 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
353 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
360 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
366 *active_width = IB_WIDTH_1X; in translate_eth_legacy_proto_oper()
370 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
377 *active_width = IB_WIDTH_4X; in translate_eth_legacy_proto_oper()
388 u8 *active_width) in translate_eth_ext_proto_oper() argument
393 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
397 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
401 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
405 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
409 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
413 *active_width = IB_WIDTH_2X; in translate_eth_ext_proto_oper()
417 *active_width = IB_WIDTH_1X; in translate_eth_ext_proto_oper()
421 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
425 *active_width = IB_WIDTH_2X; in translate_eth_ext_proto_oper()
429 *active_width = IB_WIDTH_4X; in translate_eth_ext_proto_oper()
440 u8 *active_width, bool ext) in translate_eth_proto_oper() argument
444 active_width) : in translate_eth_proto_oper()
446 active_width); in translate_eth_proto_oper()
490 props->active_width = IB_WIDTH_4X; in mlx5_query_port_roce()
494 &props->active_width, ext); in mlx5_query_port_roce()
1180 static void translate_active_width(struct ib_device *ibdev, u16 active_width, in translate_active_width() argument
1185 if (active_width & MLX5_PTYS_WIDTH_1X) in translate_active_width()
1187 else if (active_width & MLX5_PTYS_WIDTH_2X) in translate_active_width()
1189 else if (active_width & MLX5_PTYS_WIDTH_4X) in translate_active_width()
1191 else if (active_width & MLX5_PTYS_WIDTH_8X) in translate_active_width()
1193 else if (active_width & MLX5_PTYS_WIDTH_12X) in translate_active_width()
1197 active_width); in translate_active_width()
1312 translate_active_width(ibdev, ib_link_width_oper, &props->active_width); in mlx5_query_hca_port()