/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); 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() [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() 152 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) in insert_queue() 185 snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait) in snd_seq_oss_poll() argument 191 if (snd_seq_oss_readq_poll(dp->readq, file, wait)) in snd_seq_oss_poll() 197 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() 79 static long __snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in __snd_timer_user_ioctl_compat() argument 101 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp, true); in __snd_timer_user_ioctl_compat() 103 return snd_timer_user_gparams_compat(file, argp); in __snd_timer_user_ioctl_compat() 105 return snd_timer_user_info_compat(file, argp); in __snd_timer_user_ioctl_compat() 107 return snd_timer_user_status32(file, argp); in __snd_timer_user_ioctl_compat() 109 return snd_timer_user_status64(file, argp); in __snd_timer_user_ioctl_compat() 114 static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in snd_timer_user_ioctl_compat() argument [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 | 104 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument 110 data = file->private_data; in snd_info_entry_llseek() 116 file, offset, orig); in snd_info_entry_llseek() 125 offset += file->f_pos; in snd_info_entry_llseek() 139 file->f_pos = offset; in snd_info_entry_llseek() 146 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer, in snd_info_entry_read() argument 149 struct snd_info_private_data *data = file->private_data; in snd_info_entry_read() 162 file, buffer, size, pos); in snd_info_entry_read() 168 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer, in snd_info_entry_write() argument 171 struct snd_info_private_data *data = file->private_data; in snd_info_entry_write() [all …]
|
D | init.c | 26 struct file *file; member 398 static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) in snd_disconnect_llseek() argument 403 static ssize_t snd_disconnect_read(struct file *file, char __user *buf, in snd_disconnect_read() argument 409 static ssize_t snd_disconnect_write(struct file *file, const char __user *buf, in snd_disconnect_write() argument 415 static int snd_disconnect_release(struct inode *inode, struct file *file) in snd_disconnect_release() argument 421 if (_df->file == file) { in snd_disconnect_release() 430 if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync) in snd_disconnect_release() 431 df->disconnected_f_op->fasync(-1, file, 0); in snd_disconnect_release() 432 return df->disconnected_f_op->release(inode, file); in snd_disconnect_release() 435 panic("%s(%p, %p) failed!", __func__, inode, file); in snd_disconnect_release() [all …]
|
D | timer.c | 1487 static int snd_timer_user_open(struct inode *inode, struct file *file) in snd_timer_user_open() argument 1492 err = stream_open(inode, file); in snd_timer_user_open() 1507 file->private_data = tu; in snd_timer_user_open() 1511 static int snd_timer_user_release(struct inode *inode, struct file *file) in snd_timer_user_release() argument 1515 if (file->private_data) { in snd_timer_user_release() 1516 tu = file->private_data; in snd_timer_user_release() 1517 file->private_data = NULL; in snd_timer_user_release() 1641 static int snd_timer_user_ginfo(struct file *file, in snd_timer_user_ginfo() argument 1708 static int snd_timer_user_gparams(struct file *file, in snd_timer_user_gparams() argument 1718 static int snd_timer_user_gstatus(struct file *file, in snd_timer_user_gstatus() argument [all …]
|
D | jack.c | 172 static ssize_t sw_inject_enable_read(struct file *file, in sw_inject_enable_read() argument 175 struct snd_jack_kctl *jack_kctl = file->private_data; in sw_inject_enable_read() 186 static ssize_t sw_inject_enable_write(struct file *file, in sw_inject_enable_write() argument 189 struct snd_jack_kctl *jack_kctl = file->private_data; in sw_inject_enable_write() 210 static ssize_t jackin_inject_write(struct file *file, in jackin_inject_write() argument 213 struct snd_jack_kctl *jack_kctl = file->private_data; in jackin_inject_write() 231 static ssize_t jack_kctl_id_read(struct file *file, in jack_kctl_id_read() argument 234 struct snd_jack_kctl *jack_kctl = file->private_data; in jack_kctl_id_read() 269 static ssize_t jack_kctl_mask_bits_read(struct file *file, in jack_kctl_mask_bits_read() argument 272 struct snd_jack_kctl *jack_kctl = file->private_data; in jack_kctl_mask_bits_read() [all …]
|
D | control.c | 42 static int snd_ctl_open(struct inode *inode, struct file *file) in snd_ctl_open() argument 49 err = stream_open(inode, file); in snd_ctl_open() 58 err = snd_card_file_add(card, file); in snd_ctl_open() 79 file->private_data = ctl; in snd_ctl_open() 89 snd_card_file_remove(card, file); in snd_ctl_open() 110 static int snd_ctl_release(struct inode *inode, struct file *file) in snd_ctl_release() argument 118 ctl = file->private_data; in snd_ctl_release() 119 file->private_data = NULL; in snd_ctl_release() 135 snd_card_file_remove(card, file); in snd_ctl_release() 231 unsigned int access, struct snd_ctl_file *file) in snd_ctl_new() argument [all …]
|
D | hwdep_compat.c | 39 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, in snd_hwdep_ioctl_compat() argument 42 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl_compat() 48 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat() 53 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 324 static int mixer_open(struct inode *inode, struct file *file) in mixer_open() argument 336 static int mixer_release(struct inode *inode, struct file *file) in mixer_release() argument 345 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument 369 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument 374 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl() 543 static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft, in sq_write() argument 669 static __poll_t sq_poll(struct file *file, struct poll_table_struct *wait) in sq_poll() argument 679 if (file->f_mode & FMODE_WRITE ) in sq_poll() 680 poll_wait(file, &write_sq.action_queue, wait); in sq_poll() 681 if (file->f_mode & FMODE_WRITE) in sq_poll() [all …]
|
/sound/firewire/bebob/ |
D | bebob_hwdep.c | 53 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument 58 poll_wait(file, &bebob->hwdep_wait, wait); in hwdep_poll() 129 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 142 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 161 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 164 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/oxfw/ |
D | oxfw-hwdep.c | 52 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 58 poll_wait(file, &oxfw->hwdep_wait, wait); in hwdep_poll() 125 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 137 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 155 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 158 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/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/fireface/ |
D | ff-hwdep.c | 52 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 58 poll_wait(file, &ff->hwdep_wait, wait); in hwdep_poll() 125 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 137 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 155 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 158 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/soc/sof/ |
D | debug.c | 99 static ssize_t probe_points_read(struct file *file, in probe_points_read() argument 102 struct snd_sof_dfsentry *dfse = file->private_data; in probe_points_read() 139 static ssize_t probe_points_write(struct file *file, in probe_points_write() argument 142 struct snd_sof_dfsentry *dfse = file->private_data; in probe_points_write() 180 static ssize_t probe_points_remove_write(struct file *file, in probe_points_remove_write() argument 183 struct snd_sof_dfsentry *dfse = file->private_data; in probe_points_remove_write() 339 static ssize_t sof_dfsentry_write(struct file *file, const char __user *buffer, in sof_dfsentry_write() argument 343 struct snd_sof_dfsentry *dfse = file->private_data; in sof_dfsentry_write() 370 dentry = file->f_path.dentry; in sof_dfsentry_write() 438 static ssize_t sof_dfsentry_read(struct file *file, char __user *buffer, in sof_dfsentry_read() argument [all …]
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 129 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 135 poll_wait(file, &tscm->hwdep_wait, wait); in hwdep_poll() 210 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 222 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 242 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 245 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 | 188 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument 193 poll_wait(file, &efw->hwdep_wait, wait); in hwdep_poll() 264 hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 277 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 296 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 299 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/usb/usx2y/ |
D | us122l.c | 153 static int usb_stream_hwdep_open(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_open() argument 158 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_open() 163 us122l->first = file; in usb_stream_hwdep_open() 174 static int usb_stream_hwdep_release(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_release() argument 179 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_release() 187 if (us122l->first == file) in usb_stream_hwdep_release() 190 if (us122l->master == file) in usb_stream_hwdep_release() 199 struct file *filp, struct vm_area_struct *area) in usb_stream_hwdep_mmap() 238 struct file *file, poll_table *wait) in usb_stream_hwdep_poll() argument 244 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
|