• Home
  • Raw
  • Download

Lines Matching refs:file

48 static int snd_ctl_open(struct inode *inode, struct file *file)  in snd_ctl_open()  argument
55 err = nonseekable_open(inode, file); in snd_ctl_open()
64 err = snd_card_file_add(card, file); in snd_ctl_open()
85 file->private_data = ctl; in snd_ctl_open()
95 snd_card_file_remove(card, file); in snd_ctl_open()
116 static int snd_ctl_release(struct inode *inode, struct file *file) in snd_ctl_release() argument
124 ctl = file->private_data; in snd_ctl_release()
125 file->private_data = NULL; in snd_ctl_release()
140 snd_card_file_remove(card, file); in snd_ctl_release()
517 static int snd_ctl_remove_user_ctl(struct snd_ctl_file * file, in snd_ctl_remove_user_ctl() argument
520 struct snd_card *card = file->card; in snd_ctl_remove_user_ctl()
535 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
889 static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, in snd_ctl_elem_write() argument
906 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write()
923 static int snd_ctl_elem_write_user(struct snd_ctl_file *file, in snd_ctl_elem_write_user() argument
934 card = file->card; in snd_ctl_elem_write_user()
938 result = snd_ctl_elem_write(card, file, control); in snd_ctl_elem_write_user()
947 static int snd_ctl_elem_lock(struct snd_ctl_file *file, in snd_ctl_elem_lock() argument
950 struct snd_card *card = file->card; in snd_ctl_elem_lock()
967 vd->owner = file; in snd_ctl_elem_lock()
975 static int snd_ctl_elem_unlock(struct snd_ctl_file *file, in snd_ctl_elem_unlock() argument
978 struct snd_card *card = file->card; in snd_ctl_elem_unlock()
994 else if (vd->owner != file) in snd_ctl_elem_unlock()
1160 static int snd_ctl_elem_add(struct snd_ctl_file *file, in snd_ctl_elem_add() argument
1163 struct snd_card *card = file->card; in snd_ctl_elem_add()
1184 err = snd_ctl_remove_user_ctl(file, &info->id); in snd_ctl_elem_add()
1262 _kctl->vd[idx].owner = file; in snd_ctl_elem_add()
1274 static int snd_ctl_elem_add_user(struct snd_ctl_file *file, in snd_ctl_elem_add_user() argument
1280 return snd_ctl_elem_add(file, &info, replace); in snd_ctl_elem_add_user()
1283 static int snd_ctl_elem_remove(struct snd_ctl_file *file, in snd_ctl_elem_remove() argument
1290 return snd_ctl_remove_user_ctl(file, &id); in snd_ctl_elem_remove()
1293 static int snd_ctl_subscribe_events(struct snd_ctl_file *file, int __user *ptr) in snd_ctl_subscribe_events() argument
1299 subscribe = file->subscribed; in snd_ctl_subscribe_events()
1305 file->subscribed = 1; in snd_ctl_subscribe_events()
1307 } else if (file->subscribed) { in snd_ctl_subscribe_events()
1308 snd_ctl_empty_read_queue(file); in snd_ctl_subscribe_events()
1309 file->subscribed = 0; in snd_ctl_subscribe_events()
1314 static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, in snd_ctl_tlv_ioctl() argument
1318 struct snd_card *card = file->card; in snd_ctl_tlv_ioctl()
1347 if (vd->owner != NULL && vd->owner != file) { in snd_ctl_tlv_ioctl()
1376 static long snd_ctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snd_ctl_ioctl() argument
1385 ctl = file->private_data; in snd_ctl_ioctl()
1442 static ssize_t snd_ctl_read(struct file *file, char __user *buffer, in snd_ctl_read() argument
1449 ctl = file->private_data; in snd_ctl_read()
1462 if ((file->f_flags & O_NONBLOCK) != 0 || result > 0) { in snd_ctl_read()
1500 static unsigned int snd_ctl_poll(struct file *file, poll_table * wait) in snd_ctl_poll() argument
1505 ctl = file->private_data; in snd_ctl_poll()
1508 poll_wait(file, &ctl->change_sleep, wait); in snd_ctl_poll()
1591 static int snd_ctl_fasync(int fd, struct file * file, int on) in snd_ctl_fasync() argument
1595 ctl = file->private_data; in snd_ctl_fasync()
1596 return fasync_helper(fd, file, on, &ctl->fasync); in snd_ctl_fasync()