Lines Matching refs:FMODE_READ
1268 if (file->f_mode & FMODE_READ) { in it8172_poll()
1275 if (file->f_mode & FMODE_READ) { in it8172_poll()
1381 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in it8172_ioctl()
1419 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1432 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1445 return put_user((file->f_mode & FMODE_READ) ? in it8172_ioctl()
1451 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1477 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1518 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1543 if (file->f_mode & FMODE_READ) in it8172_ioctl()
1558 if (file->f_mode & FMODE_READ && !s->dma_adc.stopped) in it8172_ioctl()
1568 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1601 if (!(file->f_mode & FMODE_READ)) in it8172_ioctl()
1636 if (!(file->f_mode & FMODE_READ)) in it8172_ioctl()
1659 if (!(file->f_mode & FMODE_READ)) in it8172_ioctl()
1690 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1719 if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) || in it8172_ioctl()
1726 if (file->f_mode & FMODE_READ) { in it8172_ioctl()
1741 return put_user((file->f_mode & FMODE_READ) ? in it8172_ioctl()
1745 if (file->f_mode & FMODE_READ) in it8172_ioctl()
1753 if (file->f_mode & FMODE_READ) in it8172_ioctl()
1814 if (file->f_mode & FMODE_READ) { in it8172_open()
1843 s->open_mode |= (file->f_mode & (FMODE_READ | FMODE_WRITE)); in it8172_open()
1863 if (file->f_mode & FMODE_READ) { in it8172_release()
1867 s->open_mode &= ((~file->f_mode) & (FMODE_READ|FMODE_WRITE)); in it8172_release()