/sound/core/seq/oss/ |
D | seq_oss.c | 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() [all …]
|
D | seq_oss_rw.c | 23 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 83 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() 151 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) in insert_queue() 184 snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait) in snd_seq_oss_poll() argument 190 if (snd_seq_oss_readq_poll(dp->readq, file, wait)) in snd_seq_oss_poll() 196 if (snd_seq_kernel_client_write_poll(dp->cseq, file, wait)) in snd_seq_oss_poll()
|
D | seq_oss_init.c | 41 static int translate_mode(struct file *file); 172 snd_seq_oss_open(struct file *file, int level) in snd_seq_oss_open() argument 228 dp->file_mode = translate_mode(file); in snd_seq_oss_open() 257 file->private_data = dp; in snd_seq_oss_open() 283 translate_mode(struct file *file) in translate_mode() argument 286 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode() 288 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode() 290 if (file->f_flags & O_NONBLOCK) in translate_mode()
|
/sound/core/ |
D | timer_compat.c | 34 static int snd_timer_user_gparams_compat(struct file *file, in snd_timer_user_gparams_compat() argument 47 static int snd_timer_user_info_compat(struct file *file, in snd_timer_user_info_compat() argument 54 tu = file->private_data; in snd_timer_user_info_compat() 81 static int snd_timer_user_status_compat(struct file *file, in snd_timer_user_status_compat() argument 87 tu = file->private_data; in snd_timer_user_status_compat() 106 #define snd_timer_user_status_x32(file, s) \ argument 107 snd_timer_user_status(file, s) 122 static long __snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in __snd_timer_user_ioctl_compat() argument 143 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp); in __snd_timer_user_ioctl_compat() 145 return snd_timer_user_gparams_compat(file, argp); in __snd_timer_user_ioctl_compat() [all …]
|
D | hwdep.c | 42 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument 44 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() 46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 50 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument 53 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() 59 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument 62 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() 68 static int snd_hwdep_open(struct inode *inode, struct file * file) in snd_hwdep_open() argument 105 err = hw->ops.open(hw, file); in snd_hwdep_open() 109 if (file->f_flags & O_NONBLOCK) { in snd_hwdep_open() [all …]
|
D | info.c | 105 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument 111 data = file->private_data; in snd_info_entry_llseek() 117 file, offset, orig); in snd_info_entry_llseek() 126 offset += file->f_pos; in snd_info_entry_llseek() 140 file->f_pos = offset; in snd_info_entry_llseek() 147 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer, in snd_info_entry_read() argument 150 struct snd_info_private_data *data = file->private_data; in snd_info_entry_read() 163 file, buffer, size, pos); in snd_info_entry_read() 169 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer, in snd_info_entry_write() argument 172 struct snd_info_private_data *data = file->private_data; in snd_info_entry_write() [all …]
|
D | init.c | 24 struct file *file; member 286 static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) in snd_disconnect_llseek() argument 291 static ssize_t snd_disconnect_read(struct file *file, char __user *buf, in snd_disconnect_read() argument 297 static ssize_t snd_disconnect_write(struct file *file, const char __user *buf, in snd_disconnect_write() argument 303 static int snd_disconnect_release(struct inode *inode, struct file *file) in snd_disconnect_release() argument 309 if (_df->file == file) { in snd_disconnect_release() 318 if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync) in snd_disconnect_release() 319 df->disconnected_f_op->fasync(-1, file, 0); in snd_disconnect_release() 320 return df->disconnected_f_op->release(inode, file); in snd_disconnect_release() 323 panic("%s(%p, %p) failed!", __func__, inode, file); in snd_disconnect_release() [all …]
|
D | control.c | 35 static int snd_ctl_open(struct inode *inode, struct file *file) in snd_ctl_open() argument 42 err = stream_open(inode, file); in snd_ctl_open() 51 err = snd_card_file_add(card, file); in snd_ctl_open() 72 file->private_data = ctl; in snd_ctl_open() 82 snd_card_file_remove(card, file); in snd_ctl_open() 103 static int snd_ctl_release(struct inode *inode, struct file *file) in snd_ctl_release() argument 111 ctl = file->private_data; in snd_ctl_release() 112 file->private_data = NULL; in snd_ctl_release() 127 snd_card_file_remove(card, file); in snd_ctl_release() 197 unsigned int access, struct snd_ctl_file *file) in snd_ctl_new() argument [all …]
|
D | timer.c | 1455 static int snd_timer_user_open(struct inode *inode, struct file *file) in snd_timer_user_open() argument 1460 err = stream_open(inode, file); in snd_timer_user_open() 1475 file->private_data = tu; in snd_timer_user_open() 1479 static int snd_timer_user_release(struct inode *inode, struct file *file) in snd_timer_user_release() argument 1483 if (file->private_data) { in snd_timer_user_release() 1484 tu = file->private_data; in snd_timer_user_release() 1485 file->private_data = NULL; in snd_timer_user_release() 1606 static int snd_timer_user_ginfo(struct file *file, in snd_timer_user_ginfo() argument 1673 static int snd_timer_user_gparams(struct file *file, in snd_timer_user_gparams() argument 1683 static int snd_timer_user_gstatus(struct file *file, in snd_timer_user_gstatus() argument [all …]
|
D | hwdep_compat.c | 48 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, in snd_hwdep_ioctl_compat() argument 51 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl_compat() 57 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat() 62 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
D | pcm_native.c | 67 static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream); 1720 struct file *file) in snd_pcm_prepare() argument 1724 if (file) in snd_pcm_prepare() 1725 f_flags = file->f_flags; in snd_pcm_prepare() 1821 struct file *file) in snd_pcm_drain() argument 1837 if (file) { in snd_pcm_drain() 1838 if (file->f_flags & O_NONBLOCK) in snd_pcm_drain() 1960 static bool is_pcm_file(struct file *file) in is_pcm_file() argument 1962 struct inode *inode = file_inode(file); in is_pcm_file() 1990 if (!f.file) in snd_pcm_link() [all …]
|
D | control_compat.c | 315 static int ctl_elem_write_user(struct snd_ctl_file *file, in ctl_elem_write_user() argument 319 struct snd_card *card = file->card; in ctl_elem_write_user() 334 err = snd_ctl_elem_write(card, file, data); in ctl_elem_write_user() 349 static int snd_ctl_elem_write_user_compat(struct snd_ctl_file *file, in snd_ctl_elem_write_user_compat() argument 352 return ctl_elem_write_user(file, data32, &data32->value); in snd_ctl_elem_write_user_compat() 362 static int snd_ctl_elem_write_user_x32(struct snd_ctl_file *file, in snd_ctl_elem_write_user_x32() argument 365 return ctl_elem_write_user(file, data32, &data32->value); in snd_ctl_elem_write_user_x32() 370 static int snd_ctl_elem_add_compat(struct snd_ctl_file *file, in snd_ctl_elem_add_compat() argument 413 err = snd_ctl_elem_add(file, data, replace); in snd_ctl_elem_add_compat() 432 static inline long snd_ctl_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) in snd_ctl_ioctl_compat() argument [all …]
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 326 static int mixer_open(struct inode *inode, struct file *file) in mixer_open() argument 338 static int mixer_release(struct inode *inode, struct file *file) in mixer_release() argument 347 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument 371 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument 376 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl() 547 static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft, in sq_write() argument 673 static __poll_t sq_poll(struct file *file, struct poll_table_struct *wait) in sq_poll() argument 683 if (file->f_mode & FMODE_WRITE ) in sq_poll() 684 poll_wait(file, &write_sq.action_queue, wait); in sq_poll() 685 if (file->f_mode & FMODE_WRITE) in sq_poll() [all …]
|
/sound/firewire/fireface/ |
D | ff-hwdep.c | 54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 60 poll_wait(file, &ff->hwdep_wait, wait); in hwdep_poll() 127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/oxfw/ |
D | oxfw-hwdep.c | 54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 60 poll_wait(file, &oxfw->hwdep_wait, wait); in hwdep_poll() 127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/digi00x/ |
D | digi00x-hwdep.c | 62 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 68 poll_wait(file, &dg00x->hwdep_wait, wait); in hwdep_poll() 135 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 147 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 165 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 168 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/dice/ |
D | dice-hwdep.c | 54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 60 poll_wait(file, &dice->hwdep_wait, wait); in hwdep_poll() 127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/bebob/ |
D | bebob_hwdep.c | 56 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument 61 poll_wait(file, &bebob->hwdep_wait, wait); in hwdep_poll() 132 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 145 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 164 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 167 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/motu/ |
D | motu-hwdep.c | 61 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 67 poll_wait(file, &motu->hwdep_wait, wait); in hwdep_poll() 134 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 146 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 164 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 167 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/pci/hda/ |
D | hda_hwdep.c | 60 static int hda_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, in hda_hwdep_ioctl() argument 78 static int hda_hwdep_ioctl_compat(struct snd_hwdep *hw, struct file *file, in hda_hwdep_ioctl_compat() argument 81 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat() 85 static int hda_hwdep_open(struct snd_hwdep *hw, struct file *file) in hda_hwdep_open() argument
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 127 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 133 poll_wait(file, &tscm->hwdep_wait, wait); in hwdep_poll() 208 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 220 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 240 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 243 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/pci/asihpi/ |
D | hpioctl.h | 17 int asihpi_hpi_release(struct file *file); 19 long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
/sound/firewire/fireworks/ |
D | fireworks_hwdep.c | 187 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument 192 poll_wait(file, &efw->hwdep_wait, wait); in hwdep_poll() 263 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 276 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 295 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 298 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/usb/usx2y/ |
D | us122l.c | 179 static int usb_stream_hwdep_open(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_open() argument 183 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_open() 188 us122l->first = file; in usb_stream_hwdep_open() 199 static int usb_stream_hwdep_release(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_release() argument 203 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_release() 211 if (us122l->first == file) in usb_stream_hwdep_release() 214 if (us122l->master == file) in usb_stream_hwdep_release() 223 struct file *filp, struct vm_area_struct *area) in usb_stream_hwdep_mmap() 262 struct file *file, poll_table *wait) in usb_stream_hwdep_poll() argument 268 poll_wait(file, &us122l->sk.sleep, wait); in usb_stream_hwdep_poll() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_fx.c | 134 snd_wavefront_fx_open (struct snd_hwdep *hw, struct file *file) in snd_wavefront_fx_open() argument 139 file->private_data = hw; in snd_wavefront_fx_open() 144 snd_wavefront_fx_release (struct snd_hwdep *hw, struct file *file) in snd_wavefront_fx_release() argument 152 snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file, in snd_wavefront_fx_ioctl() argument
|