Lines Matching full:file
159 static int drm_debugfs_open(struct inode *inode, struct file *file)
166 return single_open(file, node->info_ent->show, node);
169 static int drm_debugfs_entry_open(struct inode *inode, struct file *file)
172 struct drm_debugfs_info *node = &entry->file;
178 return single_open(file, node->show, entry);
318 struct drm_file *file = m->private;
320 if (!file)
324 pid = rcu_dereference(file->pid);
333 static int drm_debufs_proc_info_open(struct inode *inode, struct file *file)
335 return single_open(file, drm_debugfs_proc_info_show, inode->i_private);
348 * @file: drm_file for a client
353 * Also add the process information debugfs file for each client to tag
356 void drm_debugfs_clients_add(struct drm_file *file)
360 client = kasprintf(GFP_KERNEL, "client-%llu", file->client_id);
365 file->debugfs_client = debugfs_create_dir(client, drm_debugfs_root);
368 debugfs_create_file("proc_info", 0444, file->debugfs_client, file,
371 client = kasprintf(GFP_KERNEL, "../%s", file->minor->dev->unique);
376 debugfs_create_symlink("device", file->debugfs_client, client);
382 * @file: drm_file for a client
389 void drm_debugfs_clients_remove(struct drm_file *file)
391 debugfs_remove_recursive(file->debugfs_client);
392 file->debugfs_client = NULL;
458 * drm_debugfs_add_file - Add a given file to the DRM device debugfs file list
460 * @name: debugfs file name
464 * Add a given file entry to the DRM device debugfs file list to be created on
475 entry->file.name = name;
476 entry->file.show = show;
477 entry->file.data = data;
486 * drm_debugfs_add_files - Add an array of files to the DRM device debugfs file list
492 * &struct drm_debugfs_info in the DRM device debugfs file list.
512 static int connector_open(struct inode *inode, struct file *file)
516 return single_open(file, connector_show, dev);
519 static ssize_t connector_write(struct file *file, const char __user *ubuf,
522 struct seq_file *m = file->private_data;
553 static int edid_open(struct inode *inode, struct file *file)
557 return single_open(file, edid_show, dev);
560 static ssize_t edid_write(struct file *file, const char __user *ubuf,
563 struct seq_file *m = file->private_data;
583 * Returns the min and max vrr vfreq through the connector's debugfs file.
601 * Returns Connector's max supported bpc through debugfs file.
637 audio_infoframe_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos)
673 struct dentry *file;
675 file = debugfs_create_file("audio", 0400, parent, connector, &audio_infoframe_fops);
676 if (IS_ERR(file))
677 return PTR_ERR(file);
683 static ssize_t _f##_read_infoframe(struct file *filp, \
727 struct dentry *file; \
729 file = debugfs_create_file(#_f, 0400, parent, connector, &_f ## _infoframe_fops); \
730 if (IS_ERR(file)) \
731 return PTR_ERR(file); \