• Home
  • Raw
  • Download

Lines Matching refs:connector

91 	struct drm_connector *connector = to_drm_connector(device);  in status_store()  local
92 struct drm_device *dev = connector->dev; in status_store()
100 old_force = connector->force; in status_store()
103 connector->force = 0; in status_store()
105 connector->force = DRM_FORCE_ON; in status_store()
107 connector->force = DRM_FORCE_ON_DIGITAL; in status_store()
109 connector->force = DRM_FORCE_OFF; in status_store()
113 if (old_force != connector->force || !connector->force) { in status_store()
115 connector->base.id, in status_store()
116 connector->name, in status_store()
117 old_force, connector->force); in status_store()
119 connector->funcs->fill_modes(connector, in status_store()
133 struct drm_connector *connector = to_drm_connector(device); in status_show() local
136 status = READ_ONCE(connector->status); in status_show()
146 struct drm_connector *connector = to_drm_connector(device); in dpms_show() local
149 dpms = READ_ONCE(connector->dpms); in dpms_show()
159 struct drm_connector *connector = to_drm_connector(device); in enabled_show() local
162 enabled = READ_ONCE(connector->encoder); in enabled_show()
172 struct drm_connector *connector = to_drm_connector(connector_dev); in edid_show() local
177 mutex_lock(&connector->dev->mode_config.mutex); in edid_show()
178 if (!connector->edid_blob_ptr) in edid_show()
181 edid = connector->edid_blob_ptr->data; in edid_show()
182 size = connector->edid_blob_ptr->length; in edid_show()
195 mutex_unlock(&connector->dev->mode_config.mutex); in edid_show()
204 struct drm_connector *connector = to_drm_connector(device); in modes_show() local
208 mutex_lock(&connector->dev->mode_config.mutex); in modes_show()
209 list_for_each_entry(mode, &connector->modes, head) { in modes_show()
213 mutex_unlock(&connector->dev->mode_config.mutex); in modes_show()
262 int drm_sysfs_connector_add(struct drm_connector *connector) in drm_sysfs_connector_add() argument
264 struct drm_device *dev = connector->dev; in drm_sysfs_connector_add()
266 if (connector->kdev) in drm_sysfs_connector_add()
269 connector->kdev = in drm_sysfs_connector_add()
271 connector, connector_dev_groups, in drm_sysfs_connector_add()
273 connector->name); in drm_sysfs_connector_add()
275 connector->name); in drm_sysfs_connector_add()
277 if (IS_ERR(connector->kdev)) { in drm_sysfs_connector_add()
278 DRM_ERROR("failed to register connector device: %ld\n", PTR_ERR(connector->kdev)); in drm_sysfs_connector_add()
279 return PTR_ERR(connector->kdev); in drm_sysfs_connector_add()
301 void drm_sysfs_connector_remove(struct drm_connector *connector) in drm_sysfs_connector_remove() argument
303 if (!connector->kdev) in drm_sysfs_connector_remove()
306 connector->name); in drm_sysfs_connector_remove()
308 device_unregister(connector->kdev); in drm_sysfs_connector_remove()
309 connector->kdev = NULL; in drm_sysfs_connector_remove()