/Linux-v4.19/drivers/isdn/hysdn/ |
D | hysdn_procconf.c | 216 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()
|
D | hysdn_proclog.c | 207 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/ |
D | file_table.c | 200 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()
|
D | pipe.c | 525 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()
|
D | splice.c | 866 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/ |
D | ima_crypto.c | 260 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/ |
D | dasd_genhd.c | 111 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/ |
D | dev.c | 38 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/ |
D | bpf-script-test-prologue.c | 22 #define FMODE_READ 0x1 macro
|
/Linux-v4.19/drivers/sbus/char/ |
D | openprom.c | 595 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/ |
D | hostaudio_kern.c | 193 if (file->f_mode & FMODE_READ) in hostaudio_open() 254 if (file->f_mode & FMODE_READ) in hostmixer_open_mixdev()
|
D | random.c | 38 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open()
|
/Linux-v4.19/fs/nfs/ |
D | read.c | 42 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()
|
D | delegation.h | 81 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) && in nfs_have_delegated_attributes()
|
D | file.c | 307 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()
|
D | nfs4proc.c | 284 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/ |
D | io-cmd-bdev.c | 24 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/ |
D | xillybus_core.c | 1451 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/ |
D | block2mtd.c | 209 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/ |
D | hibernate.c | 671 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/ |
D | apm-emulation.c | 367 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
|
/Linux-v4.19/drivers/tty/ |
D | tty_jobctrl.c | 149 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/ |
D | target_core_iblock.c | 106 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/ |
D | iint.c | 195 if (!(file->f_mode & FMODE_READ)) in integrity_kernel_read()
|
/Linux-v4.19/arch/x86/kernel/ |
D | msr.c | 114 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
|