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