Lines Matching refs:resources
172 static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources, in find_crtc_for_connector() argument
195 for (int j = 0; j < resources->count_crtcs; j++) { in find_crtc_for_connector()
197 crtc = resources->crtcs[j]; in find_crtc_for_connector()
210 static drmModeConnector* find_used_connector_by_type(int fd, drmModeRes* resources, unsigned type) { in find_used_connector_by_type() argument
211 for (int i = 0; i < resources->count_connectors; i++) { in find_used_connector_by_type()
212 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in find_used_connector_by_type()
224 static drmModeConnector* find_first_connected_connector(int fd, drmModeRes* resources) { in find_first_connected_connector() argument
225 for (int i = 0; i < resources->count_connectors; i++) { in find_first_connected_connector()
228 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_first_connected_connector()
239 drmModeConnector* MinuiBackendDrm::FindMainMonitor(int fd, drmModeRes* resources, in FindMainMonitor() argument
251 main_monitor_connector = find_used_connector_by_type(fd, resources, kConnectorPriority[i]); in FindMainMonitor()
257 main_monitor_connector = find_first_connected_connector(fd, resources); in FindMainMonitor()
274 void MinuiBackendDrm::DisableNonMainCrtcs(int fd, drmModeRes* resources, drmModeCrtc* main_crtc) { in DisableNonMainCrtcs() argument
275 for (int i = 0; i < resources->count_connectors; i++) { in DisableNonMainCrtcs()
276 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in DisableNonMainCrtcs()
277 drmModeCrtc* crtc = find_crtc_for_connector(fd, resources, connector); in DisableNonMainCrtcs()