Lines Matching defs:df
35 struct hypfs_dbfs_file *df;
41 df = file_inode(file)->i_private;
42 if (mutex_lock_interruptible(&df->lock))
45 data = hypfs_dbfs_data_alloc(df);
47 mutex_unlock(&df->lock);
50 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size);
52 mutex_unlock(&df->lock);
56 mutex_unlock(&df->lock);
65 struct hypfs_dbfs_file *df = file_inode(file)->i_private;
68 mutex_lock(&df->lock);
69 if (df->unlocked_ioctl)
70 rc = df->unlocked_ioctl(file, cmd, arg);
73 mutex_unlock(&df->lock);
82 void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df)
84 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df,
86 mutex_init(&df->lock);
89 void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df)
91 debugfs_remove(df->dentry);