1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #ifndef __TEST_DRM_MODESET_COMMON_H__ 4 #define __TEST_DRM_MODESET_COMMON_H__ 5 6 #include <linux/errno.h> 7 #include <linux/printk.h> 8 9 #define FAIL(test, msg, ...) \ 10 do { \ 11 if (test) { \ 12 pr_err("%s/%u: " msg, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ 13 return -EINVAL; \ 14 } \ 15 } while (0) 16 17 #define FAIL_ON(x) FAIL((x), "%s", "FAIL_ON(" __stringify(x) ")\n") 18 19 int igt_drm_rect_clip_scaled_div_by_zero(void *ignored); 20 int igt_drm_rect_clip_scaled_not_clipped(void *ignored); 21 int igt_drm_rect_clip_scaled_clipped(void *ignored); 22 int igt_drm_rect_clip_scaled_signed_vs_unsigned(void *ignored); 23 int igt_check_plane_state(void *ignored); 24 int igt_check_drm_format_block_width(void *ignored); 25 int igt_check_drm_format_block_height(void *ignored); 26 int igt_check_drm_format_min_pitch(void *ignored); 27 int igt_check_drm_framebuffer_create(void *ignored); 28 int igt_damage_iter_no_damage(void *ignored); 29 int igt_damage_iter_no_damage_fractional_src(void *ignored); 30 int igt_damage_iter_no_damage_src_moved(void *ignored); 31 int igt_damage_iter_no_damage_fractional_src_moved(void *ignored); 32 int igt_damage_iter_no_damage_not_visible(void *ignored); 33 int igt_damage_iter_no_damage_no_crtc(void *ignored); 34 int igt_damage_iter_no_damage_no_fb(void *ignored); 35 int igt_damage_iter_simple_damage(void *ignored); 36 int igt_damage_iter_single_damage(void *ignored); 37 int igt_damage_iter_single_damage_intersect_src(void *ignored); 38 int igt_damage_iter_single_damage_outside_src(void *ignored); 39 int igt_damage_iter_single_damage_fractional_src(void *ignored); 40 int igt_damage_iter_single_damage_intersect_fractional_src(void *ignored); 41 int igt_damage_iter_single_damage_outside_fractional_src(void *ignored); 42 int igt_damage_iter_single_damage_src_moved(void *ignored); 43 int igt_damage_iter_single_damage_fractional_src_moved(void *ignored); 44 int igt_damage_iter_damage(void *ignored); 45 int igt_damage_iter_damage_one_intersect(void *ignored); 46 int igt_damage_iter_damage_one_outside(void *ignored); 47 int igt_damage_iter_damage_src_moved(void *ignored); 48 int igt_damage_iter_damage_not_visible(void *ignored); 49 int igt_dp_mst_calc_pbn_mode(void *ignored); 50 int igt_dp_mst_sideband_msg_req_decode(void *ignored); 51 52 #endif 53