Searched refs:open_mode (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/sound/oss/
H A Daudio.c236 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) audio_write()
313 if (!(audio_devs[dev]->open_mode & OPEN_READ)) audio_read()
387 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) audio_ioctl()
397 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) audio_ioctl()
422 if (!(audio_devs[dev]->open_mode & OPEN_READ)) audio_ioctl()
429 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) audio_ioctl()
444 audio_devs[dev]->open_mode == OPEN_READWRITE) audio_ioctl()
487 if (audio_devs[dev]->open_mode != OPEN_READWRITE) audio_ioctl()
494 if (audio_devs[dev]->open_mode & OPEN_WRITE) audio_ioctl()
496 if (audio_devs[dev]->open_mode & OPEN_READ) audio_ioctl()
502 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) audio_ioctl()
756 if (audio_devs[dev]->open_mode & OPEN_WRITE) dma_ioctl()
760 if (audio_devs[dev]->open_mode != OPEN_WRITE || dma_ioctl()
762 audio_devs[dev]->open_mode & OPEN_READ)) dma_ioctl()
771 if (cmd == SNDCTL_DSP_GETISPACE && !(audio_devs[dev]->open_mode & OPEN_READ)) dma_ioctl()
773 if (cmd == SNDCTL_DSP_GETOSPACE && !(audio_devs[dev]->open_mode & OPEN_WRITE)) dma_ioctl()
824 bits &= audio_devs[dev]->open_mode; dma_ioctl()
886 if (!(audio_devs[dev]->open_mode & OPEN_READ)) dma_ioctl()
903 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dma_ioctl()
921 if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dma_ioctl()
950 if (audio_devs[dev]->open_mode & OPEN_WRITE) dma_ioctl()
951 reorganize_buffers(dev, dmap_out, (audio_devs[dev]->open_mode == OPEN_READ)); dma_ioctl()
952 if (audio_devs[dev]->open_mode == OPEN_READ || dma_ioctl()
954 audio_devs[dev]->open_mode & OPEN_READ)) dma_ioctl()
955 reorganize_buffers(dev, dmap_in, (audio_devs[dev]->open_mode == OPEN_READ)); dma_ioctl()
956 if (audio_devs[dev]->open_mode == OPEN_READ) dma_ioctl()
965 if (audio_devs[dev]->open_mode & OPEN_WRITE) dma_ioctl()
969 if (audio_devs[dev]->open_mode == OPEN_READ || dma_ioctl()
971 audio_devs[dev]->open_mode & OPEN_READ)) dma_ioctl()
H A Ddmabuf.c206 dmap->open_mode = mode; open_dmap()
315 adev->open_mode = mode; DMAbuf_open()
329 if (audio_devs[dev]->open_mode & OPEN_WRITE) DMAbuf_reset()
332 if (audio_devs[dev]->open_mode & OPEN_READ) DMAbuf_reset()
487 if (adev->open_mode & OPEN_WRITE) DMAbuf_release()
490 if (adev->open_mode & OPEN_READ){ DMAbuf_release()
494 if (adev->open_mode & OPEN_WRITE) DMAbuf_release()
505 if (adev->open_mode & OPEN_WRITE) DMAbuf_release()
508 if (adev->open_mode == OPEN_READ || DMAbuf_release()
509 (adev->open_mode != OPEN_WRITE && DMAbuf_release()
512 adev->open_mode = 0; DMAbuf_release()
522 if (!(adev->open_mode & OPEN_READ)) DMAbuf_activate_recording()
561 if (!(adev->open_mode & OPEN_READ)) DMAbuf_getrdbuffer()
699 if (adev->open_mode == 0) DMAbuf_start_devices()
1201 if (!(adev->open_mode & OPEN_READ)) poll_input()
1230 if (!(adev->open_mode & OPEN_WRITE)) poll_output()
H A Dpas2_pcm.c43 static int open_mode; variable
223 open_mode = mode; pas_audio_open()
334 state &= open_mode; pas_audio_trigger()
H A Dwaveartist.c101 int open_mode; member in struct:wavnc_info
140 int open_mode; member in struct:wavnc_port_info
386 if (portc->open_mode || (devc->open_mode & mode)) { waveartist_open()
392 devc->open_mode |= mode; waveartist_open()
393 portc->open_mode = mode; waveartist_open()
419 devc->open_mode &= ~portc->open_mode; waveartist_close()
420 portc->open_mode = 0; waveartist_close()
678 if (portc->open_mode & OPEN_WRITE) waveartist_halt()
681 if (portc->open_mode & OPEN_READ) waveartist_halt()
763 if (portc->open_mode & OPEN_READ && waveartist_trigger()
770 if (portc->open_mode & OPEN_WRITE && waveartist_trigger()
1382 devc->open_mode = 0; probe_waveartist()
1400 devc->open_mode = 0; attach_waveartist()
H A Dad1848.c75 int open_mode; member in struct:__anon15229
108 int open_mode; member in struct:ad1848_port_info
979 if (portc->open_mode || (devc->open_mode & mode)) ad1848_open()
992 devc->open_mode |= mode; ad1848_open()
993 portc->open_mode = mode; ad1848_open()
1023 devc->open_mode &= ~portc->open_mode; ad1848_close()
1024 portc->open_mode = 0; ad1848_close()
1313 if (bits & 0x01 && (portc->open_mode & OPEN_WRITE)) ad1848_halt()
1316 if (bits & 0x02 && (portc->open_mode & OPEN_READ)) ad1848_halt()
1405 if (portc->open_mode & OPEN_READ) ad1848_trigger()
1412 if (portc->open_mode & OPEN_WRITE) ad1848_trigger()
1580 devc->open_mode = 0; ad1848_detect()
1960 devc->open_mode = 0; ad1848_init()
2243 if ((devc->open_mode & OPEN_READ) && (devc->audio_mode & PCM_ENABLE_INPUT) && (alt_stat & 0x20)) adintr()
2247 if ((devc->open_mode & OPEN_WRITE) && (devc->audio_mode & PCM_ENABLE_OUTPUT) && adintr()
H A Ddev_table.h106 int open_mode; member in struct:dma_buffparms
216 int open_mode; member in struct:audio_operations
H A Dswarm_cs4297a.c313 fmode_t open_mode; member in struct:cs4297a_state
2392 s->open_mode &= ~FMODE_WRITE; cs4297a_release()
2401 s->open_mode &= ~FMODE_READ; cs4297a_release()
2451 while (s->open_mode & FMODE_WRITE) { cs4297a_locked_open()
2468 while (s->open_mode & FMODE_READ) { cs4297a_locked_open()
2483 s->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); cs4297a_locked_open()
/linux-4.4.14/fs/nfs/
H A Dnfs4proc.c1218 static int can_open_cached(struct nfs4_state *state, fmode_t mode, int open_mode) can_open_cached() argument
1222 if (open_mode & (O_EXCL|O_TRUNC)) can_open_cached()
1480 int open_mode = opendata->o_arg.open_flags; nfs4_try_open_cached() local
1488 if (can_open_cached(state, fmode, open_mode)) { nfs4_try_open_cached()
1505 ret = nfs_may_open(state->inode, state->owner->so_cred, open_mode); nfs4_try_open_cached()

Completed in 196 milliseconds