• 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()
210 unsigned int access, struct snd_ctl_file *file) in snd_ctl_new() argument
227 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
551 static int snd_ctl_remove_user_ctl(struct snd_ctl_file * file, in snd_ctl_remove_user_ctl() argument
554 struct snd_card *card = file->card; in snd_ctl_remove_user_ctl()
569 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
922 static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, in snd_ctl_elem_write() argument
939 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write()
956 static int snd_ctl_elem_write_user(struct snd_ctl_file *file, in snd_ctl_elem_write_user() argument
967 card = file->card; in snd_ctl_elem_write_user()
971 result = snd_ctl_elem_write(card, file, control); in snd_ctl_elem_write_user()
980 static int snd_ctl_elem_lock(struct snd_ctl_file *file, in snd_ctl_elem_lock() argument
983 struct snd_card *card = file->card; in snd_ctl_elem_lock()
1000 vd->owner = file; in snd_ctl_elem_lock()
1008 static int snd_ctl_elem_unlock(struct snd_ctl_file *file, in snd_ctl_elem_unlock() argument
1011 struct snd_card *card = file->card; in snd_ctl_elem_unlock()
1027 else if (vd->owner != file) in snd_ctl_elem_unlock()
1206 static int snd_ctl_elem_add(struct snd_ctl_file *file, in snd_ctl_elem_add() argument
1226 struct snd_card *card = file->card; in snd_ctl_elem_add()
1243 err = snd_ctl_remove_user_ctl(file, &info->id); in snd_ctl_elem_add()
1292 err = snd_ctl_new(&kctl, count, access, file); in snd_ctl_elem_add()
1355 static int snd_ctl_elem_add_user(struct snd_ctl_file *file, in snd_ctl_elem_add_user() argument
1363 err = snd_ctl_elem_add(file, &info, replace); in snd_ctl_elem_add_user()
1367 snd_ctl_remove_user_ctl(file, &info.id); in snd_ctl_elem_add_user()
1374 static int snd_ctl_elem_remove(struct snd_ctl_file *file, in snd_ctl_elem_remove() argument
1381 return snd_ctl_remove_user_ctl(file, &id); in snd_ctl_elem_remove()
1384 static int snd_ctl_subscribe_events(struct snd_ctl_file *file, int __user *ptr) in snd_ctl_subscribe_events() argument
1390 subscribe = file->subscribed; in snd_ctl_subscribe_events()
1396 file->subscribed = 1; in snd_ctl_subscribe_events()
1398 } else if (file->subscribed) { in snd_ctl_subscribe_events()
1399 snd_ctl_empty_read_queue(file); in snd_ctl_subscribe_events()
1400 file->subscribed = 0; in snd_ctl_subscribe_events()
1405 static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, in snd_ctl_tlv_ioctl() argument
1409 struct snd_card *card = file->card; in snd_ctl_tlv_ioctl()
1443 if (vd->owner != NULL && vd->owner != file) { in snd_ctl_tlv_ioctl()
1472 static long snd_ctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snd_ctl_ioctl() argument
1481 ctl = file->private_data; in snd_ctl_ioctl()
1538 static ssize_t snd_ctl_read(struct file *file, char __user *buffer, in snd_ctl_read() argument
1545 ctl = file->private_data; in snd_ctl_read()
1558 if ((file->f_flags & O_NONBLOCK) != 0 || result > 0) { in snd_ctl_read()
1596 static unsigned int snd_ctl_poll(struct file *file, poll_table * wait) in snd_ctl_poll() argument
1601 ctl = file->private_data; in snd_ctl_poll()
1604 poll_wait(file, &ctl->change_sleep, wait); in snd_ctl_poll()
1703 static int snd_ctl_fasync(int fd, struct file * file, int on) in snd_ctl_fasync() argument
1707 ctl = file->private_data; in snd_ctl_fasync()
1708 return fasync_helper(fd, file, on, &ctl->fasync); in snd_ctl_fasync()