Lines Matching refs:FMODE_READ

209 #define FMODE_MIDI_READ  (FMODE_READ << FMODE_MIDI_SHIFT)
1667 s->ena &= ~FMODE_READ; in stop_adc()
1689 if (!(s->ena & FMODE_READ) && in start_adc()
1728 s->ena |= FMODE_READ; in start_adc()
2012 if (s->ena & FMODE_READ) { in cs4281_update_ptr()
2149 s->ena &= ~FMODE_READ; // not capturing data yet in prog_codec()
3155 } else if (file->f_mode & FMODE_READ) { in cs4281_poll()
3179 } else if (file->f_mode & FMODE_READ) { in cs4281_poll()
3259 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in cs4281_ioctl()
3295 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3315 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3344 else if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3354 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3375 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3397 else if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3417 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3442 else if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3457 if (file->f_mode & s->ena & FMODE_READ) in cs4281_ioctl()
3466 if (file->f_mode & FMODE_READ) { in cs4281_ioctl()
3510 if (!(file->f_mode & FMODE_READ)) in cs4281_ioctl()
3549 if (!(file->f_mode & FMODE_READ)) in cs4281_ioctl()
3629 if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) in cs4281_ioctl()
3636 if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3643 if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3649 if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3655 if (file->f_mode & FMODE_READ) in cs4281_ioctl()
3698 if (file->f_mode & FMODE_READ) { in cs4281_release()
3703 s->open_mode &= ~FMODE_READ; in cs4281_release()
3739 if (!(file->f_mode & (FMODE_WRITE | FMODE_READ))) { in cs4281_open()
3759 if (file->f_mode & FMODE_READ) { in cs4281_open()
3761 while (s->open_mode & FMODE_READ) { in cs4281_open()
3774 s->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); in cs4281_open()
3775 if (file->f_mode & FMODE_READ) { in cs4281_open()
3782 s->ena &= ~FMODE_READ; in cs4281_open()
4035 if (file->f_flags & FMODE_READ) in cs4281_midi_poll()
4038 if (file->f_flags & FMODE_READ) { in cs4281_midi_poll()
4105 if (file->f_mode & FMODE_READ) { in cs4281_midi_open()