/drivers/gpu/drm/amd/display/dc/inc/ |
D | link.h | 95 struct dc_link *link; 101 struct dc_link *(*create_link)( 103 void (*destroy_link)(struct dc_link **link); 107 bool (*detect_link)(struct dc_link *link, enum dc_detect_reason reason); 108 bool (*detect_connection_type)(struct dc_link *link, 111 struct dc_link *link, 115 void (*remove_remote_sink)(struct dc_link *link, struct dc_sink *sink); 116 bool (*get_hpd_state)(struct dc_link *link); 120 void (*enable_hpd)(const struct dc_link *link); 121 void (*disable_hpd)(const struct dc_link *link); [all …]
|
D | link_hwss.h | 36 struct dc_link; 54 void (*enable_dp_link_output)(struct dc_link *link, 59 void (*set_dp_link_test_pattern)(struct dc_link *link, 62 void (*set_dp_lane_settings)(struct dc_link *link, 66 void (*update_stream_allocation_table)(struct dc_link *link, 80 void (*disable_link_output)(struct dc_link *link,
|
/drivers/gpu/drm/amd/display/dc/link/protocols/ |
D | link_edp_panel_control.h | 30 enum dp_panel_mode dp_get_panel_mode(struct dc_link *link); 31 void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode); 32 bool set_default_brightness_aux(struct dc_link *link); 33 void edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd); 34 int edp_get_backlight_level(const struct dc_link *link); 35 bool edp_get_backlight_level_nits(struct dc_link *link, 38 bool edp_set_backlight_level(const struct dc_link *link, 41 bool edp_set_backlight_level_nits(struct dc_link *link, 45 int edp_get_target_backlight_pwm(const struct dc_link *link); 46 bool edp_get_psr_state(const struct dc_link *link, enum dc_psr_state *state); [all …]
|
D | link_dp_capability.h | 31 bool detect_dp_sink_caps(struct dc_link *link); 33 void detect_edp_sink_caps(struct dc_link *link); 35 struct dc_link_settings dp_get_max_link_cap(struct dc_link *link); 37 bool dp_get_max_link_enc_cap(const struct dc_link *link, 41 const struct dc_link *link); 46 enum dc_status dp_retrieve_lttpr_cap(struct dc_link *link); 51 bool dp_is_sink_present(struct dc_link *link); 53 bool dp_is_lttpr_present(struct dc_link *link); 55 bool dp_is_fec_supported(const struct dc_link *link); 57 bool is_dp_active_dongle(const struct dc_link *link); [all …]
|
D | link_dp_training.h | 40 struct dc_link *link, 46 struct dc_link *link, 52 struct dc_link *link, 59 struct dc_link *link, 64 struct dc_link *link, 70 struct dc_link *link, 74 struct dc_link *link, 81 struct dc_link *link, 89 struct dc_link *link, 92 enum dc_status configure_lttpr_mode_transparent(struct dc_link *link); [all …]
|
D | link_hpd.h | 31 enum hpd_source_id get_hpd_line(struct dc_link *link); 41 bool program_hpd_filter(const struct dc_link *link); 45 bool dpia_query_hpd_status(struct dc_link *link); 46 bool query_hpd_status(struct dc_link *link, uint32_t *is_hpd_high); 47 bool link_get_hpd_state(struct dc_link *link); 51 void link_enable_hpd(const struct dc_link *link); 52 void link_disable_hpd(const struct dc_link *link); 53 void link_enable_hpd_filter(struct dc_link *link, bool enable);
|
D | link_dp_phy.h | 31 struct dc_link *link, 37 void dp_disable_link_phy(struct dc_link *link, 42 struct dc_link *link, 48 struct dc_link *link, 52 enum dc_status dp_set_fec_ready(struct dc_link *link, 55 void dp_set_fec_enable(struct dc_link *link, bool enable); 57 void dpcd_write_rx_power_ctrl(struct dc_link *link, bool on);
|
D | link_dp_dpia_bw.c | 47 static bool get_bw_alloc_proceed_flag(struct dc_link *tmp) in get_bw_alloc_proceed_flag() 54 static void reset_bw_alloc_struct(struct dc_link *link) in reset_bw_alloc_struct() 75 static uint8_t get_bw_granularity(struct dc_link *link) in get_bw_granularity() 101 static int get_estimated_bw(struct dc_link *link) in get_estimated_bw() 114 static int get_non_reduced_max_link_rate(struct dc_link *link) in get_non_reduced_max_link_rate() 127 static int get_non_reduced_max_lane_count(struct dc_link *link) in get_non_reduced_max_lane_count() 145 static void init_usb4_bw_struct(struct dc_link *link) in init_usb4_bw_struct() 163 static uint8_t get_lowest_dpia_index(struct dc_link *link) in get_lowest_dpia_index() 196 struct dc_link *link_dpia_primary, *link_dpia_secondary; in get_host_router_total_dp_tunnel_bw() 243 static void dpia_bw_alloc_unplug(struct dc_link *link) in dpia_bw_alloc_unplug() [all …]
|
D | link_dp_dpia_bw.h | 52 bool link_dp_dpia_set_dptx_usb4_bw_alloc_support(struct dc_link *link); 64 bool link_dp_dpia_allocate_usb4_bandwidth_for_stream(struct dc_link *link, int req_bw); 76 int dpia_handle_usb4_bandwidth_allocation_for_link(struct dc_link *link, int peak_bw); 88 void dpia_handle_bw_alloc_response(struct dc_link *link, uint8_t bw, uint8_t result); 100 bool dpia_validate_usb4_bw(struct dc_link **link, int *bw_needed, const unsigned int num_dpias); 109 int link_dp_dpia_get_dp_overhead_in_dp_tunneling(struct dc_link *link);
|
D | link_edp_panel_control.c | 50 void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) in dp_set_panel_mode() 98 enum dp_panel_mode dp_get_panel_mode(struct dc_link *link) in dp_get_panel_mode() 152 bool edp_set_backlight_level_nits(struct dc_link *link, in edp_set_backlight_level_nits() 205 bool edp_get_backlight_level_nits(struct dc_link *link, in edp_get_backlight_level_nits() 235 bool edp_backlight_enable_aux(struct dc_link *link, bool enable) in edp_backlight_enable_aux() 252 static bool read_default_bl_aux(struct dc_link *link, uint32_t *backlight_millinits) in read_default_bl_aux() 276 bool set_default_brightness_aux(struct dc_link *link) in set_default_brightness_aux() 293 bool edp_is_ilr_optimization_enabled(struct dc_link *link) in edp_is_ilr_optimization_enabled() 300 enum dc_link_rate get_max_link_rate_from_ilr_table(struct dc_link *link) in get_max_link_rate_from_ilr_table() 312 bool edp_is_ilr_optimization_required(struct dc_link *link, in edp_is_ilr_optimization_required() [all …]
|
D | link_dp_irq_handler.h | 31 struct dc_link *link, 33 bool dp_should_allow_hpd_rx_irq(const struct dc_link *link); 34 void dp_handle_link_loss(struct dc_link *link); 36 struct dc_link *link, 38 bool dp_handle_hpd_rx_irq(struct dc_link *link,
|
D | link_dp_training_8b_10b.h | 38 struct dc_link *link, 43 struct dc_link *link, 49 struct dc_link *link, 54 enum lttpr_mode dp_decide_8b_10b_lttpr_mode(struct dc_link *link); 57 struct dc_link *link,
|
D | link_dp_phy.c | 43 void dpcd_write_rx_power_ctrl(struct dc_link *link, bool on) in dpcd_write_rx_power_ctrl() 58 struct dc_link *link, in dp_enable_link_phy() 70 void dp_disable_link_phy(struct dc_link *link, in dp_disable_link_phy() 89 static inline bool is_immediate_downstream(struct dc_link *link, uint32_t offset) in is_immediate_downstream() 96 struct dc_link *link, in dp_set_hw_lane_settings() 118 struct dc_link *link, in dp_set_drive_settings() 133 enum dc_status dp_set_fec_ready(struct dc_link *link, const struct link_resource *link_res, bool re… in dp_set_fec_ready() 180 void dp_set_fec_enable(struct dc_link *link, bool enable) in dp_set_fec_enable()
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_exports.c | 38 struct dc_link *dc_get_link_at_index(struct dc *dc, uint32_t link_index) in dc_get_link_at_index() 44 struct dc_link **edp_links, in dc_get_edp_links() 63 const struct dc_link *link, in dc_get_edp_link_panel_inst() 66 struct dc_link *edp_links[MAX_NUM_EDP]; in dc_get_edp_link_panel_inst() 81 bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason) in dc_link_detect() 86 bool dc_link_detect_connection_type(struct dc_link *link, in dc_link_detect_connection_type() 92 const struct dc_link_status *dc_link_get_status(const struct dc_link *link) in dc_link_get_status() 98 bool dc_link_is_hdcp14(struct dc_link *link, enum signal_type signal) in dc_link_is_hdcp14() 103 bool dc_link_is_hdcp22(struct dc_link *link, enum signal_type signal) in dc_link_is_hdcp22() 108 void dc_link_clear_dprx_states(struct dc_link *link) in dc_link_clear_dprx_states() [all …]
|
/drivers/gpu/drm/amd/display/dc/link/accessories/ |
D | link_dp_trace.h | 29 void dp_trace_init(struct dc_link *link); 30 void dp_trace_reset(struct dc_link *link); 31 bool dp_trace_is_initialized(struct dc_link *link); 32 void dp_trace_detect_lt_init(struct dc_link *link); 33 void dp_trace_commit_lt_init(struct dc_link *link); 34 void dp_trace_link_loss_increment(struct dc_link *link); 35 void dp_trace_lt_fail_count_update(struct dc_link *link, 38 void dp_trace_lt_total_count_increment(struct dc_link *link, 40 void dp_trace_set_is_logged_flag(struct dc_link *link, 43 bool dp_trace_is_logged(struct dc_link *link, [all …]
|
D | link_dp_trace.c | 29 void dp_trace_init(struct dc_link *link) in dp_trace_init() 35 void dp_trace_reset(struct dc_link *link) in dp_trace_reset() 40 bool dp_trace_is_initialized(struct dc_link *link) in dp_trace_is_initialized() 45 void dp_trace_detect_lt_init(struct dc_link *link) in dp_trace_detect_lt_init() 50 void dp_trace_commit_lt_init(struct dc_link *link) in dp_trace_commit_lt_init() 55 void dp_trace_link_loss_increment(struct dc_link *link) in dp_trace_link_loss_increment() 60 void dp_trace_lt_fail_count_update(struct dc_link *link, in dp_trace_lt_fail_count_update() 70 void dp_trace_lt_total_count_increment(struct dc_link *link, in dp_trace_lt_total_count_increment() 79 void dp_trace_set_is_logged_flag(struct dc_link *link, in dp_trace_set_is_logged_flag() 89 bool dp_trace_is_logged(struct dc_link *link, bool in_detection) in dp_trace_is_logged() [all …]
|
/drivers/gpu/drm/amd/display/dc/ |
D | dm_helpers.h | 62 struct dc_link *link, 72 const struct dc_link *link); 88 const struct dc_link *link); 95 const struct dc_link *link); 113 const struct dc_link *link, 118 struct dc_link *link); 122 struct dc_link *link); 129 const struct dc_link *link, 139 const struct dc_link *link, 146 const struct dc_link *link, [all …]
|
D | dc.h | 938 struct dc_link *links[MAX_PIPES * 2]; 1444 struct dc_link { struct 1588 struct dc_link *dc_get_link_at_index(struct dc *dc, uint32_t link_index); 1592 const struct dc_link *link, 1597 struct dc_link **edp_links, 1600 void dc_set_edp_power(const struct dc *dc, struct dc_link *edp_link, 1623 bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason); 1638 struct dc_link *dc_link, 1648 struct dc_link *link, 1652 void dc_link_enable_hpd(const struct dc_link *link); [all …]
|
/drivers/gpu/drm/amd/display/dc/link/ |
D | link_detection.h | 29 bool link_detect(struct dc_link *link, enum dc_detect_reason reason); 30 bool link_detect_connection_type(struct dc_link *link, 33 struct dc_link *link, 37 void link_remove_remote_sink(struct dc_link *link, struct dc_sink *sink); 38 bool link_reset_cur_dp_mst_topology(struct dc_link *link); 39 const struct dc_link_status *link_get_status(const struct dc_link *link); 40 bool link_is_hdcp14(struct dc_link *link, enum signal_type signal); 41 bool link_is_hdcp22(struct dc_link *link, enum signal_type signal); 42 void link_clear_dprx_states(struct dc_link *link);
|
D | link_detection.c | 164 static enum signal_type link_detect_sink_signal_type(struct dc_link *link, in link_detect_sink_signal_type() 456 static void link_disconnect_sink(struct dc_link *link) in link_disconnect_sink() 467 static void link_disconnect_remap(struct dc_sink *prev_sink, struct dc_link *link) in link_disconnect_remap() 473 static void query_hdcp_capability(enum signal_type signal, struct dc_link *link) in query_hdcp_capability() 512 static void read_current_link_settings_on_detect(struct dc_link *link) in read_current_link_settings_on_detect() 577 static bool detect_dp(struct dc_link *link, in detect_dp() 624 static bool wait_for_entering_dp_alt_mode(struct dc_link *link) in wait_for_entering_dp_alt_mode() 679 static void apply_dpia_mst_dsc_always_on_wa(struct dc_link *link) in apply_dpia_mst_dsc_always_on_wa() 693 static void revert_dpia_mst_dsc_always_on_wa(struct dc_link *link) in revert_dpia_mst_dsc_always_on_wa() 700 static bool discover_dp_mst_topology(struct dc_link *link, enum dc_detect_reason reason) in discover_dp_mst_topology() [all …]
|
D | link_dpms.h | 34 void link_resume(struct dc_link *link); 37 void link_blank_dp_stream(struct dc_link *link, bool hw_init); 38 void link_set_all_streams_dpms_off_for_link(struct dc_link *link); 39 void link_get_master_pipes_with_dpms_on(const struct dc_link *link, 49 const struct dc_link *link);
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_mst_types.c | 124 dc_link_remove_remote_sink(aconnector->dc_link, in dm_dp_mst_connector_destroy() 162 struct dc_link *dc_link = aconnector->dc_link; in amdgpu_dm_mst_connector_early_unregister() local 173 if (dc_link->sink_count) in amdgpu_dm_mst_connector_early_unregister() 174 dc_link_remove_remote_sink(dc_link, dc_sink); in amdgpu_dm_mst_connector_early_unregister() 177 dc_sink, dc_link->sink_count); in amdgpu_dm_mst_connector_early_unregister() 200 bool needs_dsc_aux_workaround(struct dc_link *link) in needs_dsc_aux_workaround() 210 static bool is_synaptics_cascaded_panamera(struct dc_link *link, struct drm_dp_mst_port *port) in is_synaptics_cascaded_panamera() 245 needs_dsc_aux_workaround(aconnector->dc_link)) in validate_dsc_caps_on_connector() 249 if (!aconnector->dsc_aux && is_synaptics_cascaded_panamera(aconnector->dc_link, port)) in validate_dsc_caps_on_connector() 262 if (!dc_dsc_parse_dsc_dpcd(aconnector->dc_link->ctx->dc, in validate_dsc_caps_on_connector() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.h | 75 struct dc_link *link, 79 struct dc_link *link, 83 struct dc_link *link, 91 void dce110_disable_link_output(struct dc_link *link, 94 void dce110_enable_lvds_link_output(struct dc_link *link, 98 void dce110_enable_tmds_link_output(struct dc_link *link, 105 struct dc_link *link,
|
/drivers/gpu/drm/amd/display/dc/link/hwss/ |
D | link_hwss_dio.h | 32 bool can_use_dio_link_hwss(const struct dc_link *link, 39 void enable_dio_dp_link_output(struct dc_link *link, 44 void disable_dio_link_output(struct dc_link *link, 47 void set_dio_dp_link_test_pattern(struct dc_link *link, 50 void set_dio_dp_lane_settings(struct dc_link *link, 58 void update_dio_stream_allocation_table(struct dc_link *link,
|
D | link_hwss_dio_fixed_vs_pe_retimer.h | 30 uint32_t dp_dio_fixed_vs_pe_retimer_get_lttpr_write_address(struct dc_link *link); 31 uint8_t dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg(struct dc_link *link); 32 void dp_dio_fixed_vs_pe_retimer_exit_manual_automation(struct dc_link *link); 33 void enable_dio_fixed_vs_pe_retimer_program_4lane_output(struct dc_link *link); 34 bool requires_fixed_vs_pe_retimer_dio_link_hwss(const struct dc_link *link);
|