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);
115 odev_open(struct inode *inode, struct file *file) in odev_open() argument
125 rc = snd_seq_oss_open(file, level); in odev_open()
132 odev_release(struct inode *inode, struct file *file) in odev_release() argument
136 if ((dp = file->private_data) == NULL) in odev_release()
147 odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in odev_read() argument
150 dp = file->private_data; in odev_read()
158 odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) in odev_write() argument
161 dp = file->private_data; in odev_write()
164 return snd_seq_oss_write(dp, buf, count, file); in odev_write()
168 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in odev_ioctl() argument
171 dp = file->private_data; in odev_ioctl()
178 static long odev_ioctl_compat(struct file *file, unsigned int cmd, in odev_ioctl_compat() argument
181 return odev_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in odev_ioctl_compat()
188 odev_poll(struct file *file, poll_table * wait) in odev_poll() argument
191 dp = file->private_data; in odev_poll()
194 return snd_seq_oss_poll(dp, file, wait); in odev_poll()