/external/igt-gpu-tools/lib/ |
D | igt_psr.c | 28 static bool psr_active_check(int debugfs_fd, enum psr_mode mode) in psr_active_check() argument 33 igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, in psr_active_check() 47 bool psr_wait_entry(int debugfs_fd, enum psr_mode mode) in psr_wait_entry() argument 49 return igt_wait(psr_active_check(debugfs_fd, mode), 500, 20); in psr_wait_entry() 52 bool psr_wait_update(int debugfs_fd, enum psr_mode mode) in psr_wait_update() argument 54 return igt_wait(!psr_active_check(debugfs_fd, mode), 40, 10); in psr_wait_update() 57 bool psr_long_wait_update(int debugfs_fd, enum psr_mode mode) in psr_long_wait_update() argument 59 return igt_wait(!psr_active_check(debugfs_fd, mode), 500, 10); in psr_long_wait_update() 62 static ssize_t psr_write(int debugfs_fd, const char *buf) in psr_write() argument 64 return igt_sysfs_write(debugfs_fd, "i915_edp_psr_debug", buf, in psr_write() [all …]
|
D | igt_psr.h | 38 bool psr_wait_entry(int debugfs_fd, enum psr_mode mode); 39 bool psr_wait_update(int debugfs_fd, enum psr_mode mode); 40 bool psr_long_wait_update(int debugfs_fd, enum psr_mode mode); 41 bool psr_enable(int debugfs_fd, enum psr_mode); 42 bool psr_disable(int debugfs_fd); 43 bool psr_sink_support(int debugfs_fd, enum psr_mode); 44 bool psr2_wait_su(int debugfs_fd, uint16_t *num_su_blocks);
|
D | igt_kms.c | 1101 int debugfs_fd, ret; in kmstest_force_edid() local 1106 debugfs_fd = igt_debugfs_open(drm_fd, path, O_WRONLY | O_TRUNC); in kmstest_force_edid() 1109 igt_require(debugfs_fd != -1); in kmstest_force_edid() 1112 ret = write(debugfs_fd, "reset", 5); in kmstest_force_edid() 1114 ret = write(debugfs_fd, edid, in kmstest_force_edid() 1116 close(debugfs_fd); in kmstest_force_edid()
|
/external/igt-gpu-tools/tests/ |
D | kms_fbcon_fbt.c | 44 int debugfs_fd; member 93 static bool fbc_supported_on_chipset(int debugfs_fd) in fbc_supported_on_chipset() argument 98 ret = igt_debugfs_simple_read(debugfs_fd, "i915_fbc_status", in fbc_supported_on_chipset() 111 static void fbc_print_status(int debugfs_fd) in fbc_print_status() argument 115 igt_debugfs_simple_read(debugfs_fd, "i915_fbc_status", buf, in fbc_print_status() 120 static bool fbc_is_enabled(int debugfs_fd) in fbc_is_enabled() argument 124 igt_debugfs_simple_read(debugfs_fd, "i915_fbc_status", buf, in fbc_is_enabled() 129 static bool fbc_wait_until_enabled(int debugfs_fd) in fbc_wait_until_enabled() argument 131 bool r = igt_wait(fbc_is_enabled(debugfs_fd), 5000, 1); in fbc_wait_until_enabled() 132 fbc_print_status(debugfs_fd); in fbc_wait_until_enabled() [all …]
|
D | kms_psr2_su.c | 66 int debugfs_fd; member 186 if (psr2_wait_su(data->debugfs_fd, &su_blocks)) in update_screen_and_test() 196 igt_assert(psr_wait_entry(data->debugfs_fd, PSR_MODE_2)); in run() 242 data.debugfs_fd = igt_debugfs_dir(data.drm_fd); 245 igt_require_f(psr_sink_support(data.debugfs_fd, PSR_MODE_2), 255 igt_require_f(psr_enable(data.debugfs_fd, PSR_MODE_2), 259 r = psr_wait_entry(data.debugfs_fd, PSR_MODE_2); 284 close(data.debugfs_fd);
|
D | kms_psr.c | 61 int debugfs_fd; member 198 psr_sink_support(data->debugfs_fd, mode); in sink_support() 206 return psr_wait_entry(data->debugfs_fd, data->op_psr_mode); in psr_wait_entry_if_enabled() 214 return psr_wait_update(data->debugfs_fd, data->op_psr_mode); in psr_wait_update_if_enabled() 222 return psr_enable(data->debugfs_fd, data->op_psr_mode); in psr_enable_if_enabled() 234 igt_debugfs_simple_read(data->debugfs_fd, "i915_drrs_status", in drrs_disabled() 440 data.debugfs_fd = igt_debugfs_dir(data.drm_fd); 529 psr_disable(data.debugfs_fd); 531 close(data.debugfs_fd);
|
D | kms_dp_dsc.c | 54 int debugfs_fd; member 83 igt_require(igt_debugfs_simple_read(data->debugfs_fd, file_name, buf, in is_dp_dsc_supported() 122 ret = igt_sysfs_write(data->debugfs_fd, file_name, "1", 1); in force_dp_dsc_enable() 266 data.debugfs_fd = igt_debugfs_dir(data.drm_fd); 310 close(data.debugfs_fd);
|