Lines Matching refs:connector
169 drmModeConnector* connector) { in find_crtc_for_connector() argument
172 if (connector->encoder_id) { in find_crtc_for_connector()
173 encoder = drmModeGetEncoder(fd, connector->encoder_id); in find_crtc_for_connector()
187 for (int i = 0; i < connector->count_encoders; i++) { in find_crtc_for_connector()
188 encoder = drmModeGetEncoder(fd, connector->encoders[i]); in find_crtc_for_connector()
208 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in find_used_connector_by_type() local
209 if (connector) { in find_used_connector_by_type()
210 if ((connector->connector_type == type) && (connector->connection == DRM_MODE_CONNECTED) && in find_used_connector_by_type()
211 (connector->count_modes > 0)) { in find_used_connector_by_type()
212 return connector; in find_used_connector_by_type()
214 drmModeFreeConnector(connector); in find_used_connector_by_type()
222 drmModeConnector* connector; in find_first_connected_connector() local
224 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_first_connected_connector()
225 if (connector) { in find_first_connected_connector()
226 if ((connector->count_modes > 0) && (connector->connection == DRM_MODE_CONNECTED)) in find_first_connected_connector()
227 return connector; in find_first_connected_connector()
229 drmModeFreeConnector(connector); in find_first_connected_connector()
272 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in DisableNonMainCrtcs() local
273 drmModeCrtc* crtc = find_crtc_for_connector(fd, resources, connector); in DisableNonMainCrtcs()