test-drm_modeset_common.h (2220B)
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 19int igt_drm_rect_clip_scaled_div_by_zero(void *ignored); 20int igt_drm_rect_clip_scaled_not_clipped(void *ignored); 21int igt_drm_rect_clip_scaled_clipped(void *ignored); 22int igt_drm_rect_clip_scaled_signed_vs_unsigned(void *ignored); 23int igt_check_plane_state(void *ignored); 24int igt_check_drm_format_block_width(void *ignored); 25int igt_check_drm_format_block_height(void *ignored); 26int igt_check_drm_format_min_pitch(void *ignored); 27int igt_check_drm_framebuffer_create(void *ignored); 28int igt_damage_iter_no_damage(void *ignored); 29int igt_damage_iter_no_damage_fractional_src(void *ignored); 30int igt_damage_iter_no_damage_src_moved(void *ignored); 31int igt_damage_iter_no_damage_fractional_src_moved(void *ignored); 32int igt_damage_iter_no_damage_not_visible(void *ignored); 33int igt_damage_iter_no_damage_no_crtc(void *ignored); 34int igt_damage_iter_no_damage_no_fb(void *ignored); 35int igt_damage_iter_simple_damage(void *ignored); 36int igt_damage_iter_single_damage(void *ignored); 37int igt_damage_iter_single_damage_intersect_src(void *ignored); 38int igt_damage_iter_single_damage_outside_src(void *ignored); 39int igt_damage_iter_single_damage_fractional_src(void *ignored); 40int igt_damage_iter_single_damage_intersect_fractional_src(void *ignored); 41int igt_damage_iter_single_damage_outside_fractional_src(void *ignored); 42int igt_damage_iter_single_damage_src_moved(void *ignored); 43int igt_damage_iter_single_damage_fractional_src_moved(void *ignored); 44int igt_damage_iter_damage(void *ignored); 45int igt_damage_iter_damage_one_intersect(void *ignored); 46int igt_damage_iter_damage_one_outside(void *ignored); 47int igt_damage_iter_damage_src_moved(void *ignored); 48int igt_damage_iter_damage_not_visible(void *ignored); 49int igt_dp_mst_calc_pbn_mode(void *ignored); 50int igt_dp_mst_sideband_msg_req_decode(void *ignored); 51 52#endif