Commit 6c95320d authored by George Shen's avatar George Shen Committed by Alex Deucher

drm/amd/display: Rename set_mst_bandwidth to align with DP spec

[Why]
The function set_mst_bandwidth is poorly name since it isn't clear what
it does, and it also does not reflect any part of the allocation sequence
described in the DP spec.

[How]
Rename the function set_mst_bandwidth to set_throttled_vcp_size.
Signed-off-by: default avatarGeorge Shen <george.shen@amd.com>
Acked-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e8cb7a4d
...@@ -2946,7 +2946,7 @@ enum dc_status dc_link_allocate_mst_payload(struct pipe_ctx *pipe_ctx) ...@@ -2946,7 +2946,7 @@ enum dc_status dc_link_allocate_mst_payload(struct pipe_ctx *pipe_ctx)
pbn = get_pbn_from_timing(pipe_ctx); pbn = get_pbn_from_timing(pipe_ctx);
avg_time_slots_per_mtp = dc_fixpt_div(pbn, pbn_per_slot); avg_time_slots_per_mtp = dc_fixpt_div(pbn, pbn_per_slot);
stream_encoder->funcs->set_mst_bandwidth( stream_encoder->funcs->set_throttled_vcp_size(
stream_encoder, stream_encoder,
avg_time_slots_per_mtp); avg_time_slots_per_mtp);
...@@ -2974,7 +2974,7 @@ static enum dc_status deallocate_mst_payload(struct pipe_ctx *pipe_ctx) ...@@ -2974,7 +2974,7 @@ static enum dc_status deallocate_mst_payload(struct pipe_ctx *pipe_ctx)
*/ */
/* slot X.Y */ /* slot X.Y */
stream_encoder->funcs->set_mst_bandwidth( stream_encoder->funcs->set_throttled_vcp_size(
stream_encoder, stream_encoder,
avg_time_slots_per_mtp); avg_time_slots_per_mtp);
......
...@@ -710,7 +710,7 @@ static void dce110_stream_encoder_lvds_set_stream_attribute( ...@@ -710,7 +710,7 @@ static void dce110_stream_encoder_lvds_set_stream_attribute(
ASSERT(crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB); ASSERT(crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB);
} }
static void dce110_stream_encoder_set_mst_bandwidth( static void dce110_stream_encoder_set_throttled_vcp_size(
struct stream_encoder *enc, struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp) struct fixed31_32 avg_time_slots_per_mtp)
{ {
...@@ -1621,8 +1621,8 @@ static const struct stream_encoder_funcs dce110_str_enc_funcs = { ...@@ -1621,8 +1621,8 @@ static const struct stream_encoder_funcs dce110_str_enc_funcs = {
dce110_stream_encoder_dvi_set_stream_attribute, dce110_stream_encoder_dvi_set_stream_attribute,
.lvds_set_stream_attribute = .lvds_set_stream_attribute =
dce110_stream_encoder_lvds_set_stream_attribute, dce110_stream_encoder_lvds_set_stream_attribute,
.set_mst_bandwidth = .set_throttled_vcp_size =
dce110_stream_encoder_set_mst_bandwidth, dce110_stream_encoder_set_throttled_vcp_size,
.update_hdmi_info_packets = .update_hdmi_info_packets =
dce110_stream_encoder_update_hdmi_info_packets, dce110_stream_encoder_update_hdmi_info_packets,
.stop_hdmi_info_packets = .stop_hdmi_info_packets =
......
...@@ -619,7 +619,7 @@ void enc1_stream_encoder_dvi_set_stream_attribute( ...@@ -619,7 +619,7 @@ void enc1_stream_encoder_dvi_set_stream_attribute(
enc1_stream_encoder_set_stream_attribute_helper(enc1, crtc_timing); enc1_stream_encoder_set_stream_attribute_helper(enc1, crtc_timing);
} }
void enc1_stream_encoder_set_mst_bandwidth( void enc1_stream_encoder_set_throttled_vcp_size(
struct stream_encoder *enc, struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp) struct fixed31_32 avg_time_slots_per_mtp)
{ {
...@@ -1616,8 +1616,8 @@ static const struct stream_encoder_funcs dcn10_str_enc_funcs = { ...@@ -1616,8 +1616,8 @@ static const struct stream_encoder_funcs dcn10_str_enc_funcs = {
enc1_stream_encoder_hdmi_set_stream_attribute, enc1_stream_encoder_hdmi_set_stream_attribute,
.dvi_set_stream_attribute = .dvi_set_stream_attribute =
enc1_stream_encoder_dvi_set_stream_attribute, enc1_stream_encoder_dvi_set_stream_attribute,
.set_mst_bandwidth = .set_throttled_vcp_size =
enc1_stream_encoder_set_mst_bandwidth, enc1_stream_encoder_set_throttled_vcp_size,
.update_hdmi_info_packets = .update_hdmi_info_packets =
enc1_stream_encoder_update_hdmi_info_packets, enc1_stream_encoder_update_hdmi_info_packets,
.stop_hdmi_info_packets = .stop_hdmi_info_packets =
......
...@@ -588,7 +588,7 @@ void enc1_stream_encoder_dvi_set_stream_attribute( ...@@ -588,7 +588,7 @@ void enc1_stream_encoder_dvi_set_stream_attribute(
struct dc_crtc_timing *crtc_timing, struct dc_crtc_timing *crtc_timing,
bool is_dual_link); bool is_dual_link);
void enc1_stream_encoder_set_mst_bandwidth( void enc1_stream_encoder_set_throttled_vcp_size(
struct stream_encoder *enc, struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp); struct fixed31_32 avg_time_slots_per_mtp);
......
...@@ -561,8 +561,8 @@ static const struct stream_encoder_funcs dcn20_str_enc_funcs = { ...@@ -561,8 +561,8 @@ static const struct stream_encoder_funcs dcn20_str_enc_funcs = {
enc1_stream_encoder_hdmi_set_stream_attribute, enc1_stream_encoder_hdmi_set_stream_attribute,
.dvi_set_stream_attribute = .dvi_set_stream_attribute =
enc1_stream_encoder_dvi_set_stream_attribute, enc1_stream_encoder_dvi_set_stream_attribute,
.set_mst_bandwidth = .set_throttled_vcp_size =
enc1_stream_encoder_set_mst_bandwidth, enc1_stream_encoder_set_throttled_vcp_size,
.update_hdmi_info_packets = .update_hdmi_info_packets =
enc2_stream_encoder_update_hdmi_info_packets, enc2_stream_encoder_update_hdmi_info_packets,
.stop_hdmi_info_packets = .stop_hdmi_info_packets =
......
...@@ -790,8 +790,8 @@ static const struct stream_encoder_funcs dcn30_str_enc_funcs = { ...@@ -790,8 +790,8 @@ static const struct stream_encoder_funcs dcn30_str_enc_funcs = {
enc3_stream_encoder_hdmi_set_stream_attribute, enc3_stream_encoder_hdmi_set_stream_attribute,
.dvi_set_stream_attribute = .dvi_set_stream_attribute =
enc3_stream_encoder_dvi_set_stream_attribute, enc3_stream_encoder_dvi_set_stream_attribute,
.set_mst_bandwidth = .set_throttled_vcp_size =
enc1_stream_encoder_set_mst_bandwidth, enc1_stream_encoder_set_throttled_vcp_size,
.update_hdmi_info_packets = .update_hdmi_info_packets =
enc3_stream_encoder_update_hdmi_info_packets, enc3_stream_encoder_update_hdmi_info_packets,
.stop_hdmi_info_packets = .stop_hdmi_info_packets =
......
...@@ -143,7 +143,7 @@ struct stream_encoder_funcs { ...@@ -143,7 +143,7 @@ struct stream_encoder_funcs {
struct stream_encoder *enc, struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing); struct dc_crtc_timing *crtc_timing);
void (*set_mst_bandwidth)( void (*set_throttled_vcp_size)(
struct stream_encoder *enc, struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp); struct fixed31_32 avg_time_slots_per_mtp);
......
...@@ -46,9 +46,10 @@ static void virtual_stream_encoder_dvi_set_stream_attribute( ...@@ -46,9 +46,10 @@ static void virtual_stream_encoder_dvi_set_stream_attribute(
struct dc_crtc_timing *crtc_timing, struct dc_crtc_timing *crtc_timing,
bool is_dual_link) {} bool is_dual_link) {}
static void virtual_stream_encoder_set_mst_bandwidth( static void virtual_stream_encoder_set_throttled_vcp_size(
struct stream_encoder *enc, struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp) {} struct fixed31_32 avg_time_slots_per_mtp)
{}
static void virtual_stream_encoder_update_hdmi_info_packets( static void virtual_stream_encoder_update_hdmi_info_packets(
struct stream_encoder *enc, struct stream_encoder *enc,
...@@ -107,8 +108,8 @@ static const struct stream_encoder_funcs virtual_str_enc_funcs = { ...@@ -107,8 +108,8 @@ static const struct stream_encoder_funcs virtual_str_enc_funcs = {
virtual_stream_encoder_hdmi_set_stream_attribute, virtual_stream_encoder_hdmi_set_stream_attribute,
.dvi_set_stream_attribute = .dvi_set_stream_attribute =
virtual_stream_encoder_dvi_set_stream_attribute, virtual_stream_encoder_dvi_set_stream_attribute,
.set_mst_bandwidth = .set_throttled_vcp_size =
virtual_stream_encoder_set_mst_bandwidth, virtual_stream_encoder_set_throttled_vcp_size,
.update_hdmi_info_packets = .update_hdmi_info_packets =
virtual_stream_encoder_update_hdmi_info_packets, virtual_stream_encoder_update_hdmi_info_packets,
.stop_hdmi_info_packets = .stop_hdmi_info_packets =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment