Lines Matching full:minor
54 struct drm_minor *minor = node->minor; in drm_name_info() local
55 struct drm_device *dev = minor->dev; in drm_name_info()
76 struct drm_device *dev = node->minor->dev; in drm_clients_info()
102 priv->minor->index, in drm_clients_info()
128 struct drm_device *dev = node->minor->dev; in drm_gem_name_info()
166 * minor
170 * @minor: device minor number
177 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
179 struct drm_device *dev = minor->dev; in drm_debugfs_create_files()
193 tmp->minor = minor; in drm_debugfs_create_files()
199 mutex_lock(&minor->debugfs_lock); in drm_debugfs_create_files()
200 list_add(&tmp->list, &minor->debugfs_list); in drm_debugfs_create_files()
201 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_create_files()
206 int drm_debugfs_init(struct drm_minor *minor, int minor_id, in drm_debugfs_init() argument
209 struct drm_device *dev = minor->dev; in drm_debugfs_init()
212 INIT_LIST_HEAD(&minor->debugfs_list); in drm_debugfs_init()
213 mutex_init(&minor->debugfs_lock); in drm_debugfs_init()
215 minor->debugfs_root = debugfs_create_dir(name, root); in drm_debugfs_init()
218 minor->debugfs_root, minor); in drm_debugfs_init()
221 drm_atomic_debugfs_init(minor); in drm_debugfs_init()
225 drm_framebuffer_debugfs_init(minor); in drm_debugfs_init()
227 drm_client_debugfs_init(minor); in drm_debugfs_init()
231 dev->driver->debugfs_init(minor); in drm_debugfs_init()
238 struct drm_minor *minor) in drm_debugfs_remove_files() argument
244 mutex_lock(&minor->debugfs_lock); in drm_debugfs_remove_files()
246 list_for_each_safe(pos, q, &minor->debugfs_list) { in drm_debugfs_remove_files()
255 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_remove_files()
260 static void drm_debugfs_remove_all_files(struct drm_minor *minor) in drm_debugfs_remove_all_files() argument
264 mutex_lock(&minor->debugfs_lock); in drm_debugfs_remove_all_files()
265 list_for_each_entry_safe(node, tmp, &minor->debugfs_list, list) { in drm_debugfs_remove_all_files()
270 mutex_unlock(&minor->debugfs_lock); in drm_debugfs_remove_all_files()
273 void drm_debugfs_cleanup(struct drm_minor *minor) in drm_debugfs_cleanup() argument
275 if (!minor->debugfs_root) in drm_debugfs_cleanup()
278 drm_debugfs_remove_all_files(minor); in drm_debugfs_cleanup()
280 debugfs_remove_recursive(minor->debugfs_root); in drm_debugfs_cleanup()
281 minor->debugfs_root = NULL; in drm_debugfs_cleanup()
419 struct drm_minor *minor = connector->dev->primary; in drm_debugfs_connector_add() local
422 if (!minor->debugfs_root) in drm_debugfs_connector_add()
425 root = debugfs_create_dir(connector->name, minor->debugfs_root); in drm_debugfs_connector_add()
453 struct drm_minor *minor = crtc->dev->primary; in drm_debugfs_crtc_add() local
461 root = debugfs_create_dir(name, minor->debugfs_root); in drm_debugfs_crtc_add()