Lines Matching refs:file
56 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument
58 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek()
60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
64 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument
67 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read()
73 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument
76 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write()
82 static int snd_hwdep_open(struct inode *inode, struct file * file) in snd_hwdep_open() argument
119 err = hw->ops.open(hw, file); in snd_hwdep_open()
123 if (file->f_flags & O_NONBLOCK) { in snd_hwdep_open()
144 err = snd_card_file_add(hw->card, file); in snd_hwdep_open()
146 file->private_data = hw; in snd_hwdep_open()
150 hw->ops.release(hw, file); in snd_hwdep_open()
160 static int snd_hwdep_release(struct inode *inode, struct file * file) in snd_hwdep_release() argument
163 struct snd_hwdep *hw = file->private_data; in snd_hwdep_release()
168 err = hw->ops.release(hw, file); in snd_hwdep_release()
174 snd_card_file_remove(hw->card, file); in snd_hwdep_release()
179 static unsigned int snd_hwdep_poll(struct file * file, poll_table * wait) in snd_hwdep_poll() argument
181 struct snd_hwdep *hw = file->private_data; in snd_hwdep_poll()
183 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
242 static long snd_hwdep_ioctl(struct file * file, unsigned int cmd, in snd_hwdep_ioctl() argument
245 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl()
258 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
262 static int snd_hwdep_mmap(struct file * file, struct vm_area_struct * vma) in snd_hwdep_mmap() argument
264 struct snd_hwdep *hw = file->private_data; in snd_hwdep_mmap()
266 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()