/sound/oss/ |
D | sound_calls.h | 23 unsigned int DMAbuf_poll(struct file *file, int dev, poll_table *wait); 32 int audio_read (int dev, struct file *file, char __user *buf, int count); 33 int audio_write (int dev, struct file *file, const char __user *buf, int count); 34 int audio_open (int dev, struct file *file); 35 void audio_release (int dev, struct file *file); 36 int audio_ioctl (int dev, struct file *file, 45 int sequencer_read (int dev, struct file *file, char __user *buf, int count); 46 int sequencer_write (int dev, struct file *file, const char __user *buf, int count); 47 int sequencer_open (int dev, struct file *file); 48 void sequencer_release (int dev, struct file *file); [all …]
|
D | soundcard.c | 144 static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in sound_read() argument 146 int dev = iminor(file_inode(file)); in sound_read() 161 ret = audio_read(dev, file, buf, count); in sound_read() 166 ret = sequencer_read(dev, file, buf, count); in sound_read() 170 ret = MIDIbuf_read(dev, file, buf, count); in sound_read() 176 static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in sound_write() argument 178 int dev = iminor(file_inode(file)); in sound_write() 185 ret = sequencer_write(dev, file, buf, count); in sound_write() 191 ret = audio_write(dev, file, buf, count); in sound_write() 195 ret = MIDIbuf_write(dev, file, buf, count); in sound_write() [all …]
|
D | swarm_cs4297a.c | 1546 static int cs4297a_open_mixdev(struct inode *inode, struct file *file) in cs4297a_open_mixdev() argument 1571 file->private_data = s; in cs4297a_open_mixdev() 1577 return nonseekable_open(inode, file); in cs4297a_open_mixdev() 1581 static int cs4297a_release_mixdev(struct inode *inode, struct file *file) in cs4297a_release_mixdev() argument 1584 (struct cs4297a_state *) file->private_data; in cs4297a_release_mixdev() 1591 static int cs4297a_ioctl_mixdev(struct file *file, in cs4297a_ioctl_mixdev() argument 1596 ret = mixer_ioctl((struct cs4297a_state *) file->private_data, cmd, in cs4297a_ioctl_mixdev() 1664 static ssize_t cs4297a_read(struct file *file, char *buffer, size_t count, in cs4297a_read() argument 1668 (struct cs4297a_state *) file->private_data; in cs4297a_read() 1743 if (file->f_flags & O_NONBLOCK) in cs4297a_read() [all …]
|
D | midibuf.c | 155 int MIDIbuf_open(int dev, struct file *file) in MIDIbuf_open() argument 160 mode = translate_mode(file); in MIDIbuf_open() 214 void MIDIbuf_release(int dev, struct file *file) in MIDIbuf_release() argument 219 mode = translate_mode(file); in MIDIbuf_release() 259 int MIDIbuf_write(int dev, struct file *file, const char __user *buf, int count) in MIDIbuf_write() argument 279 if (file->f_flags & O_NONBLOCK) { in MIDIbuf_write() 313 int MIDIbuf_read(int dev, struct file *file, char __user *buf, int count) in MIDIbuf_read() argument 323 if (file->f_flags & O_NONBLOCK) { in MIDIbuf_read() 362 int MIDIbuf_ioctl(int dev, struct file *file, in MIDIbuf_ioctl() argument 398 unsigned int MIDIbuf_poll(int dev, struct file *file, poll_table * wait) in MIDIbuf_poll() argument [all …]
|
D | msnd_pinnacle.c | 163 static int dsp_set_format(struct file *file, int val) in dsp_set_format() argument 182 if (file->f_mode & FMODE_WRITE) in dsp_set_format() 184 if (file->f_mode & FMODE_READ) in dsp_set_format() 187 if (file->f_mode & FMODE_WRITE) in dsp_set_format() 189 if (file->f_mode & FMODE_READ) in dsp_set_format() 204 static int dsp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in dsp_ioctl() argument 229 if (!(file->f_mode & FMODE_WRITE)) in dsp_ioctl() 240 if (!(file->f_mode & FMODE_READ)) in dsp_ioctl() 275 if (file->f_mode & FMODE_WRITE) in dsp_ioctl() 278 : dsp_set_format(file, val); in dsp_ioctl() [all …]
|
D | sound_config.h | 113 static inline int translate_mode(struct file *file) in translate_mode() argument 117 return (__force int)(file->f_mode & (FMODE_READ | FMODE_WRITE)); in translate_mode() 119 return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) | in translate_mode() 120 ((file->f_mode & FMODE_WRITE) ? OPEN_WRITE : 0); in translate_mode()
|
/sound/core/seq/oss/ |
D | seq_oss.c | 56 static int odev_open(struct inode *inode, struct file *file); 57 static int odev_release(struct inode *inode, struct file *file); 58 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset); 59 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset); 60 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 61 static unsigned int odev_poll(struct file *file, poll_table * wait); 127 odev_open(struct inode *inode, struct file *file) in odev_open() argument 137 rc = snd_seq_oss_open(file, level); in odev_open() 144 odev_release(struct inode *inode, struct file *file) in odev_release() argument 148 if ((dp = file->private_data) == NULL) in odev_release() [all …]
|
/sound/core/ |
D | timer_compat.c | 35 static int snd_timer_user_info_compat(struct file *file, in snd_timer_user_info_compat() argument 42 tu = file->private_data; in snd_timer_user_info_compat() 69 static int snd_timer_user_status_compat(struct file *file, in snd_timer_user_status_compat() argument 75 tu = file->private_data; in snd_timer_user_status_compat() 94 #define snd_timer_user_status_x32(file, s) \ argument 95 snd_timer_user_status(file, s) 109 static long __snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in __snd_timer_user_ioctl_compat() argument 131 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp); in __snd_timer_user_ioctl_compat() 133 return snd_timer_user_info_compat(file, argp); in __snd_timer_user_ioctl_compat() 135 return snd_timer_user_status_compat(file, argp); in __snd_timer_user_ioctl_compat() [all …]
|
D | hwdep.c | 56 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument 58 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() 60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 64 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument 67 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() 73 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument 76 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() 82 static int snd_hwdep_open(struct inode *inode, struct file * file) in snd_hwdep_open() argument 119 err = hw->ops.open(hw, file); in snd_hwdep_open() 123 if (file->f_flags & O_NONBLOCK) { in snd_hwdep_open() [all …]
|
D | info.c | 120 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument 126 data = file->private_data; in snd_info_entry_llseek() 132 file, offset, orig); in snd_info_entry_llseek() 141 offset += file->f_pos; in snd_info_entry_llseek() 155 file->f_pos = offset; in snd_info_entry_llseek() 162 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer, in snd_info_entry_read() argument 165 struct snd_info_private_data *data = file->private_data; in snd_info_entry_read() 178 file, buffer, size, pos); in snd_info_entry_read() 184 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer, in snd_info_entry_write() argument 187 struct snd_info_private_data *data = file->private_data; in snd_info_entry_write() [all …]
|
D | init.c | 39 struct file *file; member 305 static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) in snd_disconnect_llseek() argument 310 static ssize_t snd_disconnect_read(struct file *file, char __user *buf, in snd_disconnect_read() argument 316 static ssize_t snd_disconnect_write(struct file *file, const char __user *buf, in snd_disconnect_write() argument 322 static int snd_disconnect_release(struct inode *inode, struct file *file) in snd_disconnect_release() argument 328 if (_df->file == file) { in snd_disconnect_release() 337 if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync) in snd_disconnect_release() 338 df->disconnected_f_op->fasync(-1, file, 0); in snd_disconnect_release() 339 return df->disconnected_f_op->release(inode, file); in snd_disconnect_release() 342 panic("%s(%p, %p) failed!", __func__, inode, file); in snd_disconnect_release() [all …]
|
D | control.c | 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 [all …]
|
D | timer.c | 1329 static int snd_timer_user_open(struct inode *inode, struct file *file) in snd_timer_user_open() argument 1334 err = nonseekable_open(inode, file); in snd_timer_user_open() 1352 file->private_data = tu; in snd_timer_user_open() 1356 static int snd_timer_user_release(struct inode *inode, struct file *file) in snd_timer_user_release() argument 1360 if (file->private_data) { in snd_timer_user_release() 1361 tu = file->private_data; in snd_timer_user_release() 1362 file->private_data = NULL; in snd_timer_user_release() 1488 static int snd_timer_user_ginfo(struct file *file, in snd_timer_user_ginfo() argument 1530 static int snd_timer_user_gparams(struct file *file, in snd_timer_user_gparams() argument 1559 static int snd_timer_user_gstatus(struct file *file, in snd_timer_user_gstatus() argument [all …]
|
D | hwdep_compat.c | 62 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, in snd_hwdep_ioctl_compat() argument 65 struct snd_hwdep *hw = file->private_data; in snd_hwdep_ioctl_compat() 71 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat() 76 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
D | pcm_native.c | 69 static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream); 1567 struct file *file) in snd_pcm_prepare() argument 1573 if (file) in snd_pcm_prepare() 1574 f_flags = file->f_flags; in snd_pcm_prepare() 1665 struct file *file) in snd_pcm_drain() argument 1689 if (file) { in snd_pcm_drain() 1690 if (file->f_flags & O_NONBLOCK) in snd_pcm_drain() 1808 static bool is_pcm_file(struct file *file) in is_pcm_file() argument 1810 struct inode *inode = file_inode(file); in is_pcm_file() 1831 if (!f.file) in snd_pcm_link() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 325 static int mixer_open(struct inode *inode, struct file *file) in mixer_open() argument 337 static int mixer_release(struct inode *inode, struct file *file) in mixer_release() argument 346 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument 370 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument 375 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl() 546 static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft, in sq_write() argument 672 static unsigned int sq_poll(struct file *file, struct poll_table_struct *wait) in sq_poll() argument 682 if (file->f_mode & FMODE_WRITE ) in sq_poll() 683 poll_wait(file, &write_sq.action_queue, wait); in sq_poll() 684 if (file->f_mode & FMODE_WRITE) in sq_poll() [all …]
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 53 static unsigned int hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 59 poll_wait(file, &tscm->hwdep_wait, wait); in hwdep_poll() 126 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 138 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 156 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 159 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/dice/ |
D | dice-hwdep.c | 55 static unsigned int hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 61 poll_wait(file, &dice->hwdep_wait, wait); in hwdep_poll() 128 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 140 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 158 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 161 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/oxfw/ |
D | oxfw-hwdep.c | 55 static unsigned int hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 61 poll_wait(file, &oxfw->hwdep_wait, wait); in hwdep_poll() 128 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 140 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 158 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 161 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/firewire/digi00x/ |
D | digi00x-hwdep.c | 63 static unsigned int hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument 69 poll_wait(file, &dg00x->hwdep_wait, wait); in hwdep_poll() 136 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument 148 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument 166 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument 169 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
|
/sound/core/seq/ |
D | seq_clientmgr.h | 34 struct file *file; /* file struct of client */ member 97 struct file *file, int atomic, int hop); 98 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait);
|
/sound/pci/hda/ |
D | hda_hwdep.c | 73 static int hda_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, in hda_hwdep_ioctl() argument 91 static int hda_hwdep_ioctl_compat(struct snd_hwdep *hw, struct file *file, in hda_hwdep_ioctl_compat() argument 94 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat() 98 static int hda_hwdep_open(struct snd_hwdep *hw, struct file *file) in hda_hwdep_open() argument
|
/sound/soc/codecs/ |
D | wm_adsp.c | 219 const char *file; member 221 [WM_ADSP_FW_MBC_VSS] = { .file = "mbc-vss" }, 222 [WM_ADSP_FW_TX] = { .file = "tx" }, 223 [WM_ADSP_FW_TX_SPK] = { .file = "tx-spk" }, 224 [WM_ADSP_FW_RX_ANC] = { .file = "rx-anc" }, 283 static ssize_t wm_adsp_debugfs_wmfw_read(struct file *file, in wm_adsp_debugfs_wmfw_read() argument 287 struct wm_adsp *dsp = file->private_data; in wm_adsp_debugfs_wmfw_read() 303 static ssize_t wm_adsp_debugfs_bin_read(struct file *file, in wm_adsp_debugfs_bin_read() argument 307 struct wm_adsp *dsp = file->private_data; in wm_adsp_debugfs_bin_read() 1064 char *file, *text = NULL; in wm_adsp_load() local [all …]
|
/sound/pci/asihpi/ |
D | hpioctl.h | 28 int asihpi_hpi_release(struct file *file); 30 long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|