Lines Matching refs:drm_connector
62 drmModeConnectorPtr drm_connector; member
70 m_priv->drm_connector = drmModeGetConnector(this->card().fd(), this->id()); in Connector()
71 assert(m_priv->drm_connector); in Connector()
77 const auto& name = connector_names.at(m_priv->drm_connector->connector_type); in Connector()
78 m_fullname = name + "-" + to_string(m_priv->drm_connector->connector_type_id); in Connector()
83 drmModeFreeConnector(m_priv->drm_connector); in ~Connector()
89 drmModeFreeConnector(m_priv->drm_connector); in refresh()
91 m_priv->drm_connector = drmModeGetConnector(this->card().fd(), this->id()); in refresh()
92 assert(m_priv->drm_connector); in refresh()
98 const auto& name = connector_names.at(m_priv->drm_connector->connector_type); in refresh()
99 m_fullname = name + "-" + to_string(m_priv->drm_connector->connector_type_id); in refresh()
104 if (m_priv->drm_connector->encoder_id != 0) in setup()
105 m_current_encoder = card().get_encoder(m_priv->drm_connector->encoder_id); in setup()
123 if (m_priv->drm_connector->count_modes == 0) in get_default_mode()
126 drmModeModeInfo drmmode = m_priv->drm_connector->modes[0]; in get_default_mode()
133 auto c = m_priv->drm_connector; in get_mode()
157 auto c = m_priv->drm_connector; in get_mode()
196 return m_priv->drm_connector->connection == DRM_MODE_CONNECTED || in connected()
197 m_priv->drm_connector->connection == DRM_MODE_UNKNOWNCONNECTION; in connected()
202 switch (m_priv->drm_connector->connection) { in connector_status()
216 for (int i = 0; i < m_priv->drm_connector->count_encoders; ++i) { in get_possible_crtcs()
217 auto enc = card().get_encoder(m_priv->drm_connector->encoders[i]); in get_possible_crtcs()
237 return m_priv->drm_connector->connector_type; in connector_type()
242 return m_priv->drm_connector->connector_type_id; in connector_type_id()
247 return m_priv->drm_connector->mmWidth; in mmWidth()
252 return m_priv->drm_connector->mmHeight; in mmHeight()
257 return m_priv->drm_connector->subpixel; in subpixel()
269 for (int i = 0; i < m_priv->drm_connector->count_modes; i++) in get_modes()
271 m_priv->drm_connector->modes[i])); in get_modes()
280 for (int i = 0; i < m_priv->drm_connector->count_encoders; i++) { in get_encoders()
281 auto enc = card().get_encoder(m_priv->drm_connector->encoders[i]); in get_encoders()