/linux/drivers/gpu/drm/tests/ |
H A D | drm_hdmi_state_helper_test.c | 66 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/drivers/gpu/drm/display/ |
H A D | drm_hdmi_helper.c | 26 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/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_aux_backlight.c | 210 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 …]
|
H A D | g4x_hdmi.c | 96 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 …]
|
H A D | intel_dsi_dcs_backlight.c | 66 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 …]
|
H A D | intel_backlight.c | 102 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 …]
|
H A D | intel_dp.h | 41 const struct drm_connector_state *conn_state); 74 struct drm_connector_state *conn_state); 77 struct drm_connector_state *conn_state, 83 struct drm_connector_state *conn_state); 94 const struct drm_connector_state *conn_state); 95 void intel_edp_backlight_off(const struct drm_connector_state *conn_state); 127 const struct drm_connector_state *conn_state); 130 const struct drm_connector_state *conn_state); 181 const struct drm_connector_state *conn_state); 208 const struct drm_connector_state *conn_state);
|
H A D | intel_dp_mst.c | 169 struct drm_connector_state *conn_state, in intel_dp_mst_find_vcpi_slots_for_bpp() argument 178 to_intel_connector(conn_state->connector); in intel_dp_mst_find_vcpi_slots_for_bpp() 320 struct drm_connector_state *conn_state, in intel_dp_mst_compute_link_config() argument 333 conn_state, 2 * 3, false); in intel_dp_mst_compute_link_config() 343 struct drm_connector_state *conn_state, in intel_dp_dsc_mst_compute_link_config() argument 347 to_intel_connector(conn_state->connector); in intel_dp_dsc_mst_compute_link_config() 358 dsc_max_bpc = min_t(u8, 12, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config() 360 dsc_max_bpc = min_t(u8, 10, conn_state->max_requested_bpc); in intel_dp_dsc_mst_compute_link_config() 413 conn_state, 1, true); in intel_dp_dsc_mst_compute_link_config() 422 struct drm_connector_state *conn_state) in intel_dp_mst_update_slots() argument [all …]
|
H A D | intel_backlight.h | 24 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,
|
H A D | intel_tv.c | 889 #define to_intel_tv_connector_state(conn_state) \ argument 890 container_of_const((conn_state), struct intel_tv_connector_state, base) 930 const struct drm_connector_state *conn_state) in intel_enable_tv() argument 951 static const struct tv_mode *intel_tv_mode_find(const struct drm_connector_state *conn_state) in intel_tv_mode_find() argument 953 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 1200 to_intel_tv_connector_state(conn_state); in intel_tv_compute_config() [all …]
|
H A D | intel_hdmi.h | 29 const struct drm_connector_state *conn_state); 32 struct drm_connector_state *conn_state); 47 const struct drm_connector_state *conn_state); 53 const struct drm_connector_state *conn_state);
|
H A D | intel_hdmi.c | 712 struct drm_connector_state *conn_state) in intel_hdmi_compute_avi_infoframe() argument 717 struct drm_connector *connector = conn_state->connector; in intel_hdmi_compute_avi_infoframe() 738 drm_hdmi_avi_infoframe_colorimetry(frame, conn_state); in intel_hdmi_compute_avi_infoframe() 755 drm_hdmi_avi_infoframe_content_type(frame, conn_state); in intel_hdmi_compute_avi_infoframe() 769 struct drm_connector_state *conn_state) in intel_hdmi_compute_spd_infoframe() argument 801 struct drm_connector_state *conn_state) in intel_hdmi_compute_hdmi_infoframe() argument 806 &conn_state->connector->display_info; in intel_hdmi_compute_hdmi_infoframe() 816 conn_state->connector, in intel_hdmi_compute_hdmi_infoframe() 831 struct drm_connector_state *conn_state) in intel_hdmi_compute_drm_infoframe() argument 843 if (!conn_state->hdr_output_metadata) in intel_hdmi_compute_drm_infoframe() [all …]
|
H A D | intel_dp.c | 1714 const struct drm_connector_state *conn_state) in intel_dp_mode_clock() argument 1716 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_dp_mode_clock() 1730 const struct drm_connector_state *conn_state, in intel_dp_compute_link_config_wide() argument 1733 int bpp, i, lane_count, clock = intel_dp_mode_clock(pipe_config, conn_state); in intel_dp_compute_link_config_wide() 2174 struct drm_connector_state *conn_state, in is_dsc_pipe_bpp_sufficient() argument 2180 dsc_max_bpc = min(intel_dp_dsc_max_src_input_bpc(i915), conn_state->max_requested_bpc); in is_dsc_pipe_bpp_sufficient() 2192 struct drm_connector_state *conn_state, in intel_dp_force_dsc_pipe_bpp() argument 2203 if (is_dsc_pipe_bpp_sufficient(i915, conn_state, limits, forced_bpp)) { in intel_dp_force_dsc_pipe_bpp() 2216 struct drm_connector_state *conn_state, in intel_dp_dsc_compute_pipe_bpp() argument 2222 to_intel_connector(conn_state->connector); in intel_dp_dsc_compute_pipe_bpp() [all …]
|
H A D | intel_connector.c | 42 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()
|
H A D | intel_sdvo.c | 196 #define to_intel_sdvo_connector_state(conn_state) \ argument 197 container_of_const((conn_state), struct intel_sdvo_connector_state, base.base) 1101 struct drm_connector_state *conn_state) in intel_sdvo_compute_avi_infoframe() argument 1116 conn_state->connector, in intel_sdvo_compute_avi_infoframe() 1122 conn_state->connector, in intel_sdvo_compute_avi_infoframe() 1219 const struct drm_connector_state *conn_state) in intel_sdvo_set_tv_format() argument 1224 format_map = 1 << conn_state->tv.legacy_mode; in intel_sdvo_set_tv_format() 1317 const struct drm_connector_state *conn_state) in intel_has_hdmi_sink() argument 1319 struct drm_connector *connector = conn_state->connector; in intel_has_hdmi_sink() 1323 READ_ONCE(to_intel_digital_connector_state(conn_state)->force_audio) != HDMI_AUDIO_OFF_DVI; in intel_has_hdmi_sink() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_writeback.c | 33 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/drivers/gpu/drm/vc4/tests/ |
H A D | vc4_mock_output.c | 69 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/drivers/gpu/drm/arm/ |
H A D | malidp_mw.c | 132 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/include/drm/display/ |
H A D | drm_hdmi_helper.h | 14 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/drivers/gpu/drm/ |
H A D | drm_bridge.c | 832 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 …]
|
H A D | drm_atomic_uapi.c | 273 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 …]
|
H A D | drm_atomic.c | 943 struct drm_connector_state *conn_state; in drm_atomic_get_old_connector_for_encoder() local 947 for_each_old_connector_in_state(state, connector, conn_state, i) { in drm_atomic_get_old_connector_for_encoder() 948 if (conn_state->best_encoder == encoder) in drm_atomic_get_old_connector_for_encoder() 977 struct drm_connector_state *conn_state; in drm_atomic_get_new_connector_for_encoder() local 981 for_each_new_connector_in_state(state, connector, conn_state, i) { in drm_atomic_get_new_connector_for_encoder() 982 if (conn_state->best_encoder == encoder) in drm_atomic_get_new_connector_for_encoder() 1006 struct drm_connector_state *conn_state; in drm_atomic_get_old_crtc_for_encoder() local 1012 conn_state = drm_atomic_get_old_connector_state(state, connector); in drm_atomic_get_old_crtc_for_encoder() 1013 if (!conn_state) in drm_atomic_get_old_crtc_for_encoder() 1016 return conn_state->crtc; in drm_atomic_get_old_crtc_for_encoder() [all …]
|
/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_txp.c | 246 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/drivers/gpu/drm/meson/ |
H A D | meson_encoder_hdmi.c | 195 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/drivers/gpu/drm/bridge/imx/ |
H A D | imx8mp-hdmi-pvi.c | 56 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()
|