Lines Matching refs:file

24  *  This file is subject to the terms and conditions of the GNU General Public
25 * License. See the file COPYING in the main directory of this archive
325 static int mixer_open(struct inode *inode, struct file *file)
337 static int mixer_release(struct inode *inode, struct file *file)
346 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg)
370 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg)
375 ret = mixer_ioctl(file, cmd, arg);
544 static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft,
670 static __poll_t sq_poll(struct file *file, struct poll_table_struct *wait)
680 if (file->f_mode & FMODE_WRITE )
681 poll_wait(file, &write_sq.action_queue, wait);
682 if (file->f_mode & FMODE_WRITE)
698 static inline void sq_wake_up(struct sound_queue *sq, struct file *file,
701 if (file->f_mode & mode) {
708 static int sq_open2(struct sound_queue *sq, struct file *file, fmode_t mode,
713 if (file->f_mode & mode) {
717 if (file->f_flags & O_NONBLOCK)
739 sq_wake_up(sq, file, mode);
746 sq->non_blocking = file->f_flags & O_NONBLOCK;
753 #define write_sq_wake_up(file) sq_wake_up(&write_sq, file, FMODE_WRITE)
756 #define write_sq_open(file) \
757 sq_open2(&write_sq, file, FMODE_WRITE, numWriteBufs, writeBufSize )
759 static int sq_open(struct inode *inode, struct file *file)
769 rc = write_sq_open(file); /* checks the f_mode */
772 if (file->f_mode & FMODE_READ) {
779 dmasound.mach.sq_open(file->f_mode);
877 static int sq_release(struct inode *inode, struct file *file)
883 if (file->f_mode & FMODE_WRITE) {
892 if (file->f_mode & shared_resource_owner) { /* it's us that has them */
908 read_sq_wake_up(file); /* checks f_mode */
909 write_sq_wake_up(file); /* checks f_mode */
986 static int sq_ioctl(struct file *file, u_int cmd, u_long arg)
1011 if (file->f_mode & FMODE_WRITE) {
1032 if (file->f_mode & FMODE_WRITE) {
1037 if (file->f_mode & shared_resource_owner)
1049 if (shared_resources_are_mine(file->f_mode)) {
1063 if (shared_resources_are_mine(file->f_mode) &&
1072 if (shared_resources_are_mine(file->f_mode) &&
1082 if (shared_resources_are_mine(file->f_mode) &&
1109 if (file->f_mode & FMODE_WRITE) {
1121 if (file->f_mode & FMODE_WRITE) {
1139 return mixer_ioctl(file, cmd, arg);
1144 static long sq_unlocked_ioctl(struct file *file, u_int cmd, u_long arg)
1149 ret = sq_ioctl(file, cmd, arg);
1247 static int state_open(struct inode *inode, struct file *file)
1329 static int state_release(struct inode *inode, struct file *file)
1338 static ssize_t state_read(struct file *file, char __user *buf, size_t count,