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) in odev_open() argument
128 rc = snd_seq_oss_open(file, level); in odev_open()
135 odev_release(struct inode *inode, struct file *file) in odev_release() argument
139 dp = file->private_data; in odev_release()
151 odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in odev_read() argument
154 dp = file->private_data; in odev_read()
162 odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) in odev_write() argument
165 dp = file->private_data; in odev_write()
168 return snd_seq_oss_write(dp, buf, count, file); in odev_write()
172 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in odev_ioctl() argument
177 dp = file->private_data; in odev_ioctl()
191 static long odev_ioctl_compat(struct file *file, unsigned int cmd, in odev_ioctl_compat() argument
194 return odev_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in odev_ioctl_compat()
201 odev_poll(struct file *file, poll_table * wait) in odev_poll() argument
204 dp = file->private_data; in odev_poll()
207 return snd_seq_oss_poll(dp, file, wait); in odev_poll()