Lines Matching refs:df
35 struct hypfs_dbfs_file *df; in dbfs_read() local
41 df = file_inode(file)->i_private; in dbfs_read()
42 mutex_lock(&df->lock); in dbfs_read()
43 data = hypfs_dbfs_data_alloc(df); in dbfs_read()
45 mutex_unlock(&df->lock); in dbfs_read()
48 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size); in dbfs_read()
50 mutex_unlock(&df->lock); in dbfs_read()
54 mutex_unlock(&df->lock); in dbfs_read()
63 struct hypfs_dbfs_file *df = file_inode(file)->i_private; in dbfs_ioctl() local
66 mutex_lock(&df->lock); in dbfs_ioctl()
67 if (df->unlocked_ioctl) in dbfs_ioctl()
68 rc = df->unlocked_ioctl(file, cmd, arg); in dbfs_ioctl()
71 mutex_unlock(&df->lock); in dbfs_ioctl()
81 void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df) in hypfs_dbfs_create_file() argument
83 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, in hypfs_dbfs_create_file()
85 mutex_init(&df->lock); in hypfs_dbfs_create_file()
88 void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df) in hypfs_dbfs_remove_file() argument
90 debugfs_remove(df->dentry); in hypfs_dbfs_remove_file()