Lines Matching refs:file
42 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument
44 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek()
46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
50 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument
53 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read()
59 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument
62 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write()
68 static int snd_hwdep_open(struct inode *inode, struct file * file) in snd_hwdep_open() argument
105 err = hw->ops.open(hw, file); in snd_hwdep_open()
109 if (file->f_flags & O_NONBLOCK) { in snd_hwdep_open()
130 err = snd_card_file_add(hw->card, file); in snd_hwdep_open()
132 file->private_data = hw; in snd_hwdep_open()
136 hw->ops.release(hw, file); in snd_hwdep_open()
146 static int snd_hwdep_release(struct inode *inode, struct file * file) in snd_hwdep_release() argument
149 struct snd_hwdep *hw = file->private_data; in snd_hwdep_release()
154 err = hw->ops.release(hw, file); in snd_hwdep_release()
160 snd_card_file_remove(hw->card, file); in snd_hwdep_release()
165 static __poll_t snd_hwdep_poll(struct file * file, poll_table * wait) in snd_hwdep_poll() argument
167 struct snd_hwdep *hw = file->private_data; in snd_hwdep_poll()
169 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
236 static long snd_hwdep_ioctl(struct file * file, unsigned int cmd, in snd_hwdep_ioctl() argument
239 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl()
252 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
256 static int snd_hwdep_mmap(struct file * file, struct vm_area_struct * vma) in snd_hwdep_mmap() argument
258 struct snd_hwdep *hw = file->private_data; in snd_hwdep_mmap()
260 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()