Lines Matching refs:drm_res
49 static void screens_disabled_subtest(int drm_fd, drmModeResPtr drm_res) in screens_disabled_subtest() argument
51 kmstest_unset_all_crtcs(drm_fd, drm_res); in screens_disabled_subtest()
63 static void edp_subtest(int drm_fd, drmModeResPtr drm_res, in edp_subtest() argument
89 kmstest_unset_all_crtcs(drm_fd, drm_res); in edp_subtest()
91 for (i = 0; i < drm_res->count_connectors; i++) { in edp_subtest()
122 crtc_id = kmstest_find_crtc_for_connector(drm_fd, drm_res, connector, in edp_subtest()
144 static void non_edp_subtest(int drm_fd, drmModeResPtr drm_res, in non_edp_subtest() argument
152 kmstest_unset_all_crtcs(drm_fd, drm_res); in non_edp_subtest()
154 for (i = 0; i < drm_res->count_connectors; i++) { in non_edp_subtest()
170 crtc_id = kmstest_find_crtc_for_connector(drm_fd, drm_res, connector, in non_edp_subtest()
188 drmModeResPtr drm_res; variable
201 drm_res = drmModeGetResources(drm_fd);
202 igt_require(drm_res);
203 igt_assert(drm_res->count_connectors <= MAX_CONNECTORS);
205 for (i = 0; i < drm_res->count_connectors; i++)
207 drm_res->connectors[i]);
219 screens_disabled_subtest(drm_fd, drm_res);
221 edp_subtest(drm_fd, drm_res, drm_connectors, devid, false);
223 edp_subtest(drm_fd, drm_res, drm_connectors, devid, true);
225 non_edp_subtest(drm_fd, drm_res, drm_connectors);
231 for (i = 0; i < drm_res->count_connectors; i++)
233 drmModeFreeResources(drm_res);