Home
last modified time | relevance | path

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

12345678

/linux-6.12.1/drivers/gpu/drm/tests/
Ddrm_hdmi_state_helper_test.c66 struct drm_connector_state *conn_state; in light_up_connector() local
73 conn_state = drm_atomic_get_connector_state(state, connector); in light_up_connector()
74 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in light_up_connector()
76 ret = drm_atomic_set_crtc_for_connector(conn_state, crtc); in light_up_connector()
368 struct drm_connector_state *conn_state; in drm_test_check_broadcast_rgb_auto_cea_mode() local
399 conn_state = drm_atomic_get_connector_state(state, conn); in drm_test_check_broadcast_rgb_auto_cea_mode()
400 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in drm_test_check_broadcast_rgb_auto_cea_mode()
403 conn_state->hdmi.broadcast_rgb, in drm_test_check_broadcast_rgb_auto_cea_mode()
409 conn_state = drm_atomic_get_connector_state(state, conn); in drm_test_check_broadcast_rgb_auto_cea_mode()
410 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state); in drm_test_check_broadcast_rgb_auto_cea_mode()
[all …]
/linux-6.12.1/drivers/gpu/drm/display/
Ddrm_hdmi_state_helper.c33 connector_state_get_mode(const struct drm_connector_state *conn_state) in connector_state_get_mode() argument
39 state = conn_state->state; in connector_state_get_mode()
43 crtc = conn_state->crtc; in connector_state_get_mode()
55 const struct drm_connector_state *conn_state) in hdmi_is_limited_range() argument
59 connector_state_get_mode(conn_state); in hdmi_is_limited_range()
66 if (conn_state->hdmi.output_format != HDMI_COLORSPACE_RGB) in hdmi_is_limited_range()
69 if (conn_state->hdmi.broadcast_rgb == DRM_HDMI_BROADCAST_RGB_FULL) in hdmi_is_limited_range()
72 if (conn_state->hdmi.broadcast_rgb == DRM_HDMI_BROADCAST_RGB_LIMITED) in hdmi_is_limited_range()
225 struct drm_connector_state *conn_state, in hdmi_compute_clock() argument
240 conn_state->hdmi.tmds_char_rate = clock; in hdmi_compute_clock()
[all …]
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-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_writeback.c33 struct drm_connector_state *conn_state = in dpu_wb_conn_atomic_check() local
42 if (!conn_state || !conn_state->connector) { in dpu_wb_conn_atomic_check()
45 } else if (conn_state->connector->status != connector_status_connected) { in dpu_wb_conn_atomic_check()
46 DPU_ERROR("connector not connected %d\n", conn_state->connector->status); in dpu_wb_conn_atomic_check()
50 crtc = conn_state->crtc; in dpu_wb_conn_atomic_check()
54 if (!conn_state->writeback_job || !conn_state->writeback_job->fb) in dpu_wb_conn_atomic_check()
63 fb = conn_state->writeback_job->fb; in dpu_wb_conn_atomic_check()
80 return drm_atomic_helper_check_wb_connector_state(conn_state->connector, conn_state->state); in dpu_wb_conn_atomic_check()
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_dp_aux_backlight.c210 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
212 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_aux_backlight()
227 intel_dp_in_hdr_mode(const struct drm_connector_state *conn_state) in intel_dp_in_hdr_mode() argument
231 if (!conn_state->hdr_output_metadata) in intel_dp_in_hdr_mode()
234 hdr_metadata = conn_state->hdr_output_metadata->data; in intel_dp_in_hdr_mode()
240 intel_dp_aux_hdr_set_backlight(const struct drm_connector_state *conn_state, u32 level) in intel_dp_aux_hdr_set_backlight() argument
242 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_aux_hdr_set_backlight()
245 if (intel_dp_in_hdr_mode(conn_state) || in intel_dp_aux_hdr_set_backlight()
247 intel_dp_aux_hdr_set_aux_backlight(conn_state, level); in intel_dp_aux_hdr_set_backlight()
251 intel_backlight_set_pwm_level(conn_state, pwm_level); in intel_dp_aux_hdr_set_backlight()
[all …]
Dg4x_hdmi.c96 const struct drm_connector_state *conn_state; in g4x_compute_has_hdmi_sink() local
106 for_each_new_connector_in_state(&state->base, connector, conn_state, i) { in g4x_compute_has_hdmi_sink()
107 struct intel_encoder *encoder = to_intel_encoder(conn_state->best_encoder); in g4x_compute_has_hdmi_sink()
114 crtc = to_intel_crtc(conn_state->crtc); in g4x_compute_has_hdmi_sink()
120 if (!intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state)) in g4x_compute_has_hdmi_sink()
131 struct drm_connector_state *conn_state) in g4x_hdmi_compute_config() argument
147 intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
149 return intel_hdmi_compute_config(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
238 const struct drm_connector_state *conn_state) in g4x_hdmi_audio_enable() argument
251 intel_audio_codec_enable(encoder, crtc_state, conn_state); in g4x_hdmi_audio_enable()
[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_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()
205 static void lpt_set_backlight(const struct drm_connector_state *conn_state, u32 level) in lpt_set_backlight() argument
207 struct intel_connector *connector = to_intel_connector(conn_state->connector); in lpt_set_backlight()
215 static void pch_set_backlight(const struct drm_connector_state *conn_state, u32 level) in pch_set_backlight() argument
217 struct intel_connector *connector = to_intel_connector(conn_state->connector); in pch_set_backlight()
225 static void i9xx_set_backlight(const struct drm_connector_state *conn_state, u32 level) in i9xx_set_backlight() argument
227 struct intel_connector *connector = to_intel_connector(conn_state->connector); in i9xx_set_backlight()
253 static void vlv_set_backlight(const struct drm_connector_state *conn_state, u32 level) in vlv_set_backlight() argument
[all …]
Dintel_dp.h44 const struct drm_connector_state *conn_state);
76 struct drm_connector_state *conn_state);
79 struct drm_connector_state *conn_state,
85 struct drm_connector_state *conn_state);
96 const struct drm_connector_state *conn_state);
97 void intel_edp_backlight_off(const struct drm_connector_state *conn_state);
129 const struct drm_connector_state *conn_state);
132 const struct drm_connector_state *conn_state);
183 const struct drm_connector_state *conn_state);
Dintel_dp_mst.c168 struct drm_connector_state *conn_state, in intel_dp_mst_find_vcpi_slots_for_bpp() argument
177 to_intel_connector(conn_state->connector); in intel_dp_mst_find_vcpi_slots_for_bpp()
319 struct drm_connector_state *conn_state, in intel_dp_mst_compute_link_config() argument
332 conn_state, 2 * 3, false); in intel_dp_mst_compute_link_config()
342 struct drm_connector_state *conn_state, in intel_dp_dsc_mst_compute_link_config() argument
346 to_intel_connector(conn_state->connector); in intel_dp_dsc_mst_compute_link_config()
357 dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config()
359 dsc_max_bpc = min_t(u8, 10, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config()
412 conn_state, 1, true); in intel_dp_dsc_mst_compute_link_config()
421 struct drm_connector_state *conn_state) in intel_dp_mst_update_slots() argument
[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.c888 #define to_intel_tv_connector_state(conn_state) \ argument
889 container_of_const((conn_state), struct intel_tv_connector_state, base)
929 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.legacy_mode; in intel_tv_mode_find()
1181 const struct drm_connector_state *conn_state, in intel_tv_vert_scaling() argument
1185 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1186 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1193 struct drm_connector_state *conn_state) in intel_tv_compute_config() argument
1201 to_intel_tv_connector_state(conn_state); in intel_tv_compute_config()
[all …]
Dintel_hdmi.c707 struct drm_connector_state *conn_state) in intel_hdmi_compute_avi_infoframe() argument
712 struct drm_connector *connector = conn_state->connector; in intel_hdmi_compute_avi_infoframe()
733 drm_hdmi_avi_infoframe_colorimetry(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
750 drm_hdmi_avi_infoframe_content_type(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
764 struct drm_connector_state *conn_state) in intel_hdmi_compute_spd_infoframe() argument
796 struct drm_connector_state *conn_state) in intel_hdmi_compute_hdmi_infoframe() argument
801 &conn_state->connector->display_info; in intel_hdmi_compute_hdmi_infoframe()
811 conn_state->connector, in intel_hdmi_compute_hdmi_infoframe()
826 struct drm_connector_state *conn_state) in intel_hdmi_compute_drm_infoframe() argument
838 if (!conn_state->hdr_output_metadata) in intel_hdmi_compute_drm_infoframe()
[all …]
Dintel_dp.c1687 const struct drm_connector_state *conn_state) in intel_dp_mode_clock() argument
1689 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_mode_clock()
1703 const struct drm_connector_state *conn_state, in intel_dp_compute_link_config_wide() argument
1706 int bpp, i, lane_count, clock = intel_dp_mode_clock(pipe_config, conn_state); in intel_dp_compute_link_config_wide()
2146 struct drm_connector_state *conn_state, in is_dsc_pipe_bpp_sufficient() argument
2152 dsc_max_bpc = min(intel_dp_dsc_max_src_input_bpc(i915), conn_state->max_requested_bpc); in is_dsc_pipe_bpp_sufficient()
2164 struct drm_connector_state *conn_state, in intel_dp_force_dsc_pipe_bpp() argument
2175 if (is_dsc_pipe_bpp_sufficient(i915, conn_state, limits, forced_bpp)) { in intel_dp_force_dsc_pipe_bpp()
2188 struct drm_connector_state *conn_state, in intel_dp_dsc_compute_pipe_bpp() argument
2194 to_intel_connector(conn_state->connector); in intel_dp_dsc_compute_pipe_bpp()
[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-6.12.1/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.c832 struct drm_connector_state *conn_state) in drm_atomic_bridge_check() argument
844 crtc_state, conn_state); in drm_atomic_bridge_check()
859 struct drm_connector_state *conn_state, in select_bus_fmt_recursive() argument
882 conn_state, in select_bus_fmt_recursive()
910 conn_state, in select_bus_fmt_recursive()
927 crtc_state, conn_state, in select_bus_fmt_recursive()
979 struct drm_connector_state *conn_state) in drm_atomic_bridge_chain_select_bus_fmts() argument
981 struct drm_connector *conn = conn_state->connector; in drm_atomic_bridge_chain_select_bus_fmts()
1007 conn_state, in drm_atomic_bridge_chain_select_bus_fmts()
1028 conn_state, out_bus_fmts[i]); in drm_atomic_bridge_chain_select_bus_fmts()
[all …]
/linux-6.12.1/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-6.12.1/drivers/gpu/drm/vkms/
Dvkms_writeback.c36 struct drm_connector_state *conn_state = in vkms_wb_atomic_check() local
43 if (!conn_state->writeback_job || !conn_state->writeback_job->fb) in vkms_wb_atomic_check()
46 if (!conn_state->crtc) in vkms_wb_atomic_check()
49 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in vkms_wb_atomic_check()
52 fb = conn_state->writeback_job->fb; in vkms_wb_atomic_check()
131 struct drm_connector_state *conn_state = wb_conn->base.state; in vkms_wb_atomic_commit() local
140 if (!conn_state) in vkms_wb_atomic_commit()
145 active_wb = conn_state->writeback_job->priv; in vkms_wb_atomic_commit()
/linux-6.12.1/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.12.1/drivers/gpu/drm/arm/
Dmalidp_mw.c132 struct drm_connector_state *conn_state) in malidp_mw_encoder_atomic_check() argument
134 struct malidp_mw_connector_state *mw_state = to_mw_state(conn_state); in malidp_mw_encoder_atomic_check()
139 if (!conn_state->writeback_job) in malidp_mw_encoder_atomic_check()
142 fb = conn_state->writeback_job->fb; in malidp_mw_encoder_atomic_check()
244 struct drm_connector_state *conn_state = mw_conn->base.state; in malidp_mw_atomic_commit() local
248 if (!conn_state) in malidp_mw_atomic_commit()
251 mw_state = to_mw_state(conn_state); in malidp_mw_atomic_commit()
253 if (conn_state->writeback_job) { in malidp_mw_atomic_commit()
254 struct drm_framebuffer *fb = conn_state->writeback_job->fb; in malidp_mw_atomic_commit()
263 drm_writeback_queue_job(mw_conn, conn_state); in malidp_mw_atomic_commit()
/linux-6.12.1/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-6.12.1/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()
/linux-6.12.1/drivers/gpu/drm/bridge/imx/
Dimx8mp-hdmi-pvi.c56 struct drm_connector_state *conn_state; in imx8mp_hdmi_pvi_bridge_enable() local
63 conn_state = drm_atomic_get_new_connector_state(state, connector); in imx8mp_hdmi_pvi_bridge_enable()
64 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in imx8mp_hdmi_pvi_bridge_enable()
104 struct drm_connector_state *conn_state, in imx8mp_hdmi_pvi_bridge_get_input_bus_fmts() argument
121 conn_state, in imx8mp_hdmi_pvi_bridge_get_input_bus_fmts()

12345678