Lines Matching full:file
102 * file ops for binary proc files
104 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
110 data = file->private_data;
116 file, offset, orig);
123 offset += file->f_pos;
137 file->f_pos = offset;
141 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer,
144 struct snd_info_private_data *data = file->private_data;
157 file, buffer, size, pos);
163 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer,
166 struct snd_info_private_data *data = file->private_data;
178 file, buffer, count, pos);
185 static __poll_t snd_info_entry_poll(struct file *file, poll_table *wait)
187 struct snd_info_private_data *data = file->private_data;
194 file, wait);
202 static long snd_info_entry_ioctl(struct file *file, unsigned int cmd,
205 struct snd_info_private_data *data = file->private_data;
211 file, cmd, arg);
214 static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma)
216 struct inode *inode = file_inode(file);
220 data = file->private_data;
227 inode, file, vma);
230 static int snd_info_entry_open(struct inode *inode, struct file *file)
241 mode = file->f_flags & O_ACCMODE;
254 file->private_data = data;
263 static int snd_info_entry_release(struct inode *inode, struct file *file)
265 struct snd_info_private_data *data = file->private_data;
269 entry->c.ops->release(entry, file->f_flags & O_ACCMODE,
289 * file ops for text proc files
291 static ssize_t snd_info_text_entry_write(struct file *file,
295 struct seq_file *m = file->private_data;
347 static int snd_info_text_entry_open(struct inode *inode, struct file *file)
364 err = single_open_size(file, snd_info_seq_show, data,
367 err = single_open(file, snd_info_seq_show, data);
379 static int snd_info_text_entry_release(struct inode *inode, struct file *file)
381 struct seq_file *m = file->private_data;
388 single_release(inode, file);
476 * create a card proc file
497 * register the card proc file
542 * de-register the card proc file
562 * release the card proc file resources
650 * @name: the proc file name
653 * Creates an info entry with the given file name and initializes as
691 * @name: the file name
711 * @name: the file name
834 * snd_card_rw_proc_new - Create a read/write text proc file entry for the card
836 * @name: the file name
841 * This proc file entry will be registered via snd_card_register() call, and