| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_dp_link_training.c | 445 struct intel_dp *dp; 458 static void intel_dp_reset_lttpr_common_caps(struct intel_dp *intel_dp) in intel_dp_reset_lttpr_common_caps() argument 460 memset(intel_dp->lttpr_common_caps, 0, sizeof(intel_dp->lttpr_common_caps)); in intel_dp_reset_lttpr_common_caps() 463 static void intel_dp_reset_lttpr_count(struct intel_dp *intel_dp) in intel_dp_reset_lttpr_count() argument 465 intel_dp->lttpr_common_caps[DP_PHY_REPEATER_CNT - in intel_dp_reset_lttpr_count() 469 static u8 *intel_dp_lttpr_phy_caps(struct intel_dp *intel_dp, in intel_dp_lttpr_phy_caps() argument 472 return intel_dp->lttpr_phy_caps[dp_phy - DP_PHY_LTTPR1]; in intel_dp_lttpr_phy_caps() 475 static void intel_dp_read_lttpr_phy_caps(struct intel_dp *intel_dp, in intel_dp_read_lttpr_phy_caps() argument 479 u8 *phy_caps = intel_dp_lttpr_phy_caps(intel_dp, dp_phy); in intel_dp_read_lttpr_phy_caps() 481 if (drm_dp_read_lttpr_phy_caps(&intel_dp->aux, dpcd, dp_phy, phy_caps) < 0) { in intel_dp_read_lttpr_phy_caps() [all …]
|
| H A D | intel_psr.c | 194 #define CAN_PSR(intel_dp) ((intel_dp)->psr.sink_support && \ argument 195 (intel_dp)->psr.source_support) 225 static bool psr_global_enabled(struct intel_dp *intel_dp) in psr_global_enabled() argument 227 struct intel_connector *connector = intel_dp->attached_connector; in psr_global_enabled() 229 switch (intel_dp->psr.debug & I915_PSR_DEBUG_MODE_MASK) { in psr_global_enabled() 231 return intel_dp_is_edp(intel_dp) ? in psr_global_enabled() 240 static bool sel_update_global_enabled(struct intel_dp *intel_dp) in sel_update_global_enabled() argument 242 switch (intel_dp->psr.debug & I915_PSR_DEBUG_MODE_MASK) { in sel_update_global_enabled() 251 static bool panel_replay_global_enabled(struct intel_dp *intel_dp) in panel_replay_global_enabled() argument 253 struct intel_display *display = to_intel_display(intel_dp); in panel_replay_global_enabled() [all …]
|
| H A D | intel_dp.c | 119 bool intel_dp_is_edp(struct intel_dp *intel_dp) in intel_dp_is_edp() argument 121 struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp); in intel_dp_is_edp() 126 static void intel_dp_unset_edid(struct intel_dp *intel_dp); 158 static int max_dprx_rate(struct intel_dp *intel_dp) in max_dprx_rate() argument 160 struct intel_display *display = to_intel_display(intel_dp); in max_dprx_rate() 163 if (intel_dp_tunnel_bw_alloc_is_enabled(intel_dp)) in max_dprx_rate() 164 max_rate = drm_dp_tunnel_max_dprx_rate(intel_dp->tunnel); in max_dprx_rate() 166 max_rate = drm_dp_bw_code_to_link_rate(intel_dp->dpcd[DP_MAX_LINK_RATE]); in max_dprx_rate() 174 if (intel_dp_is_edp(intel_dp) && intel_has_quirk(display, QUIRK_EDP_LIMIT_RATE_HBR2)) in max_dprx_rate() 180 static int max_dprx_lane_count(struct intel_dp *intel_dp) in max_dprx_lane_count() argument [all …]
|
| H A D | intel_dp_mst.c | 107 static struct intel_dp *to_primary_dp(struct intel_encoder *encoder) in to_primary_dp() 115 int intel_dp_mst_active_streams(struct intel_dp *intel_dp) in intel_dp_mst_active_streams() argument 117 return intel_dp->mst.active_streams; in intel_dp_mst_active_streams() 120 static bool intel_dp_mst_dec_active_streams(struct intel_dp *intel_dp) in intel_dp_mst_dec_active_streams() argument 122 struct intel_display *display = to_intel_display(intel_dp); in intel_dp_mst_dec_active_streams() 125 intel_dp->mst.active_streams, intel_dp->mst.active_streams - 1); in intel_dp_mst_dec_active_streams() 127 if (drm_WARN_ON(display->drm, intel_dp->mst.active_streams == 0)) in intel_dp_mst_dec_active_streams() 130 return --intel_dp->mst.active_streams == 0; in intel_dp_mst_dec_active_streams() 133 static bool intel_dp_mst_inc_active_streams(struct intel_dp *intel_dp) in intel_dp_mst_inc_active_streams() argument 135 struct intel_display *display = to_intel_display(intel_dp); in intel_dp_mst_inc_active_streams() [all …]
|
| H A D | intel_dp_mst.h | 16 struct intel_dp; 21 int intel_dp_mst_active_streams(struct intel_dp *intel_dp); 24 bool intel_dp_mst_source_support(struct intel_dp *intel_dp); 33 void intel_dp_mst_prepare_probe(struct intel_dp *intel_dp); 34 bool intel_dp_mst_verify_dpcd_state(struct intel_dp *intel_dp); 36 int intel_dp_mtp_tu_compute_config(struct intel_dp *intel_dp,
|
| H A D | intel_dp_aux_backlight.c | 115 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_supports_hdr_backlight() local 116 struct drm_dp_aux *aux = &intel_dp->aux; in intel_dp_aux_supports_hdr_backlight() 121 intel_dp_wait_source_oui(intel_dp); in intel_dp_aux_supports_hdr_backlight() 178 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_hdr_get_backlight() local 182 if (drm_dp_dpcd_readb(&intel_dp->aux, INTEL_EDP_HDR_GETSET_CTRL_PARAMS, &tmp) != 1) { in intel_dp_aux_hdr_get_backlight() 200 if (drm_dp_dpcd_read(&intel_dp->aux, INTEL_EDP_BRIGHTNESS_NITS_LSB, buf, in intel_dp_aux_hdr_get_backlight() 216 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_hdr_set_aux_backlight() local 222 if (drm_dp_dpcd_write(&intel_dp->aux, INTEL_EDP_BRIGHTNESS_NITS_LSB, buf, in intel_dp_aux_hdr_set_aux_backlight() 249 struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder); in intel_dp_aux_write_content_luminance() local 261 ret = drm_dp_dpcd_write(&intel_dp->aux, in intel_dp_aux_write_content_luminance() [all …]
|
| H A D | intel_quirks.c | 19 static void intel_set_dpcd_quirk(struct intel_dp *intel_dp, enum intel_quirk_id quirk) in intel_set_dpcd_quirk() argument 21 intel_dp->quirks.mask |= BIT(quirk); in intel_set_dpcd_quirk() 75 static void quirk_fw_sync_len(struct intel_dp *intel_dp) in quirk_fw_sync_len() argument 77 struct intel_display *display = to_intel_display(intel_dp); in quirk_fw_sync_len() 79 intel_set_dpcd_quirk(intel_dp, QUIRK_FW_SYNC_LEN); in quirk_fw_sync_len() 89 static void quirk_disable_edp_panel_replay(struct intel_dp *intel_dp) in quirk_disable_edp_panel_replay() argument 91 struct intel_display *display = to_intel_display(intel_dp); in quirk_disable_edp_panel_replay() 93 intel_set_dpcd_quirk(intel_dp, QUIRK_DISABLE_EDP_PANEL_REPLAY); in quirk_disable_edp_panel_replay() 116 void (*hook)(struct intel_dp *intel_dp); 316 void intel_init_dpcd_quirks(struct intel_dp *intel_dp, in intel_init_dpcd_quirks() argument [all …]
|
| H A D | intel_dp_link_caps.c | 107 struct intel_dp *dp; 226 struct intel_dp *intel_dp = intel_attached_dp(connector); in intel_dp_link_caps_connector_compute_order() local 229 .dir = connector_compute_order_dir(connector->mst.dp, intel_dp->use_max_params) in intel_dp_link_caps_connector_compute_order() 784 struct intel_dp *intel_dp = (struct intel_dp *)p; /* remove const */ in link_config_cmp_by_bw() local 785 struct intel_dp_link_caps *link_caps = intel_dp->link.caps; in link_config_cmp_by_bw() 859 struct intel_dp *intel_dp = link_caps->dp; in intel_dp_link_caps_update() local 860 struct intel_display *display = to_intel_display(intel_dp); in intel_dp_link_caps_update() 907 intel_dp); in intel_dp_link_caps_update() 951 struct intel_dp *intel_dp = intel_attached_dp(connector); in i915_dp_force_link_rate_show() local 952 struct intel_dp_link_caps *link_caps = intel_dp->link.caps; in i915_dp_force_link_rate_show() [all …]
|
| H A D | intel_dp_aux.h | 13 struct intel_dp; 16 void intel_dp_aux_fini(struct intel_dp *intel_dp); 17 void intel_dp_aux_init(struct intel_dp *intel_dp); 23 int intel_dp_aux_fw_sync_len(struct intel_dp *intel_dp);
|
| H A D | intel_ddi.c | 357 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_ddi_init_dp_buf_reg() local 361 intel_dp->DP = DDI_PORT_WIDTH(crtc_state->lane_count) | in intel_ddi_init_dp_buf_reg() 365 intel_dp->DP |= DDI_BUF_PORT_REVERSAL; in intel_ddi_init_dp_buf_reg() 367 intel_dp->DP |= DDI_A_4_LANES; in intel_ddi_init_dp_buf_reg() 371 intel_dp->DP |= DDI_BUF_PORT_DATA_40BIT; in intel_ddi_init_dp_buf_reg() 373 intel_dp->DP |= DDI_BUF_PORT_DATA_10BIT; in intel_ddi_init_dp_buf_reg() 377 intel_dp->DP |= ddi_buf_phy_link_rate(crtc_state->port_clock); in intel_ddi_init_dp_buf_reg() 379 intel_dp->DP |= DDI_BUF_CTL_TC_PHY_OWNERSHIP; in intel_ddi_init_dp_buf_reg() 385 intel_dp->DP |= DDI_BUF_LANE_STAGGER_DELAY(delay); in intel_ddi_init_dp_buf_reg() 892 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_ddi_get_encoder_pipes() local [all …]
|
| H A D | intel_display_types.h | 604 struct intel_dp *dp; 1823 struct intel_dp { struct 1891 u32 (*get_aux_clock_divider)(struct intel_dp *dp, int index); argument 1896 u32 (*get_aux_send_ctl)(struct intel_dp *dp, int send_bytes, argument 1899 intel_reg_t (*aux_ch_ctl_reg)(struct intel_dp *dp); argument 1900 intel_reg_t (*aux_ch_data_reg)(struct intel_dp *dp, int index); argument 1903 void (*prepare_link_retrain)(struct intel_dp *intel_dp, argument 1905 void (*set_link_train)(struct intel_dp *intel_dp, argument 1908 void (*set_idle_link_train)(struct intel_dp *intel_dp, argument 1911 u8 (*preemph_max)(struct intel_dp *intel_dp); argument [all …]
|
| H A D | intel_vrr.c | 19 #include "intel_dp.h" 41 struct intel_dp *intel_dp; in intel_vrr_is_capable() local 60 intel_dp = intel_attached_dp(connector); in intel_vrr_is_capable() 69 if (drm_dp_is_branch(intel_dp->dpcd)) in intel_vrr_is_capable() 72 if (!drm_dp_sink_can_do_video_without_timing_msa(intel_dp->dpcd)) in intel_vrr_is_capable() 430 struct intel_dp *intel_dp = intel_attached_dp(connector); in intel_vrr_compute_config() 431 bool is_edp = intel_dp_is_edp(intel_dp); in intel_vrr_compute_config() 428 struct intel_dp *intel_dp = intel_attached_dp(connector); intel_vrr_compute_config() local
|
| H A D | intel_lt_phy.c | 1296 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_lt_phy_transaction_begin() local 1299 intel_psr_pause(intel_dp); in intel_lt_phy_transaction_begin() 1308 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_lt_phy_transaction_end() local 1310 intel_psr_resume(intel_dp); in intel_lt_phy_transaction_end() 1339 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_lt_phy_pll_is_ssc_enabled() local 1341 return (intel_dp->dpcd[DP_MAX_DOWNSPREAD] & DP_MAX_DOWNSPREAD_0_5); in intel_lt_phy_pll_is_ssc_enabled()
|
| H A D | intel_ddi.h | 18 struct intel_dp;
|
| H A D | intel_cdclk.c | 2673 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_set_cdclk() local 2675 intel_psr_pause(intel_dp); in intel_set_cdclk() 2687 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_set_cdclk() local 2689 mutex_lock_nest_lock(&intel_dp->aux.hw_mutex, in intel_set_cdclk() 2696 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_set_cdclk() local 2698 mutex_unlock(&intel_dp->aux.hw_mutex); in intel_set_cdclk() 2703 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_set_cdclk() local 2705 intel_psr_resume(intel_dp); in intel_set_cdclk()
|
| H A D | intel_cx0_phy.c | 113 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_cx0_phy_transaction_begin() local 116 intel_psr_pause(intel_dp); in intel_cx0_phy_transaction_begin() 126 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_cx0_phy_transaction_end() local 128 intel_psr_resume(intel_dp); in intel_cx0_phy_transaction_end() 1992 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_cx0pll_update_ssc() local 1994 (intel_dp->dpcd[DP_MAX_DOWNSPREAD] & DP_MAX_DOWNSPREAD_0_5); in intel_cx0pll_update_ssc()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | Makefile | 280 i915-display/intel_dp.o \
|