Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/drivers/gpu/drm/display/
Ddrm_hdmi_helper.c26 const struct drm_connector_state *conn_state) in drm_hdmi_infoframe_set_hdr_metadata() argument
32 if (!frame || !conn_state) in drm_hdmi_infoframe_set_hdr_metadata()
35 connector = conn_state->connector; in drm_hdmi_infoframe_set_hdr_metadata()
37 if (!conn_state->hdr_output_metadata) in drm_hdmi_infoframe_set_hdr_metadata()
40 hdr_metadata = conn_state->hdr_output_metadata->data; in drm_hdmi_infoframe_set_hdr_metadata()
132 const struct drm_connector_state *conn_state) in drm_hdmi_avi_infoframe_colorimetry() argument
135 u32 colorimetry_index = conn_state->colorspace & FULL_COLORIMETRY_MASK; in drm_hdmi_avi_infoframe_colorimetry()
159 const struct drm_connector_state *conn_state) in drm_hdmi_avi_infoframe_bars() argument
161 frame->right_bar = conn_state->tv.margins.right; in drm_hdmi_avi_infoframe_bars()
162 frame->left_bar = conn_state->tv.margins.left; in drm_hdmi_avi_infoframe_bars()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_dsi_dcs_backlight.c66 static void dcs_set_backlight(const struct drm_connector_state *conn_state, u32 level) in dcs_set_backlight() argument
68 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_set_backlight()
69 struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; in dcs_set_backlight()
93 static void dcs_disable_backlight(const struct drm_connector_state *conn_state, u32 level) in dcs_disable_backlight() argument
95 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_disable_backlight()
96 struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; in dcs_disable_backlight()
100 dcs_set_backlight(conn_state, 0); in dcs_disable_backlight()
128 const struct drm_connector_state *conn_state, u32 level) in dcs_enable_backlight() argument
130 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_enable_backlight()
131 struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; in dcs_enable_backlight()
[all …]
Dintel_backlight.c101 void intel_backlight_set_pwm_level(const struct drm_connector_state *conn_state, u32 val) in intel_backlight_set_pwm_level() argument
103 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_backlight_set_pwm_level()
108 panel->backlight.pwm_funcs->set(conn_state, val); in intel_backlight_set_pwm_level()
203 static void lpt_set_backlight(const struct drm_connector_state *conn_state, u32 level) in lpt_set_backlight() argument
205 struct intel_connector *connector = to_intel_connector(conn_state->connector); in lpt_set_backlight()
212 static void pch_set_backlight(const struct drm_connector_state *conn_state, u32 level) in pch_set_backlight() argument
214 struct intel_connector *connector = to_intel_connector(conn_state->connector); in pch_set_backlight()
222 static void i9xx_set_backlight(const struct drm_connector_state *conn_state, u32 level) in i9xx_set_backlight() argument
224 struct intel_connector *connector = to_intel_connector(conn_state->connector); in i9xx_set_backlight()
250 static void vlv_set_backlight(const struct drm_connector_state *conn_state, u32 level) in vlv_set_backlight() argument
[all …]
Dintel_dp_aux_backlight.c196 intel_dp_aux_hdr_set_aux_backlight(const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_set_aux_backlight() argument
198 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_aux_backlight()
212 intel_dp_aux_hdr_set_backlight(const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_set_backlight() argument
214 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_backlight()
218 intel_dp_aux_hdr_set_aux_backlight(conn_state, level); in intel_dp_aux_hdr_set_backlight()
222 intel_backlight_set_pwm_level(conn_state, pwm_level); in intel_dp_aux_hdr_set_backlight()
228 const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_enable_backlight() argument
230 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_enable_backlight()
248 intel_dp_aux_hdr_set_aux_backlight(conn_state, level); in intel_dp_aux_hdr_enable_backlight()
252 panel->backlight.pwm_funcs->enable(crtc_state, conn_state, pwm_level); in intel_dp_aux_hdr_enable_backlight()
[all …]
Dintel_dp.h37 const struct drm_connector_state *conn_state);
58 struct drm_connector_state *conn_state);
65 const struct drm_connector_state *conn_state);
66 void intel_edp_backlight_off(const struct drm_connector_state *conn_state);
84 const struct drm_connector_state *conn_state);
87 const struct drm_connector_state *conn_state,
94 const struct drm_connector_state *conn_state);
110 const struct drm_connector_state *conn_state);
Dg4x_hdmi.c150 const struct drm_connector_state *conn_state) in g4x_enable_hdmi() argument
168 intel_audio_codec_enable(encoder, pipe_config, conn_state); in g4x_enable_hdmi()
174 const struct drm_connector_state *conn_state) in ibx_enable_hdmi() argument
221 intel_audio_codec_enable(encoder, pipe_config, conn_state); in ibx_enable_hdmi()
227 const struct drm_connector_state *conn_state) in cpt_enable_hdmi() argument
276 intel_audio_codec_enable(encoder, pipe_config, conn_state); in cpt_enable_hdmi()
282 const struct drm_connector_state *conn_state) in vlv_enable_hdmi() argument
374 const struct drm_connector_state *conn_state) in intel_hdmi_pre_enable() argument
383 pipe_config, conn_state); in intel_hdmi_pre_enable()
389 const struct drm_connector_state *conn_state) in vlv_hdmi_pre_enable() argument
[all …]
Dintel_dp_mst.c49 struct drm_connector_state *conn_state, in intel_dp_mst_compute_link_config() argument
57 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_link_config()
110 struct drm_connector_state *conn_state) in intel_dp_mst_update_slots() argument
120 topology_state = drm_atomic_get_mst_topology_state(conn_state->state, mgr); in intel_dp_mst_update_slots()
133 struct drm_connector_state *conn_state) in intel_dp_mst_compute_config() argument
139 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_config()
141 to_intel_digital_connector_state(conn_state); in intel_dp_mst_compute_config()
183 conn_state, &limits); in intel_dp_mst_compute_config()
187 ret = intel_dp_mst_update_slots(encoder, pipe_config, conn_state); in intel_dp_mst_compute_config()
192 intel_dp_limited_color_range(pipe_config, conn_state); in intel_dp_mst_compute_config()
[all …]
Dintel_backlight.h24 const struct drm_connector_state *conn_state);
28 const struct drm_connector_state *conn_state);
31 void intel_backlight_set_acpi(const struct drm_connector_state *conn_state,
33 void intel_backlight_set_pwm_level(const struct drm_connector_state *conn_state,
Dintel_connector.c42 struct intel_digital_connector_state *conn_state; in intel_connector_init() local
50 conn_state = kzalloc(sizeof(*conn_state), GFP_KERNEL); in intel_connector_init()
51 if (!conn_state) in intel_connector_init()
55 &conn_state->base); in intel_connector_init()
Dintel_hdmi.c710 struct drm_connector_state *conn_state) in intel_hdmi_compute_avi_infoframe() argument
715 struct drm_connector *connector = conn_state->connector; in intel_hdmi_compute_avi_infoframe()
736 drm_hdmi_avi_infoframe_colorimetry(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
753 drm_hdmi_avi_infoframe_content_type(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
767 struct drm_connector_state *conn_state) in intel_hdmi_compute_spd_infoframe() argument
794 struct drm_connector_state *conn_state) in intel_hdmi_compute_hdmi_infoframe() argument
799 &conn_state->connector->display_info; in intel_hdmi_compute_hdmi_infoframe()
809 conn_state->connector, in intel_hdmi_compute_hdmi_infoframe()
824 struct drm_connector_state *conn_state) in intel_hdmi_compute_drm_infoframe() argument
836 if (!conn_state->hdr_output_metadata) in intel_hdmi_compute_drm_infoframe()
[all …]
Dintel_sdvo.c198 #define to_intel_sdvo_connector_state(conn_state) \ argument
199 container_of((conn_state), struct intel_sdvo_connector_state, base.base)
1094 struct drm_connector_state *conn_state) in intel_sdvo_compute_avi_infoframe() argument
1109 conn_state->connector, in intel_sdvo_compute_avi_infoframe()
1115 conn_state->connector, in intel_sdvo_compute_avi_infoframe()
1188 const struct drm_connector_state *conn_state) in intel_sdvo_set_tv_format() argument
1193 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format()
1282 const struct drm_connector_state *conn_state) in intel_has_hdmi_sink() argument
1285 READ_ONCE(to_intel_digital_connector_state(conn_state)->force_audio) != HDMI_AUDIO_OFF_DVI; in intel_has_hdmi_sink()
1290 const struct drm_connector_state *conn_state) in intel_sdvo_limited_color_range() argument
[all …]
Dintel_modeset_verify.c26 struct drm_connector_state *conn_state) in intel_connector_verify_state() argument
28 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_connector_verify_state()
49 I915_STATE_WARN(conn_state->best_encoder != &encoder->base, in intel_connector_verify_state()
52 I915_STATE_WARN(conn_state->crtc != encoder->base.crtc, in intel_connector_verify_state()
57 I915_STATE_WARN(!crtc_state && conn_state->best_encoder, in intel_connector_verify_state()
Dintel_dp.c1313 const struct drm_connector_state *conn_state) in intel_dp_mode_clock() argument
1315 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_mode_clock()
1329 const struct drm_connector_state *conn_state, in intel_dp_compute_link_config_wide() argument
1332 int bpp, i, lane_count, clock = intel_dp_mode_clock(pipe_config, conn_state); in intel_dp_compute_link_config_wide()
1469 struct drm_connector_state *conn_state, in intel_dp_dsc_compute_config() argument
1485 pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, conn_state->max_requested_bpc); in intel_dp_dsc_compute_config()
1582 struct drm_connector_state *conn_state, in intel_dp_compute_link_config() argument
1638 ret = intel_dp_compute_link_config_wide(intel_dp, pipe_config, conn_state, &limits); in intel_dp_compute_link_config()
1645 conn_state, &limits); in intel_dp_compute_link_config()
1679 const struct drm_connector_state *conn_state) in intel_dp_limited_color_range() argument
[all …]
Dintel_tv.c923 const struct drm_connector_state *conn_state) in intel_enable_tv() argument
948 static const struct tv_mode *intel_tv_mode_find(const struct drm_connector_state *conn_state) in intel_tv_mode_find() argument
950 int format = conn_state->tv.mode; in intel_tv_mode_find()
1174 const struct drm_connector_state *conn_state, in intel_tv_vert_scaling() argument
1178 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1179 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1186 struct drm_connector_state *conn_state) in intel_tv_compute_config() argument
1193 to_intel_tv_connector_state(conn_state); in intel_tv_compute_config()
1194 const struct tv_mode *tv_mode = intel_tv_mode_find(conn_state); in intel_tv_compute_config()
1224 !intel_tv_vert_scaling(adjusted_mode, conn_state, vdisplay)) { in intel_tv_compute_config()
[all …]
Dintel_ddi.c339 const struct drm_connector_state *conn_state) in intel_ddi_set_dp_msa() argument
392 if (intel_dp_needs_vsc_sdp(crtc_state, conn_state)) in intel_ddi_set_dp_msa()
2274 const struct drm_connector_state *conn_state) in tgl_ddi_pre_enable_dp() argument
2412 const struct drm_connector_state *conn_state) in hsw_ddi_pre_enable_dp() argument
2477 const struct drm_connector_state *conn_state) in intel_ddi_pre_enable_dp() argument
2482 tgl_ddi_pre_enable_dp(state, encoder, crtc_state, conn_state); in intel_ddi_pre_enable_dp()
2484 hsw_ddi_pre_enable_dp(state, encoder, crtc_state, conn_state); in intel_ddi_pre_enable_dp()
2490 intel_ddi_set_dp_msa(crtc_state, conn_state); in intel_ddi_pre_enable_dp()
2496 const struct drm_connector_state *conn_state) in intel_ddi_pre_enable_hdmi() argument
2515 crtc_state, conn_state); in intel_ddi_pre_enable_hdmi()
[all …]
/linux-6.1.9/drivers/gpu/drm/
Ddrm_writeback.c293 int drm_writeback_set_fb(struct drm_connector_state *conn_state, in drm_writeback_set_fb() argument
296 WARN_ON(conn_state->connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK); in drm_writeback_set_fb()
298 if (!conn_state->writeback_job) { in drm_writeback_set_fb()
299 conn_state->writeback_job = in drm_writeback_set_fb()
300 kzalloc(sizeof(*conn_state->writeback_job), GFP_KERNEL); in drm_writeback_set_fb()
301 if (!conn_state->writeback_job) in drm_writeback_set_fb()
304 conn_state->writeback_job->connector = in drm_writeback_set_fb()
305 drm_connector_to_writeback(conn_state->connector); in drm_writeback_set_fb()
308 drm_framebuffer_assign(&conn_state->writeback_job->fb, fb); in drm_writeback_set_fb()
350 struct drm_connector_state *conn_state) in drm_writeback_queue_job() argument
[all …]
Ddrm_bridge.c820 struct drm_connector_state *conn_state) in drm_atomic_bridge_check() argument
832 crtc_state, conn_state); in drm_atomic_bridge_check()
847 struct drm_connector_state *conn_state, in select_bus_fmt_recursive() argument
870 conn_state, in select_bus_fmt_recursive()
898 conn_state, in select_bus_fmt_recursive()
915 crtc_state, conn_state, in select_bus_fmt_recursive()
967 struct drm_connector_state *conn_state) in drm_atomic_bridge_chain_select_bus_fmts() argument
969 struct drm_connector *conn = conn_state->connector; in drm_atomic_bridge_chain_select_bus_fmts()
995 conn_state, in drm_atomic_bridge_chain_select_bus_fmts()
1016 conn_state, out_bus_fmts[i]); in drm_atomic_bridge_chain_select_bus_fmts()
[all …]
Ddrm_atomic_state_helper.c415 __drm_atomic_helper_connector_state_reset(struct drm_connector_state *conn_state, in __drm_atomic_helper_connector_state_reset() argument
418 conn_state->connector = connector; in __drm_atomic_helper_connector_state_reset()
436 struct drm_connector_state *conn_state) in __drm_atomic_helper_connector_reset() argument
438 if (conn_state) in __drm_atomic_helper_connector_reset()
439 __drm_atomic_helper_connector_state_reset(conn_state, connector); in __drm_atomic_helper_connector_reset()
441 connector->state = conn_state; in __drm_atomic_helper_connector_reset()
455 struct drm_connector_state *conn_state = in drm_atomic_helper_connector_reset() local
456 kzalloc(sizeof(*conn_state), GFP_KERNEL); in drm_atomic_helper_connector_reset()
462 __drm_atomic_helper_connector_reset(connector, conn_state); in drm_atomic_helper_connector_reset()
Ddrm_atomic_uapi.c273 drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, in drm_atomic_set_crtc_for_connector() argument
276 struct drm_connector *connector = conn_state->connector; in drm_atomic_set_crtc_for_connector()
279 if (conn_state->crtc == crtc) in drm_atomic_set_crtc_for_connector()
282 if (conn_state->crtc) { in drm_atomic_set_crtc_for_connector()
283 crtc_state = drm_atomic_get_new_crtc_state(conn_state->state, in drm_atomic_set_crtc_for_connector()
284 conn_state->crtc); in drm_atomic_set_crtc_for_connector()
287 ~drm_connector_mask(conn_state->connector); in drm_atomic_set_crtc_for_connector()
289 drm_connector_put(conn_state->connector); in drm_atomic_set_crtc_for_connector()
290 conn_state->crtc = NULL; in drm_atomic_set_crtc_for_connector()
294 crtc_state = drm_atomic_get_crtc_state(conn_state->state, crtc); in drm_atomic_set_crtc_for_connector()
[all …]
/linux-6.1.9/include/drm/display/
Ddrm_hdmi_helper.h14 const struct drm_connector_state *conn_state);
18 const struct drm_connector_state *conn_state);
22 const struct drm_connector_state *conn_state);
25 const struct drm_connector_state *conn_state);
/linux-6.1.9/drivers/gpu/drm/vkms/
Dvkms_writeback.c34 struct drm_connector_state *conn_state) in vkms_wb_encoder_atomic_check() argument
40 if (!conn_state->writeback_job || !conn_state->writeback_job->fb) in vkms_wb_encoder_atomic_check()
43 fb = conn_state->writeback_job->fb; in vkms_wb_encoder_atomic_check()
50 ret = drm_atomic_helper_check_wb_encoder_state(encoder, conn_state); in vkms_wb_encoder_atomic_check()
126 struct drm_connector_state *conn_state = wb_conn->base.state; in vkms_wb_atomic_commit() local
135 if (!conn_state) in vkms_wb_atomic_commit()
140 active_wb = conn_state->writeback_job->priv; in vkms_wb_atomic_commit()
/linux-6.1.9/drivers/gpu/drm/arm/
Dmalidp_mw.c129 struct drm_connector_state *conn_state) in malidp_mw_encoder_atomic_check() argument
131 struct malidp_mw_connector_state *mw_state = to_mw_state(conn_state); in malidp_mw_encoder_atomic_check()
136 if (!conn_state->writeback_job) in malidp_mw_encoder_atomic_check()
139 fb = conn_state->writeback_job->fb; in malidp_mw_encoder_atomic_check()
241 struct drm_connector_state *conn_state = mw_conn->base.state; in malidp_mw_atomic_commit() local
245 if (!conn_state) in malidp_mw_atomic_commit()
248 mw_state = to_mw_state(conn_state); in malidp_mw_atomic_commit()
250 if (conn_state->writeback_job) { in malidp_mw_atomic_commit()
251 struct drm_framebuffer *fb = conn_state->writeback_job->fb; in malidp_mw_atomic_commit()
260 drm_writeback_queue_job(mw_conn, conn_state); in malidp_mw_atomic_commit()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_txp.c240 struct drm_connector_state *conn_state; in vc4_txp_connector_atomic_check() local
245 conn_state = drm_atomic_get_new_connector_state(state, conn); in vc4_txp_connector_atomic_check()
246 if (!conn_state->writeback_job) in vc4_txp_connector_atomic_check()
249 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in vc4_txp_connector_atomic_check()
251 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_check()
280 struct drm_connector_state *conn_state = drm_atomic_get_new_connector_state(state, in vc4_txp_connector_atomic_commit() local
290 if (WARN_ON(!conn_state->writeback_job)) in vc4_txp_connector_atomic_commit()
293 mode = &conn_state->crtc->state->adjusted_mode; in vc4_txp_connector_atomic_commit()
294 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_commit()
329 drm_writeback_queue_job(&txp->connector, conn_state); in vc4_txp_connector_atomic_commit()
/linux-6.1.9/drivers/gpu/drm/meson/
Dmeson_encoder_hdmi.c193 struct drm_connector_state *conn_state; in meson_encoder_hdmi_atomic_enable() local
204 conn_state = drm_atomic_get_new_connector_state(state, connector); in meson_encoder_hdmi_atomic_enable()
205 if (WARN_ON(!conn_state)) in meson_encoder_hdmi_atomic_enable()
208 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in meson_encoder_hdmi_atomic_enable()
273 struct drm_connector_state *conn_state, in meson_encoder_hdmi_get_inp_bus_fmts() argument
303 struct drm_connector_state *conn_state) in meson_encoder_hdmi_atomic_check() argument
307 drm_atomic_get_old_connector_state(conn_state->state, conn_state->connector); in meson_encoder_hdmi_atomic_check()
314 if (!drm_connector_atomic_hdr_metadata_equal(old_conn_state, conn_state)) in meson_encoder_hdmi_atomic_check()
Dmeson_encoder_cvbs.c133 struct drm_connector_state *conn_state) in meson_encoder_cvbs_atomic_check() argument
148 struct drm_connector_state *conn_state; in meson_encoder_cvbs_atomic_enable() local
156 conn_state = drm_atomic_get_new_connector_state(state, connector); in meson_encoder_cvbs_atomic_enable()
157 if (WARN_ON(!conn_state)) in meson_encoder_cvbs_atomic_enable()
160 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in meson_encoder_cvbs_atomic_enable()

1234567