Lines Matching refs:file
44 static int odev_open(struct inode *inode, struct file *file);
45 static int odev_release(struct inode *inode, struct file *file);
46 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
47 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
48 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
49 static __poll_t odev_poll(struct file *file, poll_table * wait);
118 odev_open(struct inode *inode, struct file *file)
128 rc = snd_seq_oss_open(file, level);
135 odev_release(struct inode *inode, struct file *file)
139 dp = file->private_data;
151 odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
154 dp = file->private_data;
162 odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)
165 dp = file->private_data;
168 return snd_seq_oss_write(dp, buf, count, file);
172 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
177 dp = file->private_data;
191 static long odev_ioctl_compat(struct file *file, unsigned int cmd,
194 return odev_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
201 odev_poll(struct file *file, poll_table * wait)
204 dp = file->private_data;
207 return snd_seq_oss_poll(dp, file, wait);