Lines Matching refs:df
34 struct hypfs_dbfs_file *df; in dbfs_read() local
40 df = file_inode(file)->i_private; in dbfs_read()
41 mutex_lock(&df->lock); in dbfs_read()
42 data = hypfs_dbfs_data_alloc(df); in dbfs_read()
44 mutex_unlock(&df->lock); in dbfs_read()
47 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size); in dbfs_read()
49 mutex_unlock(&df->lock); in dbfs_read()
53 mutex_unlock(&df->lock); in dbfs_read()
62 struct hypfs_dbfs_file *df = file_inode(file)->i_private; in dbfs_ioctl() local
65 mutex_lock(&df->lock); in dbfs_ioctl()
66 if (df->unlocked_ioctl) in dbfs_ioctl()
67 rc = df->unlocked_ioctl(file, cmd, arg); in dbfs_ioctl()
70 mutex_unlock(&df->lock); in dbfs_ioctl()
80 int hypfs_dbfs_create_file(struct hypfs_dbfs_file *df) in hypfs_dbfs_create_file() argument
82 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, in hypfs_dbfs_create_file()
84 if (IS_ERR(df->dentry)) in hypfs_dbfs_create_file()
85 return PTR_ERR(df->dentry); in hypfs_dbfs_create_file()
86 mutex_init(&df->lock); in hypfs_dbfs_create_file()
90 void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df) in hypfs_dbfs_remove_file() argument
92 debugfs_remove(df->dentry); in hypfs_dbfs_remove_file()