Lines Matching refs:active_width
327 u8 *active_width) in translate_eth_proto_oper() argument
334 *active_width = IB_WIDTH_1X; in translate_eth_proto_oper()
344 *active_width = IB_WIDTH_1X; in translate_eth_proto_oper()
350 *active_width = IB_WIDTH_1X; in translate_eth_proto_oper()
357 *active_width = IB_WIDTH_4X; in translate_eth_proto_oper()
363 *active_width = IB_WIDTH_1X; in translate_eth_proto_oper()
367 *active_width = IB_WIDTH_4X; in translate_eth_proto_oper()
374 *active_width = IB_WIDTH_4X; in translate_eth_proto_oper()
416 props->active_width = IB_WIDTH_4X; in mlx5_query_port_roce()
420 &props->active_width); in mlx5_query_port_roce()
1097 static int translate_active_width(struct ib_device *ibdev, u8 active_width, in translate_active_width() argument
1103 if (active_width & MLX5_IB_WIDTH_1X) { in translate_active_width()
1105 } else if (active_width & MLX5_IB_WIDTH_2X) { in translate_active_width()
1107 (int)active_width); in translate_active_width()
1109 } else if (active_width & MLX5_IB_WIDTH_4X) { in translate_active_width()
1111 } else if (active_width & MLX5_IB_WIDTH_8X) { in translate_active_width()
1113 } else if (active_width & MLX5_IB_WIDTH_12X) { in translate_active_width()
1117 (int)active_width); in translate_active_width()
1229 &props->active_width); in mlx5_query_hca_port()