Lines Matching refs:FMODE_READ
1291 if (file->f_mode & FMODE_READ) { in au1000_poll()
1299 if (file->f_mode & FMODE_READ) { in au1000_poll()
1423 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in au1000_ioctl()
1460 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1473 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1481 if (s->open_mode & FMODE_READ) in au1000_ioctl()
1488 return put_user((file->f_mode & FMODE_READ) ? in au1000_ioctl()
1496 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1523 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1596 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1619 if (file->f_mode & FMODE_READ) in au1000_ioctl()
1634 if (file->f_mode & FMODE_READ && !s->dma_adc.stopped) in au1000_ioctl()
1644 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1679 if (!(file->f_mode & FMODE_READ)) in au1000_ioctl()
1711 if (!(file->f_mode & FMODE_READ)) in au1000_ioctl()
1734 if (!(file->f_mode & FMODE_READ)) in au1000_ioctl()
1765 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1794 if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) || in au1000_ioctl()
1801 if (file->f_mode & FMODE_READ) { in au1000_ioctl()
1816 return put_user((file->f_mode & FMODE_READ) ? in au1000_ioctl()
1822 if (file->f_mode & FMODE_READ) in au1000_ioctl()
1828 if (file->f_mode & FMODE_READ) in au1000_ioctl()
1879 if (file->f_mode & FMODE_READ) { in au1000_open()
1899 if (file->f_mode & FMODE_READ) { in au1000_open()
1908 s->open_mode |= file->f_mode & (FMODE_READ | FMODE_WRITE); in au1000_open()
1931 if (file->f_mode & FMODE_READ) { in au1000_release()
1935 s->open_mode &= ((~file->f_mode) & (FMODE_READ|FMODE_WRITE)); in au1000_release()