Home
last modified time | relevance | path

Searched refs:f_mode (Results 1 – 9 of 9) sorted by relevance

/sound/oss/
Dswarm_cs4297a.c1914 if (file->f_mode & FMODE_WRITE) { in cs4297a_poll()
1922 if (file->f_mode & FMODE_READ) { in cs4297a_poll()
1932 if (file->f_mode & FMODE_WRITE) { in cs4297a_poll()
1946 } else if (file->f_mode & FMODE_READ) { in cs4297a_poll()
1988 mapped = ((file->f_mode & FMODE_WRITE) && s->dma_dac.mapped) || in cs4297a_ioctl()
1989 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in cs4297a_ioctl()
2000 if (file->f_mode & FMODE_WRITE) in cs4297a_ioctl()
2017 if (file->f_mode & FMODE_WRITE) { in cs4297a_ioctl()
2026 if (file->f_mode & FMODE_READ) { in cs4297a_ioctl()
2050 if (file->f_mode & FMODE_READ) { in cs4297a_ioctl()
[all …]
Dsound_config.h117 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()
Dmsnd_pinnacle.c182 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()
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()
290 file->f_mode & FMODE_WRITE) in dsp_ioctl()
292 if (file->f_mode & FMODE_READ) in dsp_ioctl()
315 if (file->f_mode & FMODE_WRITE) in dsp_ioctl()
[all …]
Dvwsnd.c2256 vwsnd_port_t *rport = ((file->f_mode & FMODE_READ) ? in vwsnd_audio_do_read()
2267 vwsnd_port_t *wport = (file->f_mode & FMODE_WRITE) ? in vwsnd_audio_do_read()
2334 vwsnd_port_t *wport = ((file->f_mode & FMODE_WRITE) ? in vwsnd_audio_do_write()
2345 vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? in vwsnd_audio_do_write()
2408 vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? in vwsnd_audio_poll()
2410 vwsnd_port_t *wport = (file->f_mode & FMODE_WRITE) ? in vwsnd_audio_poll()
2437 vwsnd_port_t *rport = (file->f_mode & FMODE_READ) ? in vwsnd_audio_do_ioctl()
2439 vwsnd_port_t *wport = (file->f_mode & FMODE_WRITE) ? in vwsnd_audio_do_ioctl()
2938 while (devc->open_mode & file->f_mode) { in vwsnd_audio_open()
2953 devc->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); in vwsnd_audio_open()
[all …]
/sound/oss/dmasound/
Ddmasound_core.c670 if (file->f_mode & FMODE_WRITE ) in sq_poll()
672 if (file->f_mode & FMODE_WRITE) in sq_poll()
691 if (file->f_mode & mode) {
703 if (file->f_mode & mode) { in sq_open2()
765 if (file->f_mode & FMODE_READ) { in sq_open()
772 dmasound.mach.sq_open(file->f_mode); in sq_open()
875 if (file->f_mode & FMODE_WRITE) { in sq_release()
884 if (file->f_mode & shared_resource_owner) { /* it's us that has them */ in sq_release()
1005 if (file->f_mode & FMODE_WRITE) { in sq_ioctl()
1027 if (file->f_mode & FMODE_WRITE) { in sq_ioctl()
[all …]
/sound/isa/msnd/
Dmsnd.c230 if ((file ? file->f_mode : chip->mode) & FMODE_READ) { in snd_msnd_dsp_halt()
241 if ((file ? file->f_mode : chip->mode) & FMODE_WRITE) { in snd_msnd_dsp_halt()
/sound/core/oss/
Dpcm_oss.c2321 fmode_t f_mode = file->f_mode; in snd_pcm_oss_open_file() local
2330 if ((f_mode & (FMODE_WRITE|FMODE_READ)) == (FMODE_WRITE|FMODE_READ) && in snd_pcm_oss_open_file()
2332 f_mode = FMODE_WRITE; in snd_pcm_oss_open_file()
2341 if (! (f_mode & FMODE_WRITE)) in snd_pcm_oss_open_file()
2344 if (! (f_mode & FMODE_READ)) in snd_pcm_oss_open_file()
2414 if (file->f_mode & FMODE_WRITE) in snd_pcm_oss_open()
2417 if (file->f_mode & FMODE_READ) in snd_pcm_oss_open()
/sound/core/
Drawmidi.c71 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_rawmidi_file_flags()
/sound/core/seq/
Dseq_clientmgr.c107 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_seq_file_flags()