Lines Matching refs:res
350 drmModeRes *res = NULL; in drm_init() local
376 res = drmModeGetResources(drm_fd); in drm_init()
377 if (!res) { in drm_init()
383 if (res->count_crtcs > 0 && res->count_connectors > 0) in drm_init()
384 if (find_first_connected_connector(drm_fd, res)) in drm_init()
387 drmModeFreeResources(res); in drm_init()
389 res = NULL; in drm_init()
392 if (drm_fd < 0 || res == NULL) { in drm_init()
398 res, &selected_mode); in drm_init()
402 drmModeFreeResources(res); in drm_init()
407 main_monitor_crtc = find_crtc_for_connector(drm_fd, res, in drm_init()
412 drmModeFreeResources(res); in drm_init()
418 res, main_monitor_crtc); in drm_init()
425 drmModeFreeResources(res); in drm_init()
432 drmModeFreeResources(res); in drm_init()