Lines Matching refs:file
57 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument
59 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek()
61 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
65 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument
68 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read()
74 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument
77 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write()
83 static int snd_hwdep_open(struct inode *inode, struct file * file) in snd_hwdep_open() argument
120 err = hw->ops.open(hw, file); in snd_hwdep_open()
124 if (file->f_flags & O_NONBLOCK) { in snd_hwdep_open()
145 err = snd_card_file_add(hw->card, file); in snd_hwdep_open()
147 file->private_data = hw; in snd_hwdep_open()
151 hw->ops.release(hw, file); in snd_hwdep_open()
161 static int snd_hwdep_release(struct inode *inode, struct file * file) in snd_hwdep_release() argument
164 struct snd_hwdep *hw = file->private_data; in snd_hwdep_release()
169 err = hw->ops.release(hw, file); in snd_hwdep_release()
175 snd_card_file_remove(hw->card, file); in snd_hwdep_release()
180 static unsigned int snd_hwdep_poll(struct file * file, poll_table * wait) in snd_hwdep_poll() argument
182 struct snd_hwdep *hw = file->private_data; in snd_hwdep_poll()
184 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
243 static long snd_hwdep_ioctl(struct file * file, unsigned int cmd, in snd_hwdep_ioctl() argument
246 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl()
259 return hw->ops.ioctl(hw, file, cmd, arg); in snd_hwdep_ioctl()
263 static int snd_hwdep_mmap(struct file * file, struct vm_area_struct * vma) in snd_hwdep_mmap() argument
265 struct snd_hwdep *hw = file->private_data; in snd_hwdep_mmap()
267 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()