Lines Matching full:preferred
46 struct drm_display_mode *mode, *preferred; in find_preferred_mode() local
49 preferred = list_first_entry(&connector->modes, struct drm_display_mode, head); in find_preferred_mode()
52 preferred = mode; in find_preferred_mode()
55 return preferred; in find_preferred_mode()
244 struct drm_display_mode *preferred; in drm_test_check_broadcast_rgb_crtc_mode_changed() local
259 preferred = find_preferred_mode(conn); in drm_test_check_broadcast_rgb_crtc_mode_changed()
260 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_broadcast_rgb_crtc_mode_changed()
264 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_broadcast_rgb_crtc_mode_changed()
307 struct drm_display_mode *preferred; in drm_test_check_broadcast_rgb_crtc_mode_not_changed() local
322 preferred = find_preferred_mode(conn); in drm_test_check_broadcast_rgb_crtc_mode_not_changed()
323 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_broadcast_rgb_crtc_mode_not_changed()
327 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_broadcast_rgb_crtc_mode_not_changed()
370 struct drm_display_mode *preferred; in drm_test_check_broadcast_rgb_auto_cea_mode() local
387 preferred = find_preferred_mode(conn); in drm_test_check_broadcast_rgb_auto_cea_mode()
388 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_broadcast_rgb_auto_cea_mode()
389 KUNIT_ASSERT_NE(test, drm_match_cea_mode(preferred), 1); in drm_test_check_broadcast_rgb_auto_cea_mode()
393 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_broadcast_rgb_auto_cea_mode()
482 struct drm_display_mode *preferred; in drm_test_check_broadcast_rgb_full_cea_mode() local
499 preferred = find_preferred_mode(conn); in drm_test_check_broadcast_rgb_full_cea_mode()
500 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_broadcast_rgb_full_cea_mode()
501 KUNIT_ASSERT_NE(test, drm_match_cea_mode(preferred), 1); in drm_test_check_broadcast_rgb_full_cea_mode()
505 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_broadcast_rgb_full_cea_mode()
598 struct drm_display_mode *preferred; in drm_test_check_broadcast_rgb_limited_cea_mode() local
615 preferred = find_preferred_mode(conn); in drm_test_check_broadcast_rgb_limited_cea_mode()
616 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_broadcast_rgb_limited_cea_mode()
617 KUNIT_ASSERT_NE(test, drm_match_cea_mode(preferred), 1); in drm_test_check_broadcast_rgb_limited_cea_mode()
621 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_broadcast_rgb_limited_cea_mode()
716 struct drm_display_mode *preferred; in drm_test_check_output_bpc_crtc_mode_changed() local
736 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_crtc_mode_changed()
737 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_crtc_mode_changed()
741 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_crtc_mode_changed()
790 struct drm_display_mode *preferred; in drm_test_check_output_bpc_crtc_mode_not_changed() local
810 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_crtc_mode_not_changed()
811 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_crtc_mode_not_changed()
815 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_crtc_mode_not_changed()
859 struct drm_display_mode *preferred; in drm_test_check_output_bpc_dvi() local
884 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_dvi()
885 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_dvi()
889 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_dvi()
908 struct drm_display_mode *preferred; in drm_test_check_tmds_char_rate_rgb_8bpc() local
928 preferred = find_preferred_mode(conn); in drm_test_check_tmds_char_rate_rgb_8bpc()
929 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_tmds_char_rate_rgb_8bpc()
930 KUNIT_ASSERT_FALSE(test, preferred->flags & DRM_MODE_FLAG_DBLCLK); in drm_test_check_tmds_char_rate_rgb_8bpc()
934 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_tmds_char_rate_rgb_8bpc()
942 KUNIT_EXPECT_EQ(test, conn_state->hdmi.tmds_char_rate, preferred->clock * 1000); in drm_test_check_tmds_char_rate_rgb_8bpc()
955 struct drm_display_mode *preferred; in drm_test_check_tmds_char_rate_rgb_10bpc() local
975 preferred = find_preferred_mode(conn); in drm_test_check_tmds_char_rate_rgb_10bpc()
976 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_tmds_char_rate_rgb_10bpc()
977 KUNIT_ASSERT_FALSE(test, preferred->flags & DRM_MODE_FLAG_DBLCLK); in drm_test_check_tmds_char_rate_rgb_10bpc()
981 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_tmds_char_rate_rgb_10bpc()
989 KUNIT_EXPECT_EQ(test, conn_state->hdmi.tmds_char_rate, preferred->clock * 1250); in drm_test_check_tmds_char_rate_rgb_10bpc()
1002 struct drm_display_mode *preferred; in drm_test_check_tmds_char_rate_rgb_12bpc() local
1022 preferred = find_preferred_mode(conn); in drm_test_check_tmds_char_rate_rgb_12bpc()
1023 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_tmds_char_rate_rgb_12bpc()
1024 KUNIT_ASSERT_FALSE(test, preferred->flags & DRM_MODE_FLAG_DBLCLK); in drm_test_check_tmds_char_rate_rgb_12bpc()
1028 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_tmds_char_rate_rgb_12bpc()
1036 KUNIT_EXPECT_EQ(test, conn_state->hdmi.tmds_char_rate, preferred->clock * 1500); in drm_test_check_tmds_char_rate_rgb_12bpc()
1052 struct drm_display_mode *preferred; in drm_test_check_hdmi_funcs_reject_rate() local
1068 preferred = find_preferred_mode(conn); in drm_test_check_hdmi_funcs_reject_rate()
1069 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_hdmi_funcs_reject_rate()
1073 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_hdmi_funcs_reject_rate()
1108 struct drm_display_mode *preferred; in drm_test_check_max_tmds_rate_bpc_fallback() local
1133 preferred = find_preferred_mode(conn); in drm_test_check_max_tmds_rate_bpc_fallback()
1134 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_max_tmds_rate_bpc_fallback()
1135 KUNIT_ASSERT_FALSE(test, preferred->flags & DRM_MODE_FLAG_DBLCLK); in drm_test_check_max_tmds_rate_bpc_fallback()
1137 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_max_tmds_rate_bpc_fallback()
1140 rate = drm_hdmi_compute_mode_clock(preferred, 10, HDMI_COLORSPACE_RGB); in drm_test_check_max_tmds_rate_bpc_fallback()
1145 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_max_tmds_rate_bpc_fallback()
1153 KUNIT_EXPECT_EQ(test, conn_state->hdmi.tmds_char_rate, preferred->clock * 1250); in drm_test_check_max_tmds_rate_bpc_fallback()
1175 struct drm_display_mode *preferred; in drm_test_check_max_tmds_rate_format_fallback() local
1202 preferred = find_preferred_mode(conn); in drm_test_check_max_tmds_rate_format_fallback()
1203 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_max_tmds_rate_format_fallback()
1204 KUNIT_ASSERT_FALSE(test, preferred->flags & DRM_MODE_FLAG_DBLCLK); in drm_test_check_max_tmds_rate_format_fallback()
1206 rate = drm_hdmi_compute_mode_clock(preferred, 10, HDMI_COLORSPACE_RGB); in drm_test_check_max_tmds_rate_format_fallback()
1209 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_max_tmds_rate_format_fallback()
1212 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_YUV422); in drm_test_check_max_tmds_rate_format_fallback()
1217 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_max_tmds_rate_format_fallback()
1301 struct drm_display_mode *preferred; in drm_test_check_output_bpc_format_driver_rgb_only() local
1326 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_format_driver_rgb_only()
1327 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_format_driver_rgb_only()
1330 * We're making sure that YUV422 would be the preferred option in drm_test_check_output_bpc_format_driver_rgb_only()
1338 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_output_bpc_format_driver_rgb_only()
1341 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_YUV422); in drm_test_check_output_bpc_format_driver_rgb_only()
1346 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_format_driver_rgb_only()
1366 struct drm_display_mode *preferred; in drm_test_check_output_bpc_format_display_rgb_only() local
1393 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_format_display_rgb_only()
1394 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_format_display_rgb_only()
1397 * We're making sure that YUV422 would be the preferred option in drm_test_check_output_bpc_format_display_rgb_only()
1405 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_output_bpc_format_display_rgb_only()
1408 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_YUV422); in drm_test_check_output_bpc_format_display_rgb_only()
1413 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_format_display_rgb_only()
1434 struct drm_display_mode *preferred; in drm_test_check_output_bpc_format_driver_8bpc_only() local
1459 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_format_driver_8bpc_only()
1460 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_format_driver_8bpc_only()
1466 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_output_bpc_format_driver_8bpc_only()
1471 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_format_driver_8bpc_only()
1492 struct drm_display_mode *preferred; in drm_test_check_output_bpc_format_display_8bpc_only() local
1519 preferred = find_preferred_mode(conn); in drm_test_check_output_bpc_format_display_8bpc_only()
1520 KUNIT_ASSERT_NOT_NULL(test, preferred); in drm_test_check_output_bpc_format_display_8bpc_only()
1526 rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB); in drm_test_check_output_bpc_format_display_8bpc_only()
1531 ret = light_up_connector(test, drm, crtc, conn, preferred, ctx); in drm_test_check_output_bpc_format_display_8bpc_only()