Home
last modified time | relevance | path

Searched refs:FMODE_READ (Results 1 – 25 of 113) sorted by relevance

12345

/Linux-v4.19/drivers/isdn/hysdn/
Dhysdn_procconf.c216 if (!(file->f_mode & FMODE_READ)) in hysdn_conf_read()
243 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_open()
255 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_open()
317 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_close()
327 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_close()
Dhysdn_proclog.c207 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open()
210 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open()
246 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close()
291 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) in hysdn_log_poll()
/Linux-v4.19/fs/
Dfile_table.c200 if ((file->f_mode & FMODE_READ) && in alloc_file()
208 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
285 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in __fput()
Dpipe.c525 if (filp->f_mode & FMODE_READ) { in pipe_poll()
565 if (file->f_mode & FMODE_READ) in pipe_release()
588 if (filp->f_mode & FMODE_READ) in pipe_fasync()
592 if (retval < 0 && (filp->f_mode & FMODE_READ)) in pipe_fasync()
908 filp->f_mode &= (FMODE_READ | FMODE_WRITE); in fifo_open()
911 case FMODE_READ: in fifo_open()
953 case FMODE_READ | FMODE_WRITE: in fifo_open()
Dsplice.c866 if (unlikely(!(in->f_mode & FMODE_READ))) in do_splice_to()
1112 if (!(in->f_mode & FMODE_READ)) in do_splice()
1304 } else if (f.file->f_mode & FMODE_READ) { in vmsplice_type()
1411 if (in.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE6()
1745 if (in.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE4()
/Linux-v4.19/security/integrity/ima/
Dima_crypto.c260 if (!(file->f_mode & FMODE_READ)) { in ima_calc_file_hash_atfm()
261 file->f_mode |= FMODE_READ; in ima_calc_file_hash_atfm()
304 file->f_mode &= ~FMODE_READ; in ima_calc_file_hash_atfm()
360 if (!(file->f_mode & FMODE_READ)) { in ima_calc_file_hash_tfm()
361 file->f_mode |= FMODE_READ; in ima_calc_file_hash_tfm()
382 file->f_mode &= ~FMODE_READ; in ima_calc_file_hash_tfm()
/Linux-v4.19/drivers/s390/block/
Ddasd_genhd.c111 rc = blkdev_get(bdev, FMODE_READ, NULL); in dasd_scan_partitions()
170 blkdev_put(bdev, FMODE_READ); in dasd_destroy_partitions()
/Linux-v4.19/fs/nfs/blocklayout/
Ddev.c38 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device()
246 bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); in bl_parse_simple()
319 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_udev_path()
346 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_dm_mpath_udev_path()
396 blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); in bl_parse_scsi()
/Linux-v4.19/tools/perf/tests/
Dbpf-script-test-prologue.c22 #define FMODE_READ 0x1 macro
/Linux-v4.19/drivers/sbus/char/
Dopenprom.c595 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
611 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
623 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
632 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
/Linux-v4.19/arch/um/drivers/
Dhostaudio_kern.c193 if (file->f_mode & FMODE_READ) in hostaudio_open()
254 if (file->f_mode & FMODE_READ) in hostmixer_open_mixdev()
Drandom.c38 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open()
/Linux-v4.19/fs/nfs/
Dread.c42 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc()
329 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpage()
410 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpages()
Ddelegation.h81 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) && in nfs_have_delegated_attributes()
Dfile.c307 if ((file->f_mode & FMODE_READ) && /* open for read? */ in nfs_want_read_modify_write()
675 if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) in do_getlk()
758 if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) { in do_setlk()
Dnfs4proc.c284 if (!inode || !nfs4_have_delegation(inode, FMODE_READ)) in nfs4_bitmap_copy_adjust()
1157 switch (fmode & (FMODE_READ | FMODE_WRITE)) { in nfs4_map_atomic_open_share()
1158 case FMODE_READ: in nfs4_map_atomic_open_share()
1164 case FMODE_READ|FMODE_WRITE: in nfs4_map_atomic_open_share()
1241 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc()
1340 switch(fmode & (FMODE_READ|FMODE_WRITE)) { in nfs4_mode_match_open_stateid()
1341 case FMODE_READ|FMODE_WRITE: in nfs4_mode_match_open_stateid()
1345 case FMODE_READ: in nfs4_mode_match_open_stateid()
1358 switch (mode & (FMODE_READ|FMODE_WRITE)) { in can_open_cached()
1359 case FMODE_READ: in can_open_cached()
[all …]
/Linux-v4.19/drivers/nvme/target/
Dio-cmd-bdev.c24 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()
42 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
/Linux-v4.19/drivers/char/xillybus/
Dxillybus_core.c1451 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open()
1457 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open()
1479 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1491 if ((filp->f_mode & FMODE_READ) && in xillybus_open()
1505 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1555 if (filp->f_mode & FMODE_READ) in xillybus_open()
1594 if (filp->f_mode & FMODE_READ) { in xillybus_release()
/Linux-v4.19/drivers/mtd/devices/
Dblock2mtd.c209 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device()
222 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
/Linux-v4.19/kernel/power/
Dhibernate.c671 swsusp_close(FMODE_READ); in load_image_and_restore()
879 swsusp_close(FMODE_READ); in software_resume()
908 swsusp_close(FMODE_READ); in software_resume()
/Linux-v4.19/drivers/char/
Dapm-emulation.c367 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
/Linux-v4.19/drivers/tty/
Dtty_jobctrl.c149 if (filp->f_mode & FMODE_READ) in tty_open_proc_set_tty()
379 if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { in tiocsctty()
/Linux-v4.19/drivers/target/
Dtarget_core_iblock.c106 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device()
175 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device()
200 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()
/Linux-v4.19/security/integrity/
Diint.c195 if (!(file->f_mode & FMODE_READ)) in integrity_kernel_read()
/Linux-v4.19/arch/x86/kernel/
Dmsr.c114 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()

12345