Lines Matching refs:resources
168 static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources, in find_crtc_for_connector() argument
191 for (int j = 0; j < resources->count_crtcs; j++) { in find_crtc_for_connector()
193 crtc = resources->crtcs[j]; in find_crtc_for_connector()
206 static drmModeConnector* find_used_connector_by_type(int fd, drmModeRes* resources, unsigned type) { in find_used_connector_by_type() argument
207 for (int i = 0; i < resources->count_connectors; i++) { in find_used_connector_by_type()
208 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in find_used_connector_by_type()
220 static drmModeConnector* find_first_connected_connector(int fd, drmModeRes* resources) { in find_first_connected_connector() argument
221 for (int i = 0; i < resources->count_connectors; i++) { in find_first_connected_connector()
224 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_first_connected_connector()
235 drmModeConnector* MinuiBackendDrm::FindMainMonitor(int fd, drmModeRes* resources, in FindMainMonitor() argument
247 main_monitor_connector = find_used_connector_by_type(fd, resources, kConnectorPriority[i]); in FindMainMonitor()
253 main_monitor_connector = find_first_connected_connector(fd, resources); in FindMainMonitor()
270 void MinuiBackendDrm::DisableNonMainCrtcs(int fd, drmModeRes* resources, drmModeCrtc* main_crtc) { in DisableNonMainCrtcs() argument
271 for (int i = 0; i < resources->count_connectors; i++) { in DisableNonMainCrtcs()
272 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in DisableNonMainCrtcs()
273 drmModeCrtc* crtc = find_crtc_for_connector(fd, resources, connector); in DisableNonMainCrtcs()