Lines Matching refs:res
282 drmModeRes* res = nullptr; in Init() local
296 res = drmModeGetResources(fd.get()); in Init()
297 if (!res) { in Init()
302 if (res->count_crtcs > 0 && res->count_connectors > 0) { in Init()
303 if (find_first_connected_connector(fd.get(), res)) { in Init()
309 drmModeFreeResources(res); in Init()
310 res = nullptr; in Init()
313 if (drm_fd == -1 || res == nullptr) { in Init()
319 main_monitor_connector = FindMainMonitor(drm_fd, res, &selected_mode); in Init()
322 drmModeFreeResources(res); in Init()
327 main_monitor_crtc = find_crtc_for_connector(drm_fd, res, main_monitor_connector); in Init()
330 drmModeFreeResources(res); in Init()
335 DisableNonMainCrtcs(drm_fd, res, main_monitor_crtc); in Init()
342 drmModeFreeResources(res); in Init()