| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_cmdline_parser_test.c | 7 #include <kunit/test.h> 15 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() argument 20 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_e_only() 22 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only() 23 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only() 24 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 27 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 28 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only() 29 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only() [all …]
|
| H A D | drm_format_test.c | 3 * Test cases for the drm_format functions 8 #include <kunit/test.h> 12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid() argument 16 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0); in drm_test_format_block_width_invalid() 17 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_invalid() 18 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_invalid() 21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane() argument 25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane() 27 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_one_plane() 28 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_one_plane() [all …]
|
| H A D | drm_gem_shmem_test.c | 3 * KUnit test suite for GEM objects backed by shmem buffers 14 #include <kunit/test.h> 43 * Test creating a shmem GEM object backed by shmem buffer. The test 48 static void drm_gem_shmem_test_obj_create(struct kunit *test) in drm_gem_shmem_test_obj_create() argument 50 struct drm_device *drm_dev = test->priv; in drm_gem_shmem_test_obj_create() 54 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, shmem); in drm_gem_shmem_test_obj_create() 55 KUNIT_EXPECT_EQ(test, shmem->base.size, TEST_SIZE); in drm_gem_shmem_test_obj_create() 56 KUNIT_EXPECT_NOT_NULL(test, shmem->base.filp); in drm_gem_shmem_test_obj_create() 57 KUNIT_EXPECT_NOT_NULL(test, shmem->base.funcs); in drm_gem_shmem_test_obj_create() 63 * Test creating a shmem GEM object from a scatter/gather table exported [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_connector_test.c | 8 #include <kunit/test.h> 36 * dm_test_subconnector_type_none - Test Subconnector type none 37 * @test: The KUnit test context 39 static void dm_test_subconnector_type_none(struct kunit *test) in dm_test_subconnector_type_none() argument 41 struct dc_link *link = kunit_kzalloc(test, sizeof(*link), GFP_KERNEL); in dm_test_subconnector_type_none() 43 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, link); in dm_test_subconnector_type_none() 46 KUNIT_EXPECT_EQ(test, (int)get_subconnector_type(link), (int)DRM_MODE_SUBCONNECTOR_Native); in dm_test_subconnector_type_none() 50 * dm_test_subconnector_type_vga - Test Subconnector type vga 51 * @test 53 dm_test_subconnector_type_vga(struct kunit * test) dm_test_subconnector_type_vga() argument 67 dm_test_subconnector_type_dvi_converter(struct kunit * test) dm_test_subconnector_type_dvi_converter() argument 81 dm_test_subconnector_type_dvi_dongle(struct kunit * test) dm_test_subconnector_type_dvi_dongle() argument 95 dm_test_subconnector_type_hdmi_converter(struct kunit * test) dm_test_subconnector_type_hdmi_converter() argument 109 dm_test_subconnector_type_hdmi_dongle(struct kunit * test) dm_test_subconnector_type_hdmi_dongle() argument 123 dm_test_subconnector_type_mismatched(struct kunit * test) dm_test_subconnector_type_mismatched() argument 137 dm_test_subconnector_type_default_unknown(struct kunit * test) dm_test_subconnector_type_default_unknown() argument 153 dm_test_content_type_no_data(struct kunit * test) dm_test_content_type_no_data() argument 165 dm_test_content_type_graphics(struct kunit * test) dm_test_content_type_graphics() argument 177 dm_test_content_type_photo(struct kunit * test) dm_test_content_type_photo() argument 189 dm_test_content_type_cinema(struct kunit * test) dm_test_content_type_cinema() argument 201 dm_test_content_type_game(struct kunit * test) dm_test_content_type_game() argument 213 dm_test_content_type_unknown_defaults_no_data(struct kunit * test) dm_test_content_type_unknown_defaults_no_data() argument 228 dm_test_adjust_colour_depth_fits_at_888(struct kunit * test) dm_test_adjust_colour_depth_fits_at_888() argument 247 dm_test_adjust_colour_depth_reduces_to_888(struct kunit * test) dm_test_adjust_colour_depth_reduces_to_888() argument 267 dm_test_adjust_colour_depth_10bpc_passes(struct kunit * test) dm_test_adjust_colour_depth_10bpc_passes() argument 286 dm_test_adjust_colour_depth_420_halves_clk(struct kunit * test) dm_test_adjust_colour_depth_420_halves_clk() argument 306 dm_test_adjust_colour_depth_420_reduces(struct kunit * test) dm_test_adjust_colour_depth_420_reduces() argument 331 dm_test_adjust_colour_depth_reduces_12bpc_to_10bpc(struct kunit * test) dm_test_adjust_colour_depth_reduces_12bpc_to_10bpc() argument 350 dm_test_adjust_colour_depth_16bpc_no_fallback(struct kunit * test) dm_test_adjust_colour_depth_16bpc_no_fallback() argument 370 dm_test_adjust_colour_depth_none_fits(struct kunit * test) dm_test_adjust_colour_depth_none_fits() argument 388 dm_test_adjust_colour_depth_invalid_depth(struct kunit * test) dm_test_adjust_colour_depth_invalid_depth() argument 408 dm_test_output_color_space_default_rgb_full(struct kunit * test) dm_test_output_color_space_default_rgb_full() argument 425 dm_test_output_color_space_default_rgb_limited(struct kunit * test) dm_test_output_color_space_default_rgb_limited() argument 442 dm_test_output_color_space_default_ycbcr709(struct kunit * test) dm_test_output_color_space_default_ycbcr709() argument 461 dm_test_output_color_space_default_ycbcr601_limited(struct kunit * test) dm_test_output_color_space_default_ycbcr601_limited() argument 479 dm_test_output_color_space_bt601_y_only(struct kunit * test) dm_test_output_color_space_bt601_y_only() argument 495 dm_test_output_color_space_bt601(struct kunit * test) dm_test_output_color_space_bt601() argument 511 dm_test_output_color_space_bt709(struct kunit * test) dm_test_output_color_space_bt709() argument 527 dm_test_output_color_space_bt709_y_only(struct kunit * test) dm_test_output_color_space_bt709_y_only() argument 543 dm_test_output_color_space_oprgb(struct kunit * test) dm_test_output_color_space_oprgb() argument 558 dm_test_output_color_space_bt2020_rgb(struct kunit * test) dm_test_output_color_space_bt2020_rgb() argument 574 dm_test_output_color_space_bt2020_ycc(struct kunit * test) dm_test_output_color_space_bt2020_ycc() argument 591 dm_test_output_color_space_default_ycbcr709_y_only(struct kunit * test) dm_test_output_color_space_default_ycbcr709_y_only() argument 610 dm_test_output_color_space_default_ycbcr601(struct kunit * test) dm_test_output_color_space_default_ycbcr601() argument 629 dm_test_output_color_space_bt2020_ycc_rgb_encoding(struct kunit * test) dm_test_output_color_space_bt2020_ycc_rgb_encoding() argument 646 dm_test_output_color_space_bt2020_rgb_ycc_encoding(struct kunit * test) dm_test_output_color_space_bt2020_rgb_ycc_encoding() argument 664 dm_test_convert_color_depth_bpc_mappings(struct kunit * test) dm_test_convert_color_depth_bpc_mappings() argument 678 dm_test_convert_color_depth_bpc_unknown(struct kunit * test) dm_test_convert_color_depth_bpc_unknown() argument 689 dm_test_color_depth_from_info_bpc8(struct kunit * test) dm_test_color_depth_from_info_bpc8() argument 705 dm_test_color_depth_from_info_bpc10(struct kunit * test) dm_test_color_depth_from_info_bpc10() argument 722 dm_test_color_depth_from_info_zero_bpc_defaults_888(struct kunit * test) dm_test_color_depth_from_info_zero_bpc_defaults_888() argument 738 dm_test_color_depth_from_info_requested_bpc_caps(struct kunit * test) dm_test_color_depth_from_info_requested_bpc_caps() argument 755 dm_test_color_depth_from_info_y420_default(struct kunit * test) dm_test_color_depth_from_info_y420_default() argument 771 dm_test_color_depth_from_info_y420_10bpc(struct kunit * test) dm_test_color_depth_from_info_y420_10bpc() argument 787 dm_test_color_depth_from_info_y420_12bpc(struct kunit * test) dm_test_color_depth_from_info_y420_12bpc() argument 803 dm_test_color_depth_from_info_y420_16bpc(struct kunit * test) dm_test_color_depth_from_info_y420_16bpc() argument 819 dm_test_color_depth_from_info_requested_odd_bpc(struct kunit * test) dm_test_color_depth_from_info_requested_odd_bpc() argument 835 dm_test_color_depth_from_info_unsupported_bpc(struct kunit * test) dm_test_color_depth_from_info_unsupported_bpc() argument 853 dm_test_to_connector_type_hdmi(struct kunit * test) dm_test_to_connector_type_hdmi() argument 863 dm_test_to_connector_type_edp(struct kunit * test) dm_test_to_connector_type_edp() argument 873 dm_test_to_connector_type_lvds(struct kunit * test) dm_test_to_connector_type_lvds() argument 883 dm_test_to_connector_type_rgb(struct kunit * test) dm_test_to_connector_type_rgb() argument 893 dm_test_to_connector_type_dp(struct kunit * test) dm_test_to_connector_type_dp() argument 903 dm_test_to_connector_type_dp_mst(struct kunit * test) dm_test_to_connector_type_dp_mst() argument 913 dm_test_to_connector_type_dvi_dvii(struct kunit * test) dm_test_to_connector_type_dvi_dvii() argument 924 dm_test_to_connector_type_dual_link_dvii(struct kunit * test) dm_test_to_connector_type_dual_link_dvii() argument 935 dm_test_to_connector_type_dvi_dvid(struct kunit * test) dm_test_to_connector_type_dvi_dvid() argument 946 dm_test_to_connector_type_dual_link_dvid(struct kunit * test) dm_test_to_connector_type_dual_link_dvid() argument 957 dm_test_to_connector_type_virtual(struct kunit * test) dm_test_to_connector_type_virtual() argument 967 dm_test_to_connector_type_unknown(struct kunit * test) dm_test_to_connector_type_unknown() argument 979 dm_test_is_duplicate_mode_empty_list(struct kunit * test) dm_test_is_duplicate_mode_empty_list() argument 998 dm_test_is_duplicate_mode_match(struct kunit * test) dm_test_is_duplicate_mode_match() argument 1024 dm_test_is_duplicate_mode_no_match(struct kunit * test) dm_test_is_duplicate_mode_no_match() argument 1051 dm_test_is_duplicate_mode_same_size_different_clock(struct kunit * test) dm_test_is_duplicate_mode_same_size_different_clock() argument 1079 dm_test_encoder_crtc_mask_1(struct kunit * test) dm_test_encoder_crtc_mask_1() argument 1094 dm_test_encoder_crtc_mask_2(struct kunit * test) dm_test_encoder_crtc_mask_2() argument 1109 dm_test_encoder_crtc_mask_3(struct kunit * test) dm_test_encoder_crtc_mask_3() argument 1124 dm_test_encoder_crtc_mask_4(struct kunit * test) dm_test_encoder_crtc_mask_4() argument 1139 dm_test_encoder_crtc_mask_5(struct kunit * test) dm_test_encoder_crtc_mask_5() argument 1154 dm_test_encoder_crtc_mask_6(struct kunit * test) dm_test_encoder_crtc_mask_6() argument 1169 dm_test_encoder_crtc_mask_default(struct kunit * test) dm_test_encoder_crtc_mask_default() argument 1187 dm_test_aspect_ratio_no_data(struct kunit * test) dm_test_aspect_ratio_no_data() argument 1199 dm_test_aspect_ratio_4_3(struct kunit * test) dm_test_aspect_ratio_4_3() argument 1211 dm_test_aspect_ratio_16_9(struct kunit * test) dm_test_aspect_ratio_16_9() argument 1223 dm_test_aspect_ratio_64_27(struct kunit * test) dm_test_aspect_ratio_64_27() argument 1235 dm_test_aspect_ratio_256_135(struct kunit * test) dm_test_aspect_ratio_256_135() argument 1249 dm_test_copy_crtc_timing_copies_all_fields(struct kunit * test) dm_test_copy_crtc_timing_copies_all_fields() argument 1291 dm_test_copy_crtc_timing_leaves_non_crtc_fields(struct kunit * test) dm_test_copy_crtc_timing_leaves_non_crtc_fields() argument 1319 dm_test_decide_crtc_timing_scale_enabled(struct kunit * test) dm_test_decide_crtc_timing_scale_enabled() argument 1352 dm_test_decide_crtc_timing_matching_mode(struct kunit * test) dm_test_decide_crtc_timing_matching_mode() argument 1382 dm_test_decide_crtc_timing_no_copy(struct kunit * test) dm_test_decide_crtc_timing_no_copy() argument 1408 dm_test_decide_crtc_timing_no_crtc_clock(struct kunit * test) dm_test_decide_crtc_timing_no_crtc_clock() argument 1442 dm_test_funcs_reset_sets_defaults(struct kunit * test) dm_test_funcs_reset_sets_defaults() argument 1480 dm_test_funcs_reset_edp_abm_level(struct kunit * test) dm_test_funcs_reset_edp_abm_level() argument 1518 dm_test_funcs_reset_edp_abm_disabled(struct kunit * test) dm_test_funcs_reset_edp_abm_disabled() argument 1559 dm_test_atomic_dup_state_copies_fields(struct kunit * test) dm_test_atomic_dup_state_copies_fields() argument 1621 dm_test_fill_hdr_null_metadata(struct kunit * test) dm_test_fill_hdr_null_metadata() argument 1637 dm_test_fill_hdr_zeroes_output(struct kunit * test) dm_test_fill_hdr_zeroes_output() argument 1673 dm_test_prop_ctx_alloc(struct kunit * test) dm_test_prop_ctx_alloc() argument 1715 dm_test_set_property_scaling_center(struct kunit * test) dm_test_set_property_scaling_center() argument 1729 dm_test_set_property_scaling_aspect(struct kunit * test) dm_test_set_property_scaling_aspect() argument 1743 dm_test_set_property_scaling_fullscreen(struct kunit * test) dm_test_set_property_scaling_fullscreen() argument 1757 dm_test_set_property_scaling_none(struct kunit * test) dm_test_set_property_scaling_none() argument 1773 dm_test_set_property_scaling_unchanged(struct kunit * test) dm_test_set_property_scaling_unchanged() argument 1791 dm_test_set_property_underscan_hborder(struct kunit * test) dm_test_set_property_underscan_hborder() argument 1805 dm_test_set_property_underscan_vborder(struct kunit * test) dm_test_set_property_underscan_vborder() argument 1819 dm_test_set_property_underscan_enable(struct kunit * test) dm_test_set_property_underscan_enable() argument 1833 dm_test_set_property_abm_sysfs_control(struct kunit * test) dm_test_set_property_abm_sysfs_control() argument 1848 dm_test_set_property_abm_level_off(struct kunit * test) dm_test_set_property_abm_level_off() argument 1864 dm_test_set_property_abm_level_value(struct kunit * test) dm_test_set_property_abm_level_value() argument 1879 dm_test_set_property_unknown(struct kunit * test) dm_test_set_property_unknown() argument 1898 dm_test_get_property_scaling_center(struct kunit * test) dm_test_get_property_scaling_center() argument 1914 dm_test_get_property_scaling_aspect(struct kunit * test) dm_test_get_property_scaling_aspect() argument 1930 dm_test_get_property_scaling_full(struct kunit * test) dm_test_get_property_scaling_full() argument 1946 dm_test_get_property_scaling_off(struct kunit * test) dm_test_get_property_scaling_off() argument 1962 dm_test_get_property_underscan_borders(struct kunit * test) dm_test_get_property_underscan_borders() argument 1991 dm_test_get_property_abm_sysfs_allowed(struct kunit * test) dm_test_get_property_abm_sysfs_allowed() argument 2007 dm_test_get_property_abm_level(struct kunit * test) dm_test_get_property_abm_level() argument 2024 dm_test_get_property_abm_disabled_zero(struct kunit * test) dm_test_get_property_abm_disabled_zero() argument 2041 dm_test_get_property_unknown(struct kunit * test) dm_test_get_property_unknown() argument 2061 dm_test_highest_refresh_writeback_null(struct kunit * test) dm_test_highest_refresh_writeback_null() argument 2076 dm_test_highest_refresh_cached_base(struct kunit * test) dm_test_highest_refresh_cached_base() argument 2094 dm_test_highest_refresh_preferred_mode(struct kunit * test) dm_test_highest_refresh_preferred_mode() argument 2125 dm_test_is_freesync_video_mode_null_mode(struct kunit * test) dm_test_is_freesync_video_mode_null_mode() argument 2142 dm_test_is_freesync_video_mode_match(struct kunit * test) dm_test_is_freesync_video_mode_match() argument 2179 dm_test_is_freesync_video_mode_no_match(struct kunit * test) dm_test_is_freesync_video_mode_no_match() argument 2212 setup_cacp_fixture(struct kunit * test,struct dm_cacp_fixture * fixture,enum signal_type signal,enum dc_panel_type panel_type) setup_cacp_fixture() argument 2238 dm_test_cacp_caps_unsupported_ip(struct kunit * test) dm_test_cacp_caps_unsupported_ip() argument 2256 dm_test_cacp_caps_excluded_ip_316(struct kunit * test) dm_test_cacp_caps_excluded_ip_316() argument 2274 dm_test_cacp_caps_edp_oled_supported(struct kunit * test) dm_test_cacp_caps_edp_oled_supported() argument 2292 dm_test_cacp_caps_lvds_oled_supported(struct kunit * test) dm_test_cacp_caps_lvds_oled_supported() argument 2310 dm_test_cacp_caps_non_edp_signal(struct kunit * test) dm_test_cacp_caps_non_edp_signal() argument 2330 dm_test_cacp_caps_lcd_panel(struct kunit * test) dm_test_cacp_caps_lcd_panel() argument 2352 setup_panel_type_fixture(struct kunit * test,struct dm_panel_type_fixture * fixture) setup_panel_type_fixture() argument 2385 dm_test_set_panel_type_vsdb_oled(struct kunit * test) dm_test_set_panel_type_vsdb_oled() argument 2403 dm_test_set_panel_type_vsdb_miniled(struct kunit * test) dm_test_set_panel_type_vsdb_miniled() argument 2421 dm_test_set_panel_type_dpcd_oled(struct kunit * test) dm_test_set_panel_type_dpcd_oled() argument 2438 dm_test_set_panel_type_dpcd_miniled(struct kunit * test) dm_test_set_panel_type_dpcd_miniled() argument 2458 dm_test_set_panel_type_did_oled(struct kunit * test) dm_test_set_panel_type_did_oled() argument 2479 dm_test_set_panel_type_did_lcd(struct kunit * test) dm_test_set_panel_type_did_lcd() argument 2500 dm_test_set_panel_type_vendor_lum_heuristic(struct kunit * test) dm_test_set_panel_type_vendor_lum_heuristic() argument 2527 dm_test_set_panel_type_defaults_to_lcd(struct kunit * test) dm_test_set_panel_type_defaults_to_lcd() argument 2546 dm_test_update_subconnector_dp_with_sink(struct kunit * test) dm_test_update_subconnector_dp_with_sink() argument 2590 dm_test_update_subconnector_dp_no_sink(struct kunit * test) dm_test_update_subconnector_dp_no_sink() argument 2633 dm_test_update_subconnector_non_dp_noop(struct kunit * test) dm_test_update_subconnector_non_dp_noop() argument 2691 dm_test_fbc_ctx_alloc(struct kunit * test) dm_test_fbc_ctx_alloc() argument 2725 dm_test_fbc_init_no_compressor(struct kunit * test) dm_test_fbc_init_no_compressor() argument 2740 dm_test_fbc_init_non_edp(struct kunit * test) dm_test_fbc_init_non_edp() argument 2755 dm_test_fbc_init_already_allocated(struct kunit * test) dm_test_fbc_init_already_allocated() argument 2774 dm_test_fbc_init_no_modes(struct kunit * test) dm_test_fbc_init_no_modes() argument 2787 dm_test_alloc_drm(struct kunit * test) dm_test_alloc_drm() argument 2807 dm_test_add_connector(struct kunit * test,struct drm_device * drm,int connector_type) dm_test_add_connector() argument 2827 dm_test_detect_mst_no_connectors(struct kunit * test) dm_test_detect_mst_no_connectors() argument 2843 dm_test_detect_mst_skips_writeback(struct kunit * test) dm_test_detect_mst_skips_writeback() argument 2861 dm_test_detect_mst_non_mst_link(struct kunit * test) dm_test_detect_mst_non_mst_link() argument 2888 dm_test_detect_mst_branch_without_aux(struct kunit * test) dm_test_detect_mst_branch_without_aux() argument 2916 dm_test_alloc_atomic_state(struct kunit * test,int count) dm_test_alloc_atomic_state() argument 2938 dm_test_find_first_crtc_match(struct kunit * test) dm_test_find_first_crtc_match() argument 2965 dm_test_find_first_crtc_no_match(struct kunit * test) dm_test_find_first_crtc_no_match() argument 2994 dm_test_find_first_crtc_empty_state(struct kunit * test) dm_test_find_first_crtc_empty_state() argument 3010 dm_test_find_first_crtc_skips_null_ptr(struct kunit * test) dm_test_find_first_crtc_skips_null_ptr() argument 3038 dm_test_find_first_crtc_returns_first(struct kunit * test) dm_test_find_first_crtc_returns_first() argument 3086 dm_test_panel_ctx_alloc(struct kunit * test) dm_test_panel_ctx_alloc() argument 3129 dm_test_panel_prop_value(struct kunit * test,struct dm_test_panel_ctx * ctx) dm_test_panel_prop_value() argument 3147 dm_test_set_panel_type_samsung_miniled(struct kunit * test) dm_test_set_panel_type_samsung_miniled() argument 3171 dm_test_set_panel_type_samsung_below_threshold(struct kunit * test) dm_test_set_panel_type_samsung_below_threshold() argument 3196 dm_test_set_panel_type_default_lcd(struct kunit * test) dm_test_set_panel_type_default_lcd() argument 3221 dm_test_cacp_ctx_alloc(struct kunit * test) dm_test_cacp_ctx_alloc() argument 3260 dm_test_cacp_caps_edp_supported(struct kunit * test) dm_test_cacp_caps_edp_supported() argument 3273 dm_test_cacp_caps_lvds_supported(struct kunit * test) dm_test_cacp_caps_lvds_supported() argument 3290 dm_test_cacp_caps_old_ip_unsupported(struct kunit * test) dm_test_cacp_caps_old_ip_unsupported() argument 3307 dm_test_cacp_caps_ip_3_1_6_unsupported(struct kunit * test) dm_test_cacp_caps_ip_3_1_6_unsupported() argument 3323 dm_test_cacp_caps_non_edp_lvds_unsupported(struct kunit * test) dm_test_cacp_caps_non_edp_lvds_unsupported() argument 3338 dm_test_cacp_caps_lcd_unsupported(struct kunit * test) dm_test_cacp_caps_lcd_unsupported() argument 3368 dm_test_fill_ctx_alloc(struct kunit * test) dm_test_fill_ctx_alloc() argument 3407 dm_test_fill_stream_borders_zeroed(struct kunit * test) dm_test_fill_stream_borders_zeroed() argument 3435 dm_test_fill_stream_rgb_defaults(struct kunit * test) dm_test_fill_stream_rgb_defaults() argument 3460 dm_test_fill_stream_sync_polarity_positive(struct kunit * test) dm_test_fill_stream_sync_polarity_positive() argument 3479 dm_test_fill_stream_sync_polarity_negative(struct kunit * test) dm_test_fill_stream_sync_polarity_negative() argument 3502 dm_test_fill_stream_inherits_old_stream(struct kunit * test) dm_test_fill_stream_inherits_old_stream() argument 3533 dm_test_fill_stream_timing_from_crtc(struct kunit * test) dm_test_fill_stream_timing_from_crtc() argument 3569 dm_test_fill_stream_color_depth_requested_bpc(struct kunit * test) dm_test_fill_stream_color_depth_requested_bpc() argument 3588 dm_test_fill_stream_content_type(struct kunit * test) dm_test_fill_stream_content_type() argument 3606 dm_test_fill_stream_aspect_ratio(struct kunit * test) dm_test_fill_stream_aspect_ratio() argument 3629 dm_test_fill_stream_encoding_from_caller_ycbcr420(struct kunit * test) dm_test_fill_stream_encoding_from_caller_ycbcr420() argument 3648 dm_test_fill_stream_encoding_from_caller_ycbcr422(struct kunit * test) dm_test_fill_stream_encoding_from_caller_ycbcr422() argument 3667 dm_test_fill_stream_encoding_from_caller_ycbcr444(struct kunit * test) dm_test_fill_stream_encoding_from_caller_ycbcr444() argument 3687 dm_test_fill_stream_hdmi_ep_clamps_depth(struct kunit * test) dm_test_fill_stream_hdmi_ep_clamps_depth() argument 3712 dm_test_fill_stream_non_hdmi_ep_keeps_depth(struct kunit * test) dm_test_fill_stream_non_hdmi_ep_keeps_depth() argument 3750 dm_test_stream_ctx_alloc(struct kunit * test) dm_test_stream_ctx_alloc() argument 3801 dm_test_create_stream_fake_sink_success(struct kunit * test) dm_test_create_stream_fake_sink_success() argument 3818 dm_test_create_stream_sets_dm_context(struct kunit * test) dm_test_create_stream_sets_dm_context() argument 3836 dm_test_create_stream_virtual_signal(struct kunit * test) dm_test_create_stream_virtual_signal() argument 3856 dm_test_create_stream_scaling_src(struct kunit * test) dm_test_create_stream_scaling_src() argument 3878 dm_test_create_stream_existing_sink(struct kunit * test) dm_test_create_stream_existing_sink() argument 3912 dm_test_detect_connector(struct kunit * test) dm_test_detect_connector() argument 3923 dm_test_detect_force_on(struct kunit * test) dm_test_detect_force_on() argument 3938 dm_test_detect_force_on_digital(struct kunit * test) dm_test_detect_force_on_digital() argument 3953 dm_test_detect_force_off(struct kunit * test) dm_test_detect_force_off() argument 3968 dm_test_detect_sink_present(struct kunit * test) dm_test_detect_sink_present() argument 3988 dm_test_detect_no_sink(struct kunit * test) dm_test_detect_no_sink() argument 4011 dm_test_poll_dac_load_returns_cached(struct kunit * test) dm_test_poll_dac_load_returns_cached() argument 4061 dm_test_reg_connector(struct kunit * test) dm_test_reg_connector() argument 4095 dm_test_late_register_non_dp_succeeds(struct kunit * test) dm_test_late_register_non_dp_succeeds() argument 4110 dm_test_unregister_non_dp_noop(struct kunit * test) dm_test_unregister_non_dp_noop() argument 4135 dm_test_destroy_ctx_alloc(struct kunit * test) dm_test_destroy_ctx_alloc() argument 4179 dm_test_destroy_connector(struct kunit * test,struct drm_device * drm) dm_test_destroy_connector() argument 4202 dm_test_destroy_minimal(struct kunit * test) dm_test_destroy_minimal() argument 4215 dm_test_destroy_releases_dc_sink(struct kunit * test) dm_test_destroy_releases_dc_sink() argument 4242 dm_test_destroy_releases_dc_em_sink(struct kunit * test) dm_test_destroy_releases_dc_em_sink() argument 4273 dm_test_encoder_disable_noop(struct kunit * test) dm_test_encoder_disable_noop() argument 4300 dm_test_atomic_check_ctx_alloc(struct kunit * test,int connector_type) dm_test_atomic_check_ctx_alloc() argument 4334 dm_test_atomic_check_edp_native_keeps_scaling(struct kunit * test) dm_test_atomic_check_edp_native_keeps_scaling() argument 4359 dm_test_atomic_check_lvds_non_native_enables_scaling(struct kunit * test) dm_test_atomic_check_lvds_non_native_enables_scaling() argument 4384 dm_test_atomic_check_non_mst_returns_zero(struct kunit * test) dm_test_atomic_check_non_mst_returns_zero() argument 4405 dm_test_hdmi_cec_unset_edid_no_notifier(struct kunit * test) dm_test_hdmi_cec_unset_edid_no_notifier() argument 4430 dm_test_edid_ctx_alloc(struct kunit * test,int connector_type) dm_test_edid_ctx_alloc() argument 4457 dm_test_create_eml_sink_no_edid(struct kunit * test) dm_test_create_eml_sink_no_edid() argument 4474 dm_test_handle_edid_mgmt_dp_sets_link_caps(struct kunit * test) dm_test_handle_edid_mgmt_dp_sets_link_caps() argument 4496 dm_test_handle_edid_mgmt_non_dp_leaves_caps(struct kunit * test) dm_test_handle_edid_mgmt_non_dp_leaves_caps() argument 4521 dm_test_modes_ctx_alloc(struct kunit * test,int connector_type) dm_test_modes_ctx_alloc() argument 4550 dm_test_funcs_force_no_edid(struct kunit * test) dm_test_funcs_force_no_edid() argument 4567 dm_test_validate_stream_null_stream(struct kunit * test) dm_test_validate_stream_null_stream() argument 4578 dm_test_to_encoder_no_encoder(struct kunit * test) dm_test_to_encoder_no_encoder() argument 4592 dm_test_to_encoder_returns_attached(struct kunit * test) dm_test_to_encoder_returns_attached() argument 4609 dm_test_native_mode_no_encoder(struct kunit * test) dm_test_native_mode_no_encoder() argument 4625 dm_test_native_mode_empty_probed_zeroes_clock(struct kunit * test) dm_test_native_mode_empty_probed_zeroes_clock() argument 4643 dm_test_native_mode_copies_preferred(struct kunit * test) dm_test_native_mode_copies_preferred() argument 4671 dm_test_create_common_mode_overrides(struct kunit * test) dm_test_create_common_mode_overrides() argument 4702 dm_test_add_common_modes_non_edp_noop(struct kunit * test) dm_test_add_common_modes_non_edp_noop() argument 4723 dm_test_add_common_modes_edp_adds(struct kunit * test) dm_test_add_common_modes_edp_adds() argument 4741 dm_test_ddc_get_modes_null_edid(struct kunit * test) dm_test_ddc_get_modes_null_edid() argument 4761 dm_test_add_fs_modes_no_preferred_mode(struct kunit * test) dm_test_add_fs_modes_no_preferred_mode() argument 4780 dm_test_add_freesync_modes_null_edid_noop(struct kunit * test) dm_test_add_freesync_modes_null_edid_noop() argument 4805 dm_test_i2c_func_returns_flags(struct kunit * test) dm_test_i2c_func_returns_flags() argument 4818 dm_test_i2c_xfer_no_ddc_pin(struct kunit * test) dm_test_i2c_xfer_no_ddc_pin() argument 4839 dm_test_get_amd_vsdb_unsupported(struct kunit * test) dm_test_get_amd_vsdb_unsupported() argument 4861 dm_test_get_amd_vsdb_supported(struct kunit * test) dm_test_get_amd_vsdb_supported() argument 4881 dm_test_parse_hdmi_amd_vsdb_null_edid(struct kunit * test) dm_test_parse_hdmi_amd_vsdb_null_edid() argument 4900 dm_test_parse_hdmi_amd_vsdb_no_extensions(struct kunit * test) dm_test_parse_hdmi_amd_vsdb_no_extensions() argument 4924 dm_test_parse_hdmi_amd_vsdb_no_cea_ext(struct kunit * test) dm_test_parse_hdmi_amd_vsdb_no_cea_ext() argument 4950 dm_test_parse_displayid_vrr_null_edid(struct kunit * test) dm_test_parse_displayid_vrr_null_edid() argument 4969 dm_test_parse_displayid_vrr_no_displayid(struct kunit * test) dm_test_parse_displayid_vrr_no_displayid() argument 4995 dm_test_parse_displayid_vrr_sets_range(struct kunit * test) dm_test_parse_displayid_vrr_sets_range() argument 5034 dm_test_mode_valid_interlace_rejected(struct kunit * test) dm_test_mode_valid_interlace_rejected() argument 5057 dm_test_mode_valid_dblscan_rejected(struct kunit * test) dm_test_mode_valid_dblscan_rejected() argument 5080 dm_test_hdmi_cec_set_edid_no_notifier(struct kunit * test) dm_test_hdmi_cec_set_edid_no_notifier() argument 5097 dm_test_s3_handle_hdmi_cec_suspend(struct kunit * test) dm_test_s3_handle_hdmi_cec_suspend() argument 5114 dm_test_s3_handle_hdmi_cec_resume(struct kunit * test) dm_test_s3_handle_hdmi_cec_resume() argument 5131 dm_test_create_validate_stream_null_dm_state(struct kunit * test) dm_test_create_validate_stream_null_dm_state() argument 5150 dm_test_update_after_detect_mst_noop(struct kunit * test) dm_test_update_after_detect_mst_noop() argument 5169 dm_test_update_after_detect_sink_unchanged(struct kunit * test) dm_test_update_after_detect_sink_unchanged() argument 5193 dm_test_update_scaling_null_mode(struct kunit * test) dm_test_update_scaling_null_mode() argument 5212 dm_test_update_scaling_fullscreen_default(struct kunit * test) dm_test_update_scaling_fullscreen_default() argument 5238 dm_test_update_scaling_rmx_full(struct kunit * test) dm_test_update_scaling_rmx_full() argument 5267 dm_test_update_scaling_rmx_aspect_pillarbox(struct kunit * test) dm_test_update_scaling_rmx_aspect_pillarbox() argument 5301 dm_test_update_scaling_rmx_aspect_letterbox(struct kunit * test) dm_test_update_scaling_rmx_aspect_letterbox() argument 5330 dm_test_update_scaling_rmx_center(struct kunit * test) dm_test_update_scaling_rmx_center() argument 5359 dm_test_update_scaling_underscan(struct kunit * test) dm_test_update_scaling_underscan() argument [all...] |
| H A D | amdgpu_dm_test.c | 8 #include <kunit/test.h> 27 * dm_test_is_idle - Test placeholder idle callback returns true 28 * @test: The KUnit test context 30 static void dm_test_is_idle(struct kunit *test) in dm_test_is_idle() argument 32 KUNIT_EXPECT_TRUE(test, dm_is_idle(NULL)); in dm_test_is_idle() 36 * dm_test_wait_for_idle - Test placeholder wait-for-idle callback returns success 37 * @test: The KUnit test context 39 static void dm_test_wait_for_idle(struct kunit *test) in dm_test_wait_for_idle() argument 41 KUNIT_EXPECT_EQ(test, dm_wait_for_idle(NULL), 0); in dm_test_wait_for_idle() 45 * dm_test_soft_reset - Test placeholder soft-reset callback returns success [all …]
|
| H A D | amdgpu_dm_irq_test.c | 8 #include <kunit/test.h> 100 * dc_sink_create()/dc_sink_release() symbols. Production code under test still 277 static struct dc *dm_test_alloc_dc_with_irq_service(struct kunit *test, in dm_test_alloc_dc_with_irq_service() argument 286 dc = dm_kunit_alloc_dc_with_ctx(test); in dm_test_alloc_dc_with_irq_service() 287 res_pool = kunit_kzalloc(test, sizeof(*res_pool), GFP_KERNEL); in dm_test_alloc_dc_with_irq_service() 288 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, res_pool); in dm_test_alloc_dc_with_irq_service() 289 irqs = kunit_kzalloc(test, sizeof(*irqs), GFP_KERNEL); in dm_test_alloc_dc_with_irq_service() 290 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, irqs); in dm_test_alloc_dc_with_irq_service() 296 info = kunit_kzalloc(test, sizeof(*info) * DAL_IRQ_SOURCES_NUMBER, in dm_test_alloc_dc_with_irq_service() 298 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, inf in dm_test_alloc_dc_with_irq_service() 378 dm_test_hpd_to_dal_irq_source_hpd1(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd1() argument 388 dm_test_hpd_to_dal_irq_source_hpd2(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd2() argument 398 dm_test_hpd_to_dal_irq_source_hpd3(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd3() argument 408 dm_test_hpd_to_dal_irq_source_hpd4(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd4() argument 418 dm_test_hpd_to_dal_irq_source_hpd5(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd5() argument 428 dm_test_hpd_to_dal_irq_source_hpd6(struct kunit * test) dm_test_hpd_to_dal_irq_source_hpd6() argument 438 dm_test_hpd_to_dal_irq_source_invalid(struct kunit * test) dm_test_hpd_to_dal_irq_source_invalid() argument 448 dm_test_hpd_to_dal_irq_source_out_of_range(struct kunit * test) dm_test_hpd_to_dal_irq_source_out_of_range() argument 460 dm_test_are_sinks_equal_both_null(struct kunit * test) dm_test_are_sinks_equal_both_null() argument 469 dm_test_are_sinks_equal_first_null(struct kunit * test) dm_test_are_sinks_equal_first_null() argument 483 dm_test_are_sinks_equal_second_null(struct kunit * test) dm_test_are_sinks_equal_second_null() argument 497 dm_test_are_sinks_equal_different_signal(struct kunit * test) dm_test_are_sinks_equal_different_signal() argument 516 dm_test_are_sinks_equal_different_edid_length(struct kunit * test) dm_test_are_sinks_equal_different_edid_length() argument 537 dm_test_are_sinks_equal_different_edid_data(struct kunit * test) dm_test_are_sinks_equal_different_edid_data() argument 560 dm_test_are_sinks_equal_identical(struct kunit * test) dm_test_are_sinks_equal_identical() argument 583 dm_test_are_sinks_equal_zero_length(struct kunit * test) dm_test_are_sinks_equal_zero_length() argument 604 dm_test_are_sinks_equal_full_edid_identical(struct kunit * test) dm_test_are_sinks_equal_full_edid_identical() argument 627 dm_test_are_sinks_equal_full_edid_last_byte_differs(struct kunit * test) dm_test_are_sinks_equal_full_edid_last_byte_differs() argument 653 dm_test_notification_str_no_data(struct kunit * test) dm_test_notification_str_no_data() argument 662 dm_test_notification_str_aux_reply(struct kunit * test) dm_test_notification_str_aux_reply() argument 671 dm_test_notification_str_hpd(struct kunit * test) dm_test_notification_str_hpd() argument 680 dm_test_notification_str_hpd_irq(struct kunit * test) dm_test_notification_str_hpd_irq() argument 689 dm_test_notification_str_set_config(struct kunit * test) dm_test_notification_str_set_config() argument 699 dm_test_notification_str_dpia(struct kunit * test) dm_test_notification_str_dpia() argument 709 dm_test_notification_str_hpd_sense(struct kunit * test) dm_test_notification_str_hpd_sense() argument 719 dm_test_notification_str_fused_io(struct kunit * test) dm_test_notification_str_fused_io() argument 729 dm_test_notification_str_unknown(struct kunit * test) dm_test_notification_str_unknown() argument 740 dm_test_irq_init_initializes_lists(struct kunit * test) dm_test_irq_init_initializes_lists() argument 764 dm_test_irq_register_rejects_null_params(struct kunit * test) dm_test_irq_register_rejects_null_params() argument 786 dm_test_irq_register_rejects_invalid_context(struct kunit * test) dm_test_irq_register_rejects_invalid_context() argument 806 dm_test_irq_register_rejects_invalid_source(struct kunit * test) dm_test_irq_register_rejects_invalid_source() argument 826 dm_test_irq_register_adds_low_context_handler(struct kunit * test) dm_test_irq_register_adds_low_context_handler() argument 858 dm_test_irq_register_adds_high_context_handler(struct kunit * test) dm_test_irq_register_adds_high_context_handler() argument 890 dm_test_irq_register_multiple_handlers(struct kunit * test) dm_test_irq_register_multiple_handlers() argument 925 dm_test_irq_register_separate_contexts(struct kunit * test) dm_test_irq_register_separate_contexts() argument 978 dm_test_irq_unregister_rejects_invalid_source(struct kunit * test) dm_test_irq_unregister_rejects_invalid_source() argument 999 dm_test_irq_unregister_rejects_null_handler(struct kunit * test) dm_test_irq_unregister_rejects_null_handler() argument 1020 dm_test_irq_unregister_handler_not_found(struct kunit * test) dm_test_irq_unregister_handler_not_found() argument 1056 dm_test_irq_fini_removes_registered_handlers(struct kunit * test) dm_test_irq_fini_removes_registered_handlers() argument 1090 dm_test_irq_fini_on_empty_tables(struct kunit * test) dm_test_irq_fini_on_empty_tables() argument 1115 dm_test_get_crtc_by_otg_inst_returns_match(struct kunit * test) dm_test_get_crtc_by_otg_inst_returns_match() argument 1146 dm_test_get_crtc_by_otg_inst_returns_null(struct kunit * test) dm_test_get_crtc_by_otg_inst_returns_null() argument 1171 dm_test_get_crtc_by_otg_inst_empty_list(struct kunit * test) dm_test_get_crtc_by_otg_inst_empty_list() argument 1186 dm_test_set_irq_funcs(struct kunit * test) dm_test_set_irq_funcs() argument 1221 dm_test_irq_suspend_empty(struct kunit * test) dm_test_irq_suspend_empty() argument 1245 dm_test_irq_resume_early_empty(struct kunit * test) dm_test_irq_resume_early_empty() argument 1263 dm_test_irq_resume_late_empty(struct kunit * test) dm_test_irq_resume_late_empty() argument 1285 dm_test_irq_suspend_registered(struct kunit * test) dm_test_irq_suspend_registered() argument 1314 dm_test_irq_suspend_disables_polling(struct kunit * test) dm_test_irq_suspend_disables_polling() argument 1339 dm_test_irq_resume_early_registered(struct kunit * test) dm_test_irq_resume_early_registered() argument 1367 dm_test_irq_resume_late_registered(struct kunit * test) dm_test_irq_resume_late_registered() argument 1395 dm_test_irq_resume_late_enables_polling(struct kunit * test) dm_test_irq_resume_late_enables_polling() argument 1419 dm_test_hpd_rx_irq_create_workqueue(struct kunit * test) dm_test_hpd_rx_irq_create_workqueue() argument 1451 dm_test_hpd_rx_irq_work_suspend_null(struct kunit * test) dm_test_hpd_rx_irq_work_suspend_null() argument 1466 dm_test_hpd_rx_irq_work_suspend_flushes(struct kunit * test) dm_test_hpd_rx_irq_work_suspend_flushes() argument 1498 dm_test_set_crtc_irq_state_no_crtc(struct kunit * test) dm_test_set_crtc_irq_state_no_crtc() argument 1514 dm_test_set_pflip_irq_state_no_crtc(struct kunit * test) dm_test_set_pflip_irq_state_no_crtc() argument 1529 dm_test_set_vline0_irq_state_no_crtc(struct kunit * test) dm_test_set_vline0_irq_state_no_crtc() argument 1544 dm_test_set_vupdate_irq_state_no_crtc(struct kunit * test) dm_test_set_vupdate_irq_state_no_crtc() argument 1561 dm_test_set_crtc_irq_state_otg_disabled(struct kunit * test) dm_test_set_crtc_irq_state_otg_disabled() argument 1583 dm_test_set_crtc_irq_state_enable(struct kunit * test) dm_test_set_crtc_irq_state_enable() argument 1608 dm_test_set_pflip_irq_state_disable(struct kunit * test) dm_test_set_pflip_irq_state_disable() argument 1630 dm_test_set_vline0_irq_state_enable(struct kunit * test) dm_test_set_vline0_irq_state_enable() argument 1651 dm_test_set_vupdate_irq_state_enable(struct kunit * test) dm_test_set_vupdate_irq_state_enable() argument 1677 dm_test_set_crtc_irq_state_allows_idle(struct kunit * test) dm_test_set_crtc_irq_state_allows_idle() argument 1715 dm_test_irq_immediate_work_empty(struct kunit * test) dm_test_irq_immediate_work_empty() argument 1731 dm_test_irq_immediate_work_invokes_handler(struct kunit * test) dm_test_irq_immediate_work_invokes_handler() argument 1759 dm_test_irq_immediate_work_invokes_all(struct kunit * test) dm_test_irq_immediate_work_invokes_all() argument 1793 dm_test_irq_schedule_work_empty(struct kunit * test) dm_test_irq_schedule_work_empty() argument 1809 dm_test_irq_schedule_work_queues_handler(struct kunit * test) dm_test_irq_schedule_work_queues_handler() argument 1850 dm_test_irq_schedule_work_requeue_fallback(struct kunit * test) dm_test_irq_schedule_work_requeue_fallback() argument 1887 dm_test_set_hpd_irq_state_null_dc(struct kunit * test) dm_test_set_hpd_irq_state_null_dc() argument 1909 dm_test_set_dmub_outbox_irq_state_null_dc(struct kunit * test) dm_test_set_dmub_outbox_irq_state_null_dc() argument 1928 dm_test_set_dmub_trace_irq_state_null_dc(struct kunit * test) dm_test_set_dmub_trace_irq_state_null_dc() argument 1947 dm_test_outbox_init_null_dc(struct kunit * test) dm_test_outbox_init_null_dc() argument 1964 dm_test_hpd_init_empty_connectors(struct kunit * test) dm_test_hpd_init_empty_connectors() argument 1982 dm_test_hpd_fini_empty_connectors(struct kunit * test) dm_test_hpd_fini_empty_connectors() argument 1996 dm_test_hpd_init_fini_with_connectors(struct kunit * test) dm_test_hpd_init_fini_with_connectors() argument 2044 dm_test_hpd_init_fini_analog_connector(struct kunit * test) dm_test_hpd_init_fini_analog_connector() argument 2082 dm_test_hpd_init_fini_irq_ref(struct kunit * test) dm_test_hpd_init_fini_irq_ref() argument 2123 dm_test_hpd_rx_offload_work_no_connector(struct kunit * test) dm_test_hpd_rx_offload_work_no_connector() argument 2147 dm_test_hpd_rx_offload_work_no_connection(struct kunit * test) dm_test_hpd_rx_offload_work_no_connection() argument 2199 dm_test_hpd_rx_offload_work_automated_test(struct kunit * test) dm_test_hpd_rx_offload_work_automated_test() argument 2269 dm_test_hpd_rx_offload_work_link_loss(struct kunit * test) dm_test_hpd_rx_offload_work_link_loss() argument 2335 dm_test_hdmi_hpd_debounce_detect_false(struct kunit * test) dm_test_hdmi_hpd_debounce_detect_false() argument 2383 dm_test_hdmi_hpd_debounce_reallow_idle(struct kunit * test) dm_test_hdmi_hpd_debounce_reallow_idle() argument 2447 dm_test_handle_hpd_irq_disabled(struct kunit * test) dm_test_handle_hpd_irq_disabled() argument 2493 dm_test_handle_hpd_irq_helper_debounce_schedule(struct kunit * test) dm_test_handle_hpd_irq_helper_debounce_schedule() argument 2555 dm_test_handle_hpd_irq_helper_debounce_release_prev(struct kunit * test) dm_test_handle_hpd_irq_helper_debounce_release_prev() argument 2623 dm_test_handle_hpd_irq_helper_detect_false(struct kunit * test) dm_test_handle_hpd_irq_helper_detect_false() argument 2676 dm_test_handle_hpd_rx_irq_disabled(struct kunit * test) dm_test_handle_hpd_rx_irq_disabled() argument 2720 dm_test_schedule_hpd_rx_offload_work(struct kunit * test) dm_test_schedule_hpd_rx_offload_work() argument 2752 dm_test_setup_hpd_rx_irq(struct kunit * test,struct link_service ** link_srv_out) dm_test_setup_hpd_rx_irq() argument 2809 dm_test_handle_hpd_rx_irq_no_left_work(struct kunit * test) dm_test_handle_hpd_rx_irq_no_left_work() argument 2827 dm_test_handle_hpd_rx_irq_automated_test(struct kunit * test) dm_test_handle_hpd_rx_irq_automated_test() argument 2846 dm_test_handle_hpd_rx_irq_msg_rdy(struct kunit * test) dm_test_handle_hpd_rx_irq_msg_rdy() argument 2869 dm_test_handle_hpd_rx_irq_link_loss(struct kunit * test) dm_test_handle_hpd_rx_irq_link_loss() argument 2890 dm_test_dmub_hpd_callback_null_inputs(struct kunit * test) dm_test_dmub_hpd_callback_null_inputs() argument 2904 dm_test_dmub_hpd_callback_invalid_index(struct kunit * test) dm_test_dmub_hpd_callback_invalid_index() argument 2923 dm_test_dmub_hpd_callback_empty_connectors(struct kunit * test) dm_test_dmub_hpd_callback_empty_connectors() argument 2952 dm_test_dmub_hpd_callback_unknown_type_match(struct kunit * test) dm_test_dmub_hpd_callback_unknown_type_match() argument 3004 dm_test_dmub_hpd_callback_hpd_type(struct kunit * test) dm_test_dmub_hpd_callback_hpd_type() argument 3067 dm_test_dmub_hpd_callback_hpd_irq_type(struct kunit * test) dm_test_dmub_hpd_callback_hpd_irq_type() argument 3132 dm_test_register_hpd_handlers_empty(struct kunit * test) dm_test_register_hpd_handlers_empty() argument 3149 dm_test_register_hpd_handlers_valid(struct kunit * test) dm_test_register_hpd_handlers_valid() argument 3189 dm_test_register_hpd_handlers_invalid_hpd(struct kunit * test) dm_test_register_hpd_handlers_invalid_hpd() argument 3224 dm_test_register_hpd_handlers_invalid_hpd_rx(struct kunit * test) dm_test_register_hpd_handlers_invalid_hpd_rx() argument 3263 dm_test_register_hpd_handlers_dmub_outbox(struct kunit * test) dm_test_register_hpd_handlers_dmub_outbox() argument 3295 dm_test_pflip_high_irq_no_crtc(struct kunit * test) dm_test_pflip_high_irq_no_crtc() argument 3311 dm_test_pflip_high_irq_not_submitted(struct kunit * test) dm_test_pflip_high_irq_not_submitted() argument 3340 dm_test_vupdate_high_irq_no_crtc(struct kunit * test) dm_test_vupdate_high_irq_no_crtc() argument 3356 dm_test_crtc_high_irq_no_crtc(struct kunit * test) dm_test_crtc_high_irq_no_crtc() argument 3376 dm_test_crtc_high_irq_vrr_pre_ai(struct kunit * test) dm_test_crtc_high_irq_vrr_pre_ai() argument 3413 dm_test_crtc_high_irq_vrr_ai_no_stream(struct kunit * test) dm_test_crtc_high_irq_vrr_ai_no_stream() argument 3449 dm_test_handle_hpd_work_out_of_range(struct kunit * test) dm_test_handle_hpd_work_out_of_range() argument 3473 dm_test_dmub_outbox1_low_irq_empty(struct kunit * test) dm_test_dmub_outbox1_low_irq_empty() argument 3508 dm_test_alloc_adev_outbox_notify(struct kunit * test) dm_test_alloc_adev_outbox_notify() argument 3544 dm_test_dmub_outbox1_low_irq_no_handler(struct kunit * test) dm_test_dmub_outbox1_low_irq_no_handler() argument 3563 dm_test_dmub_outbox1_low_irq_direct_callback(struct kunit * test) dm_test_dmub_outbox1_low_irq_direct_callback() argument 3588 dm_test_dmub_outbox1_low_irq_offload(struct kunit * test) dm_test_dmub_outbox1_low_irq_offload() argument 3616 dm_test_dce110_register_irq_handlers_rejects_uninitialized_sources(struct kunit * test) dm_test_dce110_register_irq_handlers_rejects_uninitialized_sources() argument 3635 dm_test_dce110_register_irq_handlers_one_crtc(struct kunit * test) dm_test_dce110_register_irq_handlers_one_crtc() argument 3675 dm_test_dcn10_register_irq_handlers_zero_crtc(struct kunit * test) dm_test_dcn10_register_irq_handlers_zero_crtc() argument 3702 dm_test_dcn10_register_irq_handlers_one_crtc(struct kunit * test) dm_test_dcn10_register_irq_handlers_one_crtc() argument 3738 dm_test_register_outbox_irq_handlers_without_dmub(struct kunit * test) dm_test_register_outbox_irq_handlers_without_dmub() argument 3765 dm_test_register_outbox_irq_handlers_with_dmub(struct kunit * test) dm_test_register_outbox_irq_handlers_with_dmub() argument 3809 dm_test_irq_handler_dispatches_work(struct kunit * test) dm_test_irq_handler_dispatches_work() argument 3874 dm_test_handle_vmin_vmax_update(struct kunit * test) dm_test_handle_vmin_vmax_update() argument [all...] |
| H A D | amdgpu_dm_crtc_test.c | 8 #include <kunit/test.h> 27 * dm_test_crtc_modeset_required_active_mode_changed - Test Crtc modeset required active mode changed 28 * @test: The KUnit test context 30 static void dm_test_crtc_modeset_required_active_mode_changed(struct kunit *test) in dm_test_crtc_modeset_required_active_mode_changed() argument 37 KUNIT_EXPECT_TRUE(test, in dm_test_crtc_modeset_required_active_mode_changed() 42 * dm_test_crtc_modeset_required_active_active_changed - Test Crtc modeset required active active changed 43 * @test: The KUnit test context 45 static void dm_test_crtc_modeset_required_active_active_changed(struct kunit *test) in dm_test_crtc_modeset_required_active_active_changed() argument 60 dm_test_crtc_modeset_required_active_connectors_changed(struct kunit * test) dm_test_crtc_modeset_required_active_connectors_changed() argument 75 dm_test_crtc_modeset_required_inactive(struct kunit * test) dm_test_crtc_modeset_required_inactive() argument 90 dm_test_crtc_modeset_required_no_changes(struct kunit * test) dm_test_crtc_modeset_required_no_changes() argument 109 dm_test_crtc_vrr_active_irq_variable(struct kunit * test) dm_test_crtc_vrr_active_irq_variable() argument 125 dm_test_crtc_vrr_active_irq_fixed(struct kunit * test) dm_test_crtc_vrr_active_irq_fixed() argument 141 dm_test_crtc_vrr_active_irq_inactive(struct kunit * test) dm_test_crtc_vrr_active_irq_inactive() argument 157 dm_test_crtc_vrr_active_irq_disabled(struct kunit * test) dm_test_crtc_vrr_active_irq_disabled() argument 173 dm_test_crtc_vrr_active_irq_unsupported(struct kunit * test) dm_test_crtc_vrr_active_irq_unsupported() argument 191 dm_test_crtc_vrr_active_variable(struct kunit * test) dm_test_crtc_vrr_active_variable() argument 208 dm_test_crtc_vrr_active_fixed(struct kunit * test) dm_test_crtc_vrr_active_fixed() argument 225 dm_test_crtc_vrr_active_inactive(struct kunit * test) dm_test_crtc_vrr_active_inactive() argument 242 dm_test_crtc_vrr_active_disabled(struct kunit * test) dm_test_crtc_vrr_active_disabled() argument 259 dm_test_crtc_vrr_active_unsupported(struct kunit * test) dm_test_crtc_vrr_active_unsupported() argument 290 dm_test_crtc_is_headless_null_adev(struct kunit * test) dm_test_crtc_is_headless_null_adev() argument 299 dm_test_crtc_is_headless_no_connectors(struct kunit * test) dm_test_crtc_is_headless_no_connectors() argument 314 dm_test_crtc_is_headless_writeback_only(struct kunit * test) dm_test_crtc_is_headless_writeback_only() argument 334 dm_test_crtc_is_headless_disconnected_display(struct kunit * test) dm_test_crtc_is_headless_disconnected_display() argument 354 dm_test_crtc_is_headless_connected_display(struct kunit * test) dm_test_crtc_is_headless_connected_display() argument 374 dm_test_crtc_is_headless_mixed_connectors(struct kunit * test) dm_test_crtc_is_headless_mixed_connectors() argument 400 dm_test_crtc_helper_mode_fixup_returns_true(struct kunit * test) dm_test_crtc_helper_mode_fixup_returns_true() argument 418 dm_test_crtc_set_vupdate_irq_no_otg(struct kunit * test) dm_test_crtc_set_vupdate_irq_no_otg() argument 442 dm_test_crtc_set_vupdate_irq_dc_busy(struct kunit * test) dm_test_crtc_set_vupdate_irq_dc_busy() argument 500 dm_test_crtc_set_vupdate_irq_enable(struct kunit * test) dm_test_crtc_set_vupdate_irq_enable() argument 552 dm_test_idle_create_workqueue(struct kunit * test) dm_test_idle_create_workqueue() argument 577 dm_test_idle_worker_disabled_clears_running(struct kunit * test) dm_test_idle_worker_disabled_clears_running() argument 606 dm_test_idle_worker_enabled_breaks_when_idle_disallowed(struct kunit * test) dm_test_idle_worker_enabled_breaks_when_idle_disallowed() argument 640 dm_test_idle_worker_enabled_breaks_when_not_headless(struct kunit * test) dm_test_idle_worker_enabled_breaks_when_not_headless() argument 702 dm_test_idle_worker_enabled_runs_body(struct kunit * test) dm_test_idle_worker_enabled_runs_body() argument 755 dm_test_crtc_set_static_screen_optimze_no_sr_entry(struct kunit * test) dm_test_crtc_set_static_screen_optimze_no_sr_entry() argument 781 dm_test_crtc_set_static_screen_optimze_sr_entry_psr(struct kunit * test) dm_test_crtc_set_static_screen_optimze_sr_entry_psr() argument 807 dm_test_crtc_set_static_screen_optimze_psr_su_skips(struct kunit * test) dm_test_crtc_set_static_screen_optimze_psr_su_skips() argument 834 dm_test_crtc_enable_vblank_rejects_unconfigured(struct kunit * test) dm_test_crtc_enable_vblank_rejects_unconfigured() argument 889 dm_test_crtc_arm_irq_src(struct kunit * test,struct amdgpu_irq_src * src,int count) dm_test_crtc_arm_irq_src() argument 916 dm_test_crtc_setup_enable(struct kunit * test,struct amdgpu_device ** adev_out,enum dce_version dce_version) dm_test_crtc_setup_enable() argument 969 dm_test_crtc_enable_vblank_full_path(struct kunit * test) dm_test_crtc_enable_vblank_full_path() argument 999 dm_test_crtc_enable_vblank_vupdate_busy(struct kunit * test) dm_test_crtc_enable_vblank_vupdate_busy() argument 1044 dm_test_crtc_enable_vblank_crtc_irq_error(struct kunit * test) dm_test_crtc_enable_vblank_crtc_irq_error() argument 1066 dm_test_crtc_enable_vblank_in_reset(struct kunit * test) dm_test_crtc_enable_vblank_in_reset() argument 1094 dm_test_crtc_enable_vblank_queues_work(struct kunit * test) dm_test_crtc_enable_vblank_queues_work() argument 1137 dm_test_crtc_enable_vblank_ips_restore(struct kunit * test) dm_test_crtc_enable_vblank_ips_restore() argument 1184 dm_test_crtc_enable_vblank_ips_restore_replay(struct kunit * test) dm_test_crtc_enable_vblank_ips_restore_replay() argument 1235 dm_test_crtc_update_active_planes_no_stream(struct kunit * test) dm_test_crtc_update_active_planes_no_stream() argument 1267 dm_test_count_crtc_active_planes_none(struct kunit * test) dm_test_count_crtc_active_planes_none() argument 1298 dm_test_count_crtc_active_planes_mixed(struct kunit * test) dm_test_count_crtc_active_planes_mixed() argument 1371 dm_test_crtc_duplicate_state_copies_fields(struct kunit * test) dm_test_crtc_duplicate_state_copies_fields() argument 1416 dm_test_crtc_reset_state_allocates_state(struct kunit * test) dm_test_crtc_reset_state_allocates_state() argument 1443 dm_test_crtc_destroy_state_no_stream(struct kunit * test) dm_test_crtc_destroy_state_no_stream() argument 1462 dm_test_crtc_destroy_state_releases_stream(struct kunit * test) dm_test_crtc_destroy_state_releases_stream() argument 1495 dm_test_crtc_handle_vblank_no_event(struct kunit * test) dm_test_crtc_handle_vblank_no_event() argument 1523 dm_test_crtc_handle_vblank_skips_when_flip_submitted(struct kunit * test) dm_test_crtc_handle_vblank_skips_when_flip_submitted() argument 1557 dm_test_crtc_handle_vblank_completes_cursor_only(struct kunit * test) dm_test_crtc_handle_vblank_completes_cursor_only() argument 1604 dm_test_vblank_control_worker_setup(struct kunit * test,bool enable,uint32_t count) dm_test_vblank_control_worker_setup() argument 1647 dm_test_vblank_control_worker_enable_increments(struct kunit * test) dm_test_vblank_control_worker_enable_increments() argument 1667 dm_test_vblank_control_worker_disable_decrements(struct kunit * test) dm_test_vblank_control_worker_disable_decrements() argument 1686 dm_test_vblank_control_worker_disable_clamps_zero(struct kunit * test) dm_test_vblank_control_worker_disable_clamps_zero() argument 1707 dm_test_crtc_disable_vblank_no_irq_installed(struct kunit * test) dm_test_crtc_disable_vblank_no_irq_installed() argument 1743 dm_test_crtc_disable_vblank_vrr(struct kunit * test) dm_test_crtc_disable_vblank_vrr() argument 1792 dm_test_crtc_disable_vblank_queues_work(struct kunit * test) dm_test_crtc_disable_vblank_queues_work() argument [all...] |
| H A D | amdgpu_dm_plane_test.c | 8 #include <kunit/test.h> 83 struct kunit *test) in dm_test_init_validate_dcc_inputs() argument 85 *adev = kunit_kzalloc(test, sizeof(**adev), GFP_KERNEL); in dm_test_init_validate_dcc_inputs() 86 *dc = kunit_kzalloc(test, sizeof(**dc), GFP_KERNEL); in dm_test_init_validate_dcc_inputs() 87 KUNIT_ASSERT_NOT_NULL(test, *adev); in dm_test_init_validate_dcc_inputs() 88 KUNIT_ASSERT_NOT_NULL(test, *dc); in dm_test_init_validate_dcc_inputs() 105 * @test: KUnit test context. 109 static void dm_test_plane_is_video_format_known_video(struct kunit *test) in dm_test_plane_is_video_format_known_video() argument 111 KUNIT_EXPECT_TRUE(test, amdgpu_dm_plane_is_video_format(DRM_FORMAT_NV12)); in dm_test_plane_is_video_format_known_video() 112 KUNIT_EXPECT_TRUE(test, amdgpu_dm_plane_is_video_format(DRM_FORMAT_NV21)); in dm_test_plane_is_video_format_known_video() [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_parser.py | 3 # Parses KTAP test results from a kernel dmesg log and incrementally prints 4 # results with reader-friendly format. Stores and returns test results in a 5 # Test object. 22 class Test: class 24 A class to represent a test parsed from KTAP results. All KTAP 25 results within a test log are stored in a main Test object as 29 status : TestStatus - status of the test 30 name : str - name of the test 32 test cas 254 check_version(version_num: int, accepted_versions: List[int], version_type: str, test: Test, printer: Printer) global() argument 273 parse_ktap_header(lines: LineStream, test: Test, printer: Printer) global() argument 305 parse_test_header(lines: LineStream, test: Test) global() argument 329 parse_test_plan(lines: LineStream, test: Test) global() argument 359 peek_test_name_match(lines: LineStream, test: Test) global() argument 384 parse_test_result(lines: LineStream, test: Test, expected_num: int, printer: Printer) global() argument 492 print_test_header(test: Test, printer: Printer) global() argument 522 format_test_result(test: Test, printer: Printer) global() argument 549 print_test_result(test: Test, printer: Printer) global() argument 562 print_test_footer(test: Test, printer: Printer) global() argument 577 print_test(test: Test, failed_only: bool, printer: Printer) global() argument 604 _summarize_failed_tests(test: Test) global() argument 607 failed_names(test: Test, parent_name: str) global() argument 636 print_summary_line(test: Test, printer: Printer) global() argument 670 bubble_up_test_results(test: Test) global() argument [all...] |
| /linux/lib/kunit/ |
| H A D | kunit-test.c | 3 * KUnit test for core test infrastructure. 9 #include <kunit/test.h> 10 #include <kunit/test-bug.h> 26 struct kunit *test = data; in kunit_test_successful_try() local 27 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_successful_try() 34 struct kunit *test = data; in kunit_test_no_catch() local 36 KUNIT_FAIL(test, "Catch should not be called\n"); in kunit_test_no_catch() 39 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() argument 41 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_try_catch_successful_try_no_catch() 45 test, in kunit_test_try_catch_successful_try_no_catch() [all …]
|
| H A D | assert_test.c | 3 * KUnit test for the assertion formatting functions. 6 #include <kunit/test.h> 11 #define ASSERT_TEST_EXPECT_CONTAIN(test, str, substr) KUNIT_EXPECT_TRUE(test, strstr(str, substr)) argument 12 #define ASSERT_TEST_EXPECT_NCONTAIN(test, str, substr) KUNIT_EXPECT_FALSE(test, strstr(str, substr)) argument 14 static void kunit_test_is_literal(struct kunit *test) in kunit_test_is_literal() argument 16 KUNIT_EXPECT_TRUE(test, is_literal("5", 5)); in kunit_test_is_literal() 17 KUNIT_EXPECT_TRUE(test, is_literal("0", 0)); in kunit_test_is_literal() 18 KUNIT_EXPECT_TRUE(test, is_literal("1234567890", 1234567890)); in kunit_test_is_literal() 19 KUNIT_EXPECT_TRUE(test, is_literal("-1234567890", -1234567890)); in kunit_test_is_literal() 20 KUNIT_EXPECT_FALSE(test, is_literal("05", 5)); in kunit_test_is_literal() [all …]
|
| H A D | platform-test.c | 3 * KUnit test for KUnit platform driver infrastructure. 9 #include <kunit/test.h> 12 * Test that kunit_platform_device_alloc() creates a platform device. 14 static void kunit_platform_device_alloc_test(struct kunit *test) in kunit_platform_device_alloc_test() argument 16 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, in kunit_platform_device_alloc_test() 17 kunit_platform_device_alloc(test, "kunit-platform", 1)); in kunit_platform_device_alloc_test() 21 * Test that kunit_platform_device_add() registers a platform device on the 24 static void kunit_platform_device_add_test(struct kunit *test) in kunit_platform_device_add_test() argument 30 pdev = kunit_platform_device_alloc(test, name, id); in kunit_platform_device_add_test() 31 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in kunit_platform_device_add_test() [all …]
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_proto_test.c | 6 #include <kunit/test.h> 26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal() argument 28 struct cros_ec_proto_test_priv *priv = test->priv; in cros_ec_proto_test_prepare_tx_legacy_normal() 45 KUNIT_EXPECT_EQ(test, ret, EC_MSG_TX_PROTO_BYTES + EC_PROTO2_MAX_PARAM_SIZE); in cros_ec_proto_test_prepare_tx_legacy_normal() 46 KUNIT_EXPECT_EQ(test, ec_dev->dout[0], EC_CMD_VERSION0); in cros_ec_proto_test_prepare_tx_legacy_normal() 47 KUNIT_EXPECT_EQ(test, ec_dev->dout[1], EC_CMD_HELLO); in cros_ec_proto_test_prepare_tx_legacy_normal() 48 KUNIT_EXPECT_EQ(test, ec_dev->dout[2], EC_PROTO2_MAX_PARAM_SIZE); in cros_ec_proto_test_prepare_tx_legacy_normal() 49 KUNIT_EXPECT_EQ(test, EC_MSG_TX_HEADER_BYTES, 3); in cros_ec_proto_test_prepare_tx_legacy_normal() 50 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 0], 0xde); in cros_ec_proto_test_prepare_tx_legacy_normal() 51 KUNIT_EXPECT_EQ(test, ec_dev->dout[EC_MSG_TX_HEADER_BYTES + 1], 0xad); in cros_ec_proto_test_prepare_tx_legacy_normal() [all …]
|
| /linux/drivers/base/power/ |
| H A D | runtime-test.c | 9 #include <kunit/test.h> 13 static void pm_runtime_depth_test(struct kunit *test) in pm_runtime_depth_test() argument 15 struct device *dev = kunit_device_register(test, DEVICE_NAME); in pm_runtime_depth_test() 17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, dev); in pm_runtime_depth_test() 21 KUNIT_EXPECT_TRUE(test, pm_runtime_suspended(dev)); in pm_runtime_depth_test() 22 KUNIT_EXPECT_EQ(test, 0, pm_runtime_get_sync(dev)); in pm_runtime_depth_test() 23 KUNIT_EXPECT_TRUE(test, pm_runtime_active(dev)); in pm_runtime_depth_test() 24 KUNIT_EXPECT_EQ(test, 1, pm_runtime_get_sync(dev)); /* "already active" */ in pm_runtime_depth_test() 25 KUNIT_EXPECT_EQ(test, 0, pm_runtime_put_sync(dev)); in pm_runtime_depth_test() 26 KUNIT_EXPECT_EQ(test, 0, pm_runtime_put_sync(dev)); in pm_runtime_depth_test() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | Build | 3 perf-test-y += builtin-test.o 4 perf-test-y += tests-scripts.o 5 perf-test-y += parse-events.o 6 perf-test-y += uncore-event-sorting.o 7 perf-test-y += dso-data.o 8 perf-test-y += vmlinux-kallsyms.o 9 perf-test-y += openat-syscall.o 10 perf-test-y += openat-syscall-all-cpus.o 11 perf-test [all...] |
| /linux/drivers/gpu/drm/vkms/tests/ |
| H A D | vkms_config_test.c | 3 #include <kunit/test.h> 89 static void vkms_config_test_empty_config(struct kunit *test) in vkms_config_test_empty_config() argument 92 const char *dev_name = "test"; in vkms_config_test_empty_config() 95 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, config); in vkms_config_test_empty_config() 99 KUNIT_EXPECT_STREQ(test, vkms_config_get_device_name(config), "test"); in vkms_config_test_empty_config() 101 KUNIT_EXPECT_EQ(test, vkms_config_get_num_planes(config), 0); in vkms_config_test_empty_config() 102 KUNIT_EXPECT_EQ(test, vkms_config_get_num_crtcs(config), 0); in vkms_config_test_empty_config() 103 KUNIT_EXPECT_EQ(test, vkms_config_get_num_encoders(config), 0); in vkms_config_test_empty_config() 104 KUNIT_EXPECT_EQ(test, vkms_config_get_num_connectors(config), 0); in vkms_config_test_empty_config() 106 KUNIT_EXPECT_FALSE(test, vkms_config_is_valid(config)); in vkms_config_test_empty_config() [all …]
|
| /linux/tools/build/feature/ |
| H A D | Makefile | 7 test-all.bin \ 8 test-backtrace.bin \ 9 test-bionic.bin \ 10 test-libdw.bin \ 11 test-eventfd.bin \ 12 test-fortify-source.bin \ 13 test-glibc.bin \ 14 test-gtk2.bin \ 15 test-gtk2-infobar.bin \ 16 test [all...] |
| /linux/sound/soc/codecs/ |
| H A D | cs-amp-lib-test.c | 3 // KUnit test for the Cirrus common amplifier library. 9 #include <kunit/test.h> 10 #include <kunit/test-bug.h> 63 static struct cirrus_amp_efi_data *cs_amp_lib_test_cal_blob_dup(struct kunit *test) in cs_amp_lib_test_cal_blob_dup() 65 struct cs_amp_lib_test_priv *priv = test->priv; in cs_amp_lib_test_cal_blob_dup() 68 KUNIT_ASSERT_EQ(test, struct_size(priv->cal_blob, data, priv->cal_blob->count), in cs_amp_lib_test_cal_blob_dup() 70 temp = kunit_kmalloc(test, priv->cal_blob->size, GFP_KERNEL); in cs_amp_lib_test_cal_blob_dup() 71 KUNIT_ASSERT_NOT_NULL(test, temp); in cs_amp_lib_test_cal_blob_dup() 77 static void cs_amp_lib_test_init_dummy_cal_blob(struct kunit *test, int num_amps) in cs_amp_lib_test_init_dummy_cal_blob() 79 struct cs_amp_lib_test_priv *priv = test in cs_amp_lib_test_init_dummy_cal_blob() 61 cs_amp_lib_test_cal_blob_dup(struct kunit * test) cs_amp_lib_test_cal_blob_dup() argument 75 cs_amp_lib_test_init_dummy_cal_blob(struct kunit * test,int num_amps) cs_amp_lib_test_init_dummy_cal_blob() argument 106 cs_amp_lib_test_get_target_uid(struct kunit * test) cs_amp_lib_test_get_target_uid() argument 135 cs_amp_lib_test_cal_data_too_short_test(struct kunit * test) cs_amp_lib_test_cal_data_too_short_test() argument 157 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_bad_count() local 175 cs_amp_lib_test_cal_count_too_big_test(struct kunit * test) cs_amp_lib_test_cal_count_too_big_test() argument 203 cs_amp_lib_test_no_cal_data_test(struct kunit * test) cs_amp_lib_test_no_cal_data_test() argument 227 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable() local 271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_all_zeros() local 312 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_hp_cal_efi_variable() local 342 cs_amp_lib_test_get_hp_efi_cal(struct kunit * test) cs_amp_lib_test_get_hp_efi_cal() argument 361 cs_amp_lib_test_get_efi_cal_by_uid_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_uid_test() argument 395 cs_amp_lib_test_get_efi_cal_by_index_unchecked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_unchecked_test() argument 426 cs_amp_lib_test_get_efi_cal_by_index_checked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_checked_test() argument 462 cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test() argument 488 cs_amp_lib_test_get_efi_cal_by_index_fallback_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_fallback_test() argument 529 cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test() argument 558 cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test() argument 587 cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test() argument 605 cs_amp_lib_test_get_efi_cal_no_uid_no_index_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_no_index_test() argument 626 cs_amp_lib_test_get_efi_cal_zero_not_matched_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_zero_not_matched_test() argument 653 cs_amp_lib_test_get_efi_cal_empty_entry_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_empty_entry_test() argument 703 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_write_cal_coeff() local 722 cs_amp_lib_test_write_cal_data_test(struct kunit * test) cs_amp_lib_test_write_cal_data_test() argument 770 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_read_cal_coeff() local 787 cs_amp_lib_test_read_cal_data_test(struct kunit * test) cs_amp_lib_test_read_cal_data_test() argument 811 cs_amp_lib_test_write_ambient_test(struct kunit * test) cs_amp_lib_test_write_ambient_test() argument 845 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_efi_variable() local 881 cs_amp_lib_test_create_new_cal_efi(struct kunit * test) cs_amp_lib_test_create_new_cal_efi() argument 942 cs_amp_lib_test_create_new_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed() argument 995 cs_amp_lib_test_create_new_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed_no_max() argument 1050 cs_amp_lib_test_grow_append_cal_efi(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi() argument 1142 cs_amp_lib_test_grow_append_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed() argument 1223 cs_amp_lib_test_cal_efi_all_zeros_add_first(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first() argument 1253 cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink() argument 1284 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed() argument 1318 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink() argument 1353 cs_amp_lib_test_grow_append_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed_no_max() argument 1459 cs_amp_lib_test_grow_cal_efi_replace_indexed(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_indexed() argument 1554 cs_amp_lib_test_grow_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_by_uid() argument 1649 cs_amp_lib_test_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_uid() argument 1723 cs_amp_lib_test_cal_efi_replace_by_index(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_index() argument 1801 cs_amp_lib_test_cal_efi_deduplicate(struct kunit * test) cs_amp_lib_test_cal_efi_deduplicate() argument 1892 cs_amp_lib_test_cal_efi_find_free(struct kunit * test) cs_amp_lib_test_cal_efi_find_free() argument 1973 cs_amp_lib_test_cal_efi_bad_cal_target(struct kunit * test) cs_amp_lib_test_cal_efi_bad_cal_target() argument 1996 cs_amp_lib_test_cal_efi_write_denied(struct kunit * test) cs_amp_lib_test_cal_efi_write_denied() argument 2032 cs_amp_lib_test_cal_efi_attr_preserved(struct kunit * test) cs_amp_lib_test_cal_efi_attr_preserved() argument 2066 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_hp_efi_cal_variable() local 2091 cs_amp_lib_test_cal_efi_update_hp(struct kunit * test) cs_amp_lib_test_cal_efi_update_hp() argument 2123 cs_amp_lib_test_spkid_lenovo_not_present(struct kunit * test) cs_amp_lib_test_spkid_lenovo_not_present() argument 2141 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d0() local 2160 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d1() local 2179 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_00() local 2189 cs_amp_lib_test_spkid_lenovo_d0(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d0() argument 2201 cs_amp_lib_test_spkid_lenovo_d1(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d1() argument 2213 cs_amp_lib_test_spkid_lenovo_illegal(struct kunit * test) cs_amp_lib_test_spkid_lenovo_illegal() argument 2234 cs_amp_lib_test_spkid_lenovo_oversize(struct kunit * test) cs_amp_lib_test_spkid_lenovo_oversize() argument 2252 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_30() local 2271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_31() local 2284 cs_amp_lib_test_spkid_hp_30(struct kunit * test) cs_amp_lib_test_spkid_hp_30() argument 2296 cs_amp_lib_test_spkid_hp_31(struct kunit * test) cs_amp_lib_test_spkid_hp_31() argument 2308 cs_amp_lib_test_case_init(struct kunit * test) cs_amp_lib_test_case_init() argument [all...] |
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_tt_test.c | 39 static void ttm_tt_init_basic(struct kunit *test) in ttm_tt_init_basic() argument 41 const struct ttm_tt_test_case *params = test->param_value; in ttm_tt_init_basic() 50 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_init_basic() 51 KUNIT_ASSERT_NOT_NULL(test, tt); in ttm_tt_init_basic() 53 bo = ttm_bo_kunit_init(test, test->priv, params->size, NULL); in ttm_tt_init_basic() 56 KUNIT_ASSERT_EQ(test, err, 0); in ttm_tt_init_basic() 58 KUNIT_ASSERT_EQ(test, tt->num_pages, num_pages + extra_pages); in ttm_tt_init_basic() 60 KUNIT_ASSERT_EQ(test, tt->page_flags, page_flags); in ttm_tt_init_basic() 61 KUNIT_ASSERT_EQ(test, tt->caching, caching); in ttm_tt_init_basic() 63 KUNIT_ASSERT_NULL(test, tt->dma_address); in ttm_tt_init_basic() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk_test.c | 18 #include <kunit/test.h> 194 static int clk_test_init_with_ops(struct kunit *test, const struct clk_ops *ops) in clk_test_init_with_ops() argument 200 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops() 204 test->priv = ctx; in clk_test_init_with_ops() 217 static int clk_test_init(struct kunit *test) in clk_test_init() argument 219 return clk_test_init_with_ops(test, &clk_dummy_rate_ops); in clk_test_init() 222 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init() argument 224 return clk_test_init_with_ops(test, &clk_dummy_maximize_rate_ops); in clk_maximize_test_init() 227 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init() argument 229 return clk_test_init_with_ops(test, &clk_dummy_minimize_rate_ops); in clk_minimize_test_init() [all …]
|
| H A D | clk-gate_test.c | 9 #include <kunit/test.h> 11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() argument 17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in clk_gate_register_test_dev() 21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_dev() 22 KUNIT_EXPECT_STREQ(test, "test_gate", clk_hw_get_name(ret)); in clk_gate_register_test_dev() 23 KUNIT_EXPECT_EQ(test, 0UL, clk_hw_get_flags(ret)); in clk_gate_register_test_dev() 29 static void clk_gate_register_test_parent_names(struct kunit *test) in clk_gate_register_test_parent_names() argument 36 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_names() 40 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_parent_names() 41 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_names() [all …]
|
| H A D | clk-fixed-rate_test.c | 3 * KUnit test for clk fixed rate basic type 15 #include <kunit/test.h> 77 * clk_hw_register_fixed_rate_kunit() - Test managed __clk_hw_register_fixed_rate() 78 * @test: The test context 84 clk_hw_register_fixed_rate_kunit(struct kunit *test, in clk_hw_register_fixed_rate_kunit() argument 89 hw = kunit_alloc_resource(test, in clk_hw_register_fixed_rate_kunit() 100 * clk_hw_unregister_fixed_rate_kunit() - Test managed clk_hw_unregister_fixed_rate() 101 * @test: The test context 102 * @hw: fixed rate clk to unregister upon test completion 104 * Automatically unregister @hw when @test is complete via [all …]
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_guc_relay_test.c | 7 #include <kunit/test.h> 8 #include <kunit/test-bug.h> 25 static int relay_test_init(struct kunit *test) in relay_test_init() argument 35 test->priv = &fake; in relay_test_init() 36 xe_kunit_helper_xe_device_test_init(test); in relay_test_init() 38 xe = test->priv; in relay_test_init() 39 KUNIT_ASSERT_EQ(test, xe_sriov_init(xe), 0); in relay_test_init() 42 kunit_activate_static_stub(test, relay_get_totalvfs, in relay_test_init() 45 KUNIT_ASSERT_EQ(test, xe_guc_relay_init(relay), 0); in relay_test_init() 46 KUNIT_EXPECT_TRUE(test, relay_is_ready(relay)); in relay_test_init() [all …]
|
| /linux/drivers/base/test/ |
| H A D | property-entry-test.c | 6 #include <kunit/test.h> 12 static void pe_test_uints(struct kunit *test) in pe_test_uints() argument 30 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints() 33 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints() 36 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 37 KUNIT_EXPECT_EQ(test, val_u8, 8); in pe_test_uints() 40 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 41 KUNIT_EXPECT_EQ(test, array_u8[0], 8); in pe_test_uints() 44 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 47 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() [all …]
|
| /linux/lib/tests/ |
| H A D | string_kunit.c | 3 * Test cases for string functions. 8 #include <kunit/test.h> 24 #define STRCMP_TEST_EXPECT_EQUAL(test, fn, ...) KUNIT_EXPECT_EQ(test, fn(__VA_ARGS__), 0) argument 25 #define STRCMP_TEST_EXPECT_LOWER(test, fn, ...) KUNIT_EXPECT_LT(test, fn(__VA_ARGS__), 0) argument 26 #define STRCMP_TEST_EXPECT_GREATER(test, fn, ...) KUNIT_EXPECT_GT(test, fn(__VA_ARGS__), 0) argument 34 static void string_test_memset16(struct kunit *test) in string_test_memset16() argument 39 p = kunit_kzalloc(test, 256 * 2 * 2, GFP_KERNEL); in string_test_memset16() 40 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, p); in string_test_memset16() 49 KUNIT_ASSERT_EQ_MSG(test, v, 0xa1a1, in string_test_memset16() 52 KUNIT_ASSERT_EQ_MSG(test, v, 0xb1b2, in string_test_memset16() [all …]
|