Lines Matching refs:fd
209 static drmModeCrtc *find_crtc_for_connector(int fd, in find_crtc_for_connector() argument
220 encoder = drmModeGetEncoder(fd, connector->encoder_id); in find_crtc_for_connector()
227 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
235 encoder = drmModeGetEncoder(fd, connector->encoders[i]); in find_crtc_for_connector()
246 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
254 static drmModeConnector *find_used_connector_by_type(int fd, in find_used_connector_by_type() argument
261 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_used_connector_by_type()
274 static drmModeConnector *find_first_connected_connector(int fd, in find_first_connected_connector() argument
280 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_first_connected_connector()
292 static drmModeConnector *find_main_monitor(int fd, drmModeRes *resources, in find_main_monitor() argument
305 main_monitor_connector = find_used_connector_by_type(fd, in find_main_monitor()
314 find_first_connected_connector(fd, resources); in find_main_monitor()
332 static void disable_non_main_crtcs(int fd, in disable_non_main_crtcs() argument
341 connector = drmModeGetConnector(fd, resources->connectors[i]); in disable_non_main_crtcs()
342 crtc = find_crtc_for_connector(fd, resources, connector); in disable_non_main_crtcs()
344 drm_disable_crtc(fd, crtc); in disable_non_main_crtcs()