Home
last modified time | relevance | path

Searched refs:max_lanes (Results 1 – 25 of 25) sorted by relevance

/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Dethtool_lanes.sh55 local max_lanes=$1; shift
59 local unsupported_lanes=$((max_lanes *= 2))
73 local max_lanes
110 local max_lanes
115 max_lanes=${max_values[1]}
117 lanes=$max_lanes
134 check_unsupported_lanes $swp1 $max_speed $max_lanes 1
147 local max_lanes
152 max_lanes=${max_values[1]}
154 lanes=$max_lanes
[all …]
/Linux-v6.1/tools/testing/selftests/net/
Ddevlink_port_split.py156 max_lanes = get_max_lanes(port)
160 if max_lanes != lanes:
162 % (port, lanes, max_lanes))
259 max_lanes = get_max_lanes(port.name)
262 if max_lanes == 0:
266 elif max_lanes == 1:
269 split_unsplittable_port(port, max_lanes)
273 lane = max_lanes
277 split_splittable_port(port, lane, max_lanes, dev)
/Linux-v6.1/drivers/media/platform/cadence/
Dcdns-csi2rx.c75 u8 max_lanes; member
129 for (i = csi2rx->num_lanes; i < csi2rx->max_lanes; i++) { in csi2rx_start()
131 csi2rx->max_lanes); in csi2rx_start()
326 csi2rx->max_lanes = dev_cfg & 7; in csi2rx_get_resources()
327 if (csi2rx->max_lanes > CSI2RX_LANES_MAX) { in csi2rx_get_resources()
329 csi2rx->max_lanes); in csi2rx_get_resources()
395 if (csi2rx->num_lanes > csi2rx->max_lanes) { in csi2rx_parse_dt()
464 csi2rx->num_lanes, csi2rx->max_lanes, csi2rx->max_streams, in csi2rx_probe()
Dcdns-csi2tx.c117 unsigned int max_lanes; member
466 csi2tx->max_lanes = dev_cfg & CSI2TX_DEVICE_CONFIG_LANES_MASK; in csi2tx_get_resources()
467 if (csi2tx->max_lanes > CSI2TX_LANES_MAX) { in csi2tx_get_resources()
469 csi2tx->max_lanes); in csi2tx_get_resources()
521 if (csi2tx->num_lanes > csi2tx->max_lanes) { in csi2tx_check_lanes()
628 csi2tx->num_lanes, csi2tx->max_lanes, csi2tx->max_streams, in csi2tx_probe()
/Linux-v6.1/drivers/gpu/drm/xlnx/
Dzynqmp_dp.c249 u8 max_lanes; member
566 u8 max_lanes = dp->link_config.max_lanes; in zynqmp_dp_mode_configure() local
588 for (lane_cnt = 1; lane_cnt <= max_lanes; lane_cnt <<= 1) { in zynqmp_dp_mode_configure()
1317 link_config->max_lanes = min_t(u8, in zynqmp_dp_connector_detect()
1359 u8 max_lanes = dp->link_config.max_lanes; in zynqmp_dp_connector_mode_valid() local
1372 rate = zynqmp_dp_max_rate(max_rate, max_lanes, bpp); in zynqmp_dp_connector_mode_valid()
1458 u8 max_lanes = dp->link_config.max_lanes; in zynqmp_dp_encoder_atomic_mode_set() local
1466 rate = zynqmp_dp_max_rate(max_rate, max_lanes, bpp); in zynqmp_dp_encoder_atomic_mode_set()
/Linux-v6.1/drivers/gpu/drm/rockchip/
Dcdn-dp-reg.c539 dp->max_lanes = status[1]; in cdn_dp_get_training_status()
564 dp->max_lanes); in cdn_dp_train_link()
662 do_div(symbol, dp->max_lanes * link_rate * 8); in cdn_dp_config_video()
668 mode->clock, dp->max_lanes, link_rate); in cdn_dp_config_video()
682 val /= (dp->max_lanes * link_rate); in cdn_dp_config_video()
835 if (dp->max_lanes == 1) in cdn_dp_audio_config_i2s()
Dcdn-dp-core.h98 u8 max_lanes; member
Dcdn-dp-core.c490 dp->max_lanes = 0; in cdn_dp_disable()
583 if (!port || !dp->max_rate || !dp->max_lanes) in cdn_dp_check_link_status()
989 unsigned int lanes = dp->max_lanes; in cdn_dp_pd_event_work()
1002 (rate != dp->max_rate || lanes != dp->max_lanes)) { in cdn_dp_pd_event_work()
/Linux-v6.1/drivers/gpu/drm/tegra/
Ddp.c43 link->max_lanes = 0; in drm_dp_link_reset()
184 link->max_lanes = drm_dp_max_lane_count(dpcd); in drm_dp_link_probe()
233 link->lanes = link->max_lanes; in drm_dp_link_probe()
402 for (i = 0; i < ARRAY_SIZE(lanes) && lanes[i] <= link->max_lanes; i++) { in drm_dp_link_choose()
Ddp.h125 unsigned int max_lanes; member
/Linux-v6.1/drivers/gpu/drm/i915/display/
Dintel_tc.c488 int max_lanes; in icl_tc_phy_connect() local
508 max_lanes = intel_tc_port_fia_max_lane_count(dig_port); in icl_tc_phy_connect()
510 drm_WARN_ON(&i915->drm, max_lanes != 4); in icl_tc_phy_connect()
526 if (max_lanes < required_lanes) { in icl_tc_phy_connect()
530 max_lanes, required_lanes); in icl_tc_phy_connect()
Dintel_dp.c292 int max_lanes = dig_port->max_lanes; in intel_dp_max_source_lane_count() local
295 max_lanes = min(max_lanes, vbt_max_lanes); in intel_dp_max_source_lane_count()
297 return max_lanes; in intel_dp_max_source_lane_count()
360 intel_dp_max_data_rate(int max_link_rate, int max_lanes) in intel_dp_max_data_rate() argument
384 return max_link_rate * max_lanes; in intel_dp_max_data_rate()
969 int max_rate, mode_rate, max_lanes, max_link_clock; in intel_dp_mode_valid() local
1002 max_lanes = intel_dp_max_lane_count(intel_dp); in intel_dp_mode_valid()
1004 max_rate = intel_dp_max_data_rate(max_link_clock, max_lanes); in intel_dp_mode_valid()
1033 max_lanes, in intel_dp_mode_valid()
2398 int max_lanes, rate_per_lane; in intel_dp_hdmi_sink_max_frl() local
[all …]
Dintel_dp.h81 int intel_dp_max_data_rate(int max_link_rate, int max_lanes);
Dintel_dp_mst.c692 int max_rate, mode_rate, max_lanes, max_link_clock; in intel_dp_mst_mode_valid_ctx() local
706 max_lanes = intel_dp_max_lane_count(intel_dp); in intel_dp_mst_mode_valid_ctx()
708 max_rate = intel_dp_max_data_rate(max_link_clock, max_lanes); in intel_dp_mst_mode_valid_ctx()
Dintel_ddi.c987 if (encoder->port == PORT_A && dig_port->max_lanes == 4) in skl_ddi_set_iboost()
4081 int max_lanes = 4; in intel_ddi_max_lanes() local
4084 return max_lanes; in intel_ddi_max_lanes()
4088 max_lanes = port == PORT_A ? 4 : 0; in intel_ddi_max_lanes()
4091 max_lanes = 2; in intel_ddi_max_lanes()
4103 max_lanes = 4; in intel_ddi_max_lanes()
4106 return max_lanes; in intel_ddi_max_lanes()
4460 dig_port->max_lanes = intel_ddi_max_lanes(dig_port); in intel_ddi_init()
Dg4x_hdmi.c600 dig_port->max_lanes = 4; in g4x_hdmi_init()
Dintel_display_types.h1749 u8 max_lanes; member
Dg4x_dp.c1358 dig_port->max_lanes = 4; in g4x_dp_init()
Dintel_hdmi.c2944 if (drm_WARN(dev, dig_port->max_lanes < 4, in intel_hdmi_init_connector()
2946 dig_port->max_lanes, intel_encoder->base.base.id, in intel_hdmi_init_connector()
/Linux-v6.1/include/drm/
Ddrm_connector.h213 u8 max_lanes; member
258 u8 max_lanes; member
/Linux-v6.1/drivers/gpu/drm/gma500/
Dcdv_intel_dp.c370 cdv_intel_dp_max_data_rate(int max_link_clock, int max_lanes) in cdv_intel_dp_max_data_rate() argument
372 return (max_link_clock * max_lanes * 19) / 20; in cdv_intel_dp_max_data_rate()
512 int max_lanes = cdv_intel_dp_max_lane_count(encoder); in cdv_intel_dp_mode_valid() local
526 > cdv_intel_dp_max_data_rate(max_link_clock, max_lanes))) in cdv_intel_dp_mode_valid()
531 > cdv_intel_dp_max_data_rate(max_link_clock, max_lanes)) in cdv_intel_dp_mode_valid()
/Linux-v6.1/drivers/gpu/drm/mediatek/
Dmtk_dp.c103 u8 max_lanes; member
1289 mtk_dp->train_info.lane_count = mtk_dp->max_lanes; in mtk_dp_initialize_priv_data()
1656 lane_count = min_t(u8, mtk_dp->max_lanes, in mtk_dp_training()
1906 mtk_dp->max_lanes = len; in mtk_dp_dt_parse()
2260 mtk_dp->max_lanes); in mtk_dp_bridge_mode_valid()
2306 mtk_dp->max_lanes); in mtk_dp_bridge_atomic_get_input_bus_fmts()
/Linux-v6.1/drivers/gpu/drm/
Ddrm_edid.c5711 void drm_get_max_frl_rate(int max_frl_rate, u8 *max_lanes, u8 *max_rate_per_lane) in drm_get_max_frl_rate() argument
5715 *max_lanes = 3; in drm_get_max_frl_rate()
5719 *max_lanes = 3; in drm_get_max_frl_rate()
5723 *max_lanes = 4; in drm_get_max_frl_rate()
5727 *max_lanes = 4; in drm_get_max_frl_rate()
5731 *max_lanes = 4; in drm_get_max_frl_rate()
5735 *max_lanes = 4; in drm_get_max_frl_rate()
5740 *max_lanes = 0; in drm_get_max_frl_rate()
5807 drm_get_max_frl_rate(max_frl_rate, &hdmi->max_lanes, in drm_parse_hdmi_forum_scds()
5825 drm_get_max_frl_rate(dsc_max_frl_rate, &hdmi_dsc->max_lanes, in drm_parse_hdmi_forum_scds()
/Linux-v6.1/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c642 u32 max_lanes, u32 max_rate) in analogix_dp_full_link_train() argument
672 if (dp->link_train.lane_count > max_lanes) in analogix_dp_full_link_train()
673 dp->link_train.lane_count = max_lanes; in analogix_dp_full_link_train()
/Linux-v6.1/drivers/gpu/drm/display/
Ddrm_dp_helper.c2586 u8 max_lanes = dp_lttpr_common_cap(caps, DP_MAX_LANE_COUNT_PHY_REPEATER); in drm_dp_lttpr_max_lane_count() local
2588 return max_lanes & DP_MAX_LANE_COUNT_MASK; in drm_dp_lttpr_max_lane_count()
3168 for (i = 0; i < hdmi->max_lanes; i++) { in drm_dp_pcon_hdmi_frl_link_error_count()