Lines Matching refs:file
104 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument
110 data = file->private_data; in snd_info_entry_llseek()
116 file, offset, orig); in snd_info_entry_llseek()
125 offset += file->f_pos; in snd_info_entry_llseek()
139 file->f_pos = offset; in snd_info_entry_llseek()
146 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer, in snd_info_entry_read() argument
149 struct snd_info_private_data *data = file->private_data; in snd_info_entry_read()
162 file, buffer, size, pos); in snd_info_entry_read()
168 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer, in snd_info_entry_write() argument
171 struct snd_info_private_data *data = file->private_data; in snd_info_entry_write()
183 file, buffer, count, pos); in snd_info_entry_write()
190 static __poll_t snd_info_entry_poll(struct file *file, poll_table *wait) in snd_info_entry_poll() argument
192 struct snd_info_private_data *data = file->private_data; in snd_info_entry_poll()
199 file, wait); in snd_info_entry_poll()
207 static long snd_info_entry_ioctl(struct file *file, unsigned int cmd, in snd_info_entry_ioctl() argument
210 struct snd_info_private_data *data = file->private_data; in snd_info_entry_ioctl()
216 file, cmd, arg); in snd_info_entry_ioctl()
219 static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma) in snd_info_entry_mmap() argument
221 struct inode *inode = file_inode(file); in snd_info_entry_mmap()
225 data = file->private_data; in snd_info_entry_mmap()
232 inode, file, vma); in snd_info_entry_mmap()
235 static int snd_info_entry_open(struct inode *inode, struct file *file) in snd_info_entry_open() argument
246 mode = file->f_flags & O_ACCMODE; in snd_info_entry_open()
259 file->private_data = data; in snd_info_entry_open()
271 static int snd_info_entry_release(struct inode *inode, struct file *file) in snd_info_entry_release() argument
273 struct snd_info_private_data *data = file->private_data; in snd_info_entry_release()
277 entry->c.ops->release(entry, file->f_flags & O_ACCMODE, in snd_info_entry_release()
299 static ssize_t snd_info_text_entry_write(struct file *file, in snd_info_text_entry_write() argument
303 struct seq_file *m = file->private_data; in snd_info_text_entry_write()
366 static int snd_info_text_entry_open(struct inode *inode, struct file *file) in snd_info_text_entry_open() argument
383 err = single_open_size(file, snd_info_seq_show, data, in snd_info_text_entry_open()
386 err = single_open(file, snd_info_seq_show, data); in snd_info_text_entry_open()
401 static int snd_info_text_entry_release(struct inode *inode, struct file *file) in snd_info_text_entry_release() argument
403 struct seq_file *m = file->private_data; in snd_info_text_entry_release()
410 single_release(inode, file); in snd_info_text_entry_release()