Home
last modified time | relevance | path

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

1234567

/Linux-v6.6/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()
130 const struct drm_connector_state *conn_state) in drm_hdmi_avi_infoframe_colorimetry() argument
133 u32 colorimetry_index = conn_state->colorspace & FULL_COLORIMETRY_MASK; in drm_hdmi_avi_infoframe_colorimetry()
157 const struct drm_connector_state *conn_state) in drm_hdmi_avi_infoframe_bars() argument
159 frame->right_bar = conn_state->tv.margins.right; in drm_hdmi_avi_infoframe_bars()
160 frame->left_bar = conn_state->tv.margins.left; in drm_hdmi_avi_infoframe_bars()
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dg4x_hdmi.c95 const struct drm_connector_state *conn_state; in g4x_compute_has_hdmi_sink() local
105 for_each_new_connector_in_state(&state->base, connector, conn_state, i) { in g4x_compute_has_hdmi_sink()
106 struct intel_encoder *encoder = to_intel_encoder(conn_state->best_encoder); in g4x_compute_has_hdmi_sink()
113 crtc = to_intel_crtc(conn_state->crtc); in g4x_compute_has_hdmi_sink()
119 if (!intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state)) in g4x_compute_has_hdmi_sink()
130 struct drm_connector_state *conn_state) in g4x_hdmi_compute_config() argument
143 intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
145 return intel_hdmi_compute_config(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
237 const struct drm_connector_state *conn_state) in g4x_enable_hdmi() argument
245 intel_audio_codec_enable(encoder, pipe_config, conn_state); in g4x_enable_hdmi()
[all …]
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_dp_mst.c74 struct drm_connector_state *conn_state, in intel_dp_mst_find_vcpi_slots_for_bpp() argument
83 to_intel_connector(conn_state->connector); in intel_dp_mst_find_vcpi_slots_for_bpp()
152 struct drm_connector_state *conn_state, in intel_dp_mst_compute_link_config() argument
161 conn_state, 2 * 3, false); in intel_dp_mst_compute_link_config()
179 struct drm_connector_state *conn_state, in intel_dp_dsc_mst_compute_link_config() argument
185 to_intel_connector(conn_state->connector); in intel_dp_dsc_mst_compute_link_config()
199 dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config()
201 dsc_max_bpc = min_t(u8, 10, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config()
233 conn_state, 2 * 3, true); in intel_dp_dsc_mst_compute_link_config()
255 limits, conn_state, 2 * 3, true); in intel_dp_dsc_mst_compute_link_config()
[all …]
Dintel_dp.h37 const struct drm_connector_state *conn_state);
61 struct drm_connector_state *conn_state);
64 struct drm_connector_state *conn_state,
75 const struct drm_connector_state *conn_state);
76 void intel_edp_backlight_off(const struct drm_connector_state *conn_state);
94 const struct drm_connector_state *conn_state);
97 const struct drm_connector_state *conn_state,
104 const struct drm_connector_state *conn_state);
133 const struct drm_connector_state *conn_state);
Dintel_backlight.c102 void intel_backlight_set_pwm_level(const struct drm_connector_state *conn_state, u32 val) in intel_backlight_set_pwm_level() argument
104 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_backlight_set_pwm_level()
110 panel->backlight.pwm_funcs->set(conn_state, val); in intel_backlight_set_pwm_level()
204 static void lpt_set_backlight(const struct drm_connector_state *conn_state, u32 level) in lpt_set_backlight() argument
206 struct intel_connector *connector = to_intel_connector(conn_state->connector); in lpt_set_backlight()
214 static void pch_set_backlight(const struct drm_connector_state *conn_state, u32 level) in pch_set_backlight() argument
216 struct intel_connector *connector = to_intel_connector(conn_state->connector); in pch_set_backlight()
224 static void i9xx_set_backlight(const struct drm_connector_state *conn_state, u32 level) in i9xx_set_backlight() argument
226 struct intel_connector *connector = to_intel_connector(conn_state->connector); in i9xx_set_backlight()
252 static void vlv_set_backlight(const struct drm_connector_state *conn_state, u32 level) in vlv_set_backlight() argument
[all …]
Dintel_dp_aux_backlight.c202 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
204 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_aux_backlight()
219 intel_dp_aux_hdr_set_backlight(const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_set_backlight() argument
221 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_backlight()
225 intel_dp_aux_hdr_set_aux_backlight(conn_state, level); in intel_dp_aux_hdr_set_backlight()
229 intel_backlight_set_pwm_level(conn_state, pwm_level); in intel_dp_aux_hdr_set_backlight()
235 const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_enable_backlight() argument
237 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_enable_backlight()
256 intel_dp_aux_hdr_set_aux_backlight(conn_state, level); in intel_dp_aux_hdr_enable_backlight()
260 panel->backlight.pwm_funcs->enable(crtc_state, conn_state, pwm_level); in intel_dp_aux_hdr_enable_backlight()
[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_tv.c927 const struct drm_connector_state *conn_state) in intel_enable_tv() argument
950 static const struct tv_mode *intel_tv_mode_find(const struct drm_connector_state *conn_state) in intel_tv_mode_find() argument
952 int format = conn_state->tv.mode; in intel_tv_mode_find()
1176 const struct drm_connector_state *conn_state, in intel_tv_vert_scaling() argument
1180 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1181 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1188 struct drm_connector_state *conn_state) in intel_tv_compute_config() argument
1195 to_intel_tv_connector_state(conn_state); in intel_tv_compute_config()
1196 const struct tv_mode *tv_mode = intel_tv_mode_find(conn_state); in intel_tv_compute_config()
1227 !intel_tv_vert_scaling(adjusted_mode, conn_state, vdisplay)) { in intel_tv_compute_config()
[all …]
Dintel_hdmi.c696 struct drm_connector_state *conn_state) in intel_hdmi_compute_avi_infoframe() argument
701 struct drm_connector *connector = conn_state->connector; in intel_hdmi_compute_avi_infoframe()
722 drm_hdmi_avi_infoframe_colorimetry(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
739 drm_hdmi_avi_infoframe_content_type(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
753 struct drm_connector_state *conn_state) in intel_hdmi_compute_spd_infoframe() argument
785 struct drm_connector_state *conn_state) in intel_hdmi_compute_hdmi_infoframe() argument
790 &conn_state->connector->display_info; in intel_hdmi_compute_hdmi_infoframe()
800 conn_state->connector, in intel_hdmi_compute_hdmi_infoframe()
815 struct drm_connector_state *conn_state) in intel_hdmi_compute_drm_infoframe() argument
827 if (!conn_state->hdr_output_metadata) in intel_hdmi_compute_drm_infoframe()
[all …]
Dintel_sdvo.c197 #define to_intel_sdvo_connector_state(conn_state) \ argument
198 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()
1210 const struct drm_connector_state *conn_state) in intel_sdvo_set_tv_format() argument
1215 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format()
1304 const struct drm_connector_state *conn_state) in intel_has_hdmi_sink() argument
1306 struct drm_connector *connector = conn_state->connector; in intel_has_hdmi_sink()
1310 READ_ONCE(to_intel_digital_connector_state(conn_state)->force_audio) != HDMI_AUDIO_OFF_DVI; in intel_has_hdmi_sink()
[all …]
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.h29 const struct drm_connector_state *conn_state);
32 struct drm_connector_state *conn_state);
50 const struct drm_connector_state *conn_state);
/Linux-v6.6/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.c848 struct drm_connector_state *conn_state) in drm_atomic_bridge_check() argument
860 crtc_state, conn_state); in drm_atomic_bridge_check()
875 struct drm_connector_state *conn_state, in select_bus_fmt_recursive() argument
898 conn_state, in select_bus_fmt_recursive()
926 conn_state, in select_bus_fmt_recursive()
943 crtc_state, conn_state, in select_bus_fmt_recursive()
995 struct drm_connector_state *conn_state) in drm_atomic_bridge_chain_select_bus_fmts() argument
997 struct drm_connector *conn = conn_state->connector; in drm_atomic_bridge_chain_select_bus_fmts()
1023 conn_state, in drm_atomic_bridge_chain_select_bus_fmts()
1044 conn_state, out_bus_fmts[i]); in drm_atomic_bridge_chain_select_bus_fmts()
[all …]
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 …]
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()
/Linux-v6.6/drivers/gpu/drm/vc4/tests/
Dvc4_mock_output.c69 struct drm_connector_state *conn_state; in vc4_mock_atomic_add_output() local
85 conn_state = drm_atomic_get_connector_state(state, conn); in vc4_mock_atomic_add_output()
86 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in vc4_mock_atomic_add_output()
88 ret = drm_atomic_set_crtc_for_connector(conn_state, crtc); in vc4_mock_atomic_add_output()
107 struct drm_connector_state *conn_state; in vc4_mock_atomic_del_output() local
131 conn_state = drm_atomic_get_connector_state(state, conn); in vc4_mock_atomic_del_output()
132 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in vc4_mock_atomic_del_output()
134 ret = drm_atomic_set_crtc_for_connector(conn_state, NULL); in vc4_mock_atomic_del_output()
/Linux-v6.6/drivers/gpu/drm/vkms/
Dvkms_writeback.c35 struct drm_connector_state *conn_state) in vkms_wb_encoder_atomic_check() argument
41 if (!conn_state->writeback_job || !conn_state->writeback_job->fb) in vkms_wb_encoder_atomic_check()
44 fb = conn_state->writeback_job->fb; in vkms_wb_encoder_atomic_check()
51 ret = drm_atomic_helper_check_wb_encoder_state(encoder, conn_state); in vkms_wb_encoder_atomic_check()
127 struct drm_connector_state *conn_state = wb_conn->base.state; in vkms_wb_atomic_commit() local
136 if (!conn_state) in vkms_wb_atomic_commit()
141 active_wb = conn_state->writeback_job->priv; in vkms_wb_atomic_commit()
/Linux-v6.6/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-v6.6/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-v6.6/drivers/gpu/drm/vc4/
Dvc4_txp.c246 struct drm_connector_state *conn_state; in vc4_txp_connector_atomic_check() local
251 conn_state = drm_atomic_get_new_connector_state(state, conn); in vc4_txp_connector_atomic_check()
252 if (!conn_state->writeback_job) in vc4_txp_connector_atomic_check()
255 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in vc4_txp_connector_atomic_check()
257 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_check()
286 struct drm_connector_state *conn_state = drm_atomic_get_new_connector_state(state, in vc4_txp_connector_atomic_commit() local
296 if (WARN_ON(!conn_state->writeback_job)) in vc4_txp_connector_atomic_commit()
299 mode = &conn_state->crtc->state->adjusted_mode; in vc4_txp_connector_atomic_commit()
300 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_commit()
335 drm_writeback_queue_job(&txp->connector, conn_state); in vc4_txp_connector_atomic_commit()
/Linux-v6.6/drivers/gpu/drm/meson/
Dmeson_encoder_hdmi.c195 struct drm_connector_state *conn_state; in meson_encoder_hdmi_atomic_enable() local
206 conn_state = drm_atomic_get_new_connector_state(state, connector); in meson_encoder_hdmi_atomic_enable()
207 if (WARN_ON(!conn_state)) in meson_encoder_hdmi_atomic_enable()
210 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in meson_encoder_hdmi_atomic_enable()
275 struct drm_connector_state *conn_state, in meson_encoder_hdmi_get_inp_bus_fmts() argument
305 struct drm_connector_state *conn_state) in meson_encoder_hdmi_atomic_check() argument
309 drm_atomic_get_old_connector_state(conn_state->state, conn_state->connector); in meson_encoder_hdmi_atomic_check()
316 if (!drm_connector_atomic_hdr_metadata_equal(old_conn_state, conn_state)) in meson_encoder_hdmi_atomic_check()
Dmeson_encoder_dsi.c50 struct drm_connector_state *conn_state; in meson_encoder_dsi_atomic_enable() local
58 conn_state = drm_atomic_get_new_connector_state(state, connector); in meson_encoder_dsi_atomic_enable()
59 if (WARN_ON(!conn_state)) in meson_encoder_dsi_atomic_enable()
62 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in meson_encoder_dsi_atomic_enable()
/Linux-v6.6/drivers/gpu/drm/msm/dp/
Ddp_drm.c37 struct drm_connector_state *conn_state) in dp_bridge_atomic_check() argument
113 struct drm_connector_state *conn_state) in edp_bridge_atomic_check() argument
117 if (WARN_ON(!conn_state)) in edp_bridge_atomic_check()
120 conn_state->self_refresh_aware = dp->psr_supported; in edp_bridge_atomic_check()
122 if (!conn_state->crtc || !crtc_state) in edp_bridge_atomic_check()

1234567