/Linux-v6.1/tools/perf/tests/ |
D | bpf-script-test-prologue.c | 24 #define FMODE_WRITE 0x2 macro 37 if (f_mode & FMODE_WRITE) in bpf_func__null_lseek()
|
/Linux-v6.1/sound/oss/dmasound/ |
D | dmasound_core.c | 679 if (file->f_mode & FMODE_WRITE ) in sq_poll() 681 if (file->f_mode & FMODE_WRITE) in sq_poll() 752 #define write_sq_wake_up(file) sq_wake_up(&write_sq, file, FMODE_WRITE) 756 sq_open2(&write_sq, file, FMODE_WRITE, numWriteBufs, writeBufSize ) 882 if (file->f_mode & FMODE_WRITE) { in sq_release() 1010 if (file->f_mode & FMODE_WRITE) { in sq_ioctl() 1031 if (file->f_mode & FMODE_WRITE) { in sq_ioctl() 1108 if (file->f_mode & FMODE_WRITE) { in sq_ioctl() 1120 if (file->f_mode & FMODE_WRITE) { in sq_ioctl()
|
/Linux-v6.1/drivers/platform/x86/amd/ |
D | hsmp.c | 274 switch (fp->f_mode & (FMODE_WRITE | FMODE_READ)) { in hsmp_ioctl() 275 case FMODE_WRITE: in hsmp_ioctl() 291 case FMODE_READ | FMODE_WRITE: in hsmp_ioctl()
|
/Linux-v6.1/drivers/char/ |
D | nvram.c | 364 (file->f_mode & FMODE_WRITE) && (nvram_open_mode & NVRAM_WRITE)) { in nvram_misc_open() 372 if (file->f_mode & FMODE_WRITE) in nvram_misc_open() 390 if (file->f_mode & FMODE_WRITE) in nvram_misc_release()
|
D | apm-emulation.c | 367 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in apm_open()
|
/Linux-v6.1/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() 315 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_path() 376 blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); in bl_parse_scsi()
|
/Linux-v6.1/fs/afs/ |
D | file.c | 152 if (file->f_mode & FMODE_WRITE) { in afs_open() 161 fscache_use_cookie(afs_vnode_cache(vnode), file->f_mode & FMODE_WRITE); in afs_open() 189 if ((file->f_mode & FMODE_WRITE)) in afs_release() 196 if ((file->f_mode & FMODE_WRITE)) { in afs_release()
|
/Linux-v6.1/fs/ |
D | pipe.c | 666 if (filp->f_mode & FMODE_WRITE) in pipe_poll() 685 if (filp->f_mode & FMODE_WRITE) { in pipe_poll() 722 if (file->f_mode & FMODE_WRITE) in pipe_release() 747 if ((filp->f_mode & FMODE_WRITE) && retval >= 0) { in pipe_fasync() 1131 switch (filp->f_mode & (FMODE_READ | FMODE_WRITE)) { in fifo_open() 1154 case FMODE_WRITE: in fifo_open() 1174 case FMODE_READ | FMODE_WRITE: in fifo_open()
|
D | file_table.c | 243 if ((file->f_mode & FMODE_WRITE) && in alloc_file() 249 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
|
D | open.c | 178 if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) in do_sys_ftruncate() 280 if (!(file->f_mode & FMODE_WRITE)) in vfs_fallocate() 845 if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in do_dentry_open() 847 } else if (f->f_mode & FMODE_WRITE && !special_file(inode->i_mode)) { in do_dentry_open() 890 if ((f->f_mode & FMODE_WRITE) && in do_dentry_open() 910 if (f->f_mode & FMODE_WRITE) { in do_dentry_open()
|
/Linux-v6.1/arch/um/drivers/ |
D | hostaudio_kern.c | 193 if (file->f_mode & FMODE_WRITE) in hostaudio_open() 254 if (file->f_mode & FMODE_WRITE) in hostmixer_open_mixdev()
|
/Linux-v6.1/drivers/char/xillybus/ |
D | xillybus_core.c | 1179 if (!(filp->f_mode & FMODE_WRITE)) in xillybus_flush() 1454 if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers)) in xillybus_open() 1465 if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && in xillybus_open() 1485 if (filp->f_mode & FMODE_WRITE) { in xillybus_open() 1498 if ((filp->f_mode & FMODE_WRITE) && in xillybus_open() 1530 if (filp->f_mode & FMODE_WRITE) { in xillybus_open() 1552 if (filp->f_mode & FMODE_WRITE) in xillybus_open() 1575 if (filp->f_mode & FMODE_WRITE) { in xillybus_release()
|
D | xillyusb.c | 1255 ((filp->f_mode & FMODE_WRITE) && !chan->writable)) in xillyusb_open() 1265 if ((filp->f_flags & O_NONBLOCK) && (filp->f_mode & FMODE_WRITE) && in xillyusb_open() 1275 ((filp->f_mode & FMODE_WRITE) && chan->open_for_write)) in xillyusb_open() 1283 if (filp->f_mode & FMODE_WRITE) in xillyusb_open() 1288 if (filp->f_mode & FMODE_WRITE) { in xillyusb_open() 1406 if (filp->f_mode & FMODE_WRITE) in xillyusb_open() 1600 if (!(filp->f_mode & FMODE_WRITE)) in xillyusb_flush() 1732 if (filp->f_mode & FMODE_WRITE) { in xillyusb_release()
|
/Linux-v6.1/fs/nfs/ |
D | delegation.c | 112 flags &= FMODE_READ|FMODE_WRITE; in nfs4_do_check_delegation() 478 !(delegation->type & FMODE_WRITE)) { in nfs_inode_set_delegation() 819 (delegation->type & FMODE_WRITE))) { in nfs4_inode_make_writeable() 902 if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) in nfs_mark_return_unused_delegation_types() 1435 flags &= FMODE_READ|FMODE_WRITE; in nfs4_copy_delegation_stateid() 1470 if (delegation == NULL || !(delegation->type & FMODE_WRITE)) in nfs4_delegation_flush_on_close()
|
/Linux-v6.1/drivers/parisc/ |
D | eisa_eeprom.c | 54 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
|
/Linux-v6.1/kernel/time/ |
D | posix-clock.c | 235 if ((cd.fp->f_mode & FMODE_WRITE) == 0) { in pc_clock_adjtime() 297 if ((cd.fp->f_mode & FMODE_WRITE) == 0) { in pc_clock_settime()
|
/Linux-v6.1/block/ |
D | ioctl.c | 93 if (!(mode & FMODE_WRITE)) in blk_ioctl_discard() 130 if (!(mode & FMODE_WRITE)) in blk_ioctl_secure_erase() 162 if (!(mode & FMODE_WRITE)) in blk_ioctl_zeroout()
|
/Linux-v6.1/drivers/mtd/devices/ |
D | block2mtd.c | 212 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 225 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
/Linux-v6.1/drivers/mtd/ |
D | mtdchar.c | 56 if ((file->f_mode & FMODE_WRITE) && (minor & 1)) in mtdchar_open() 70 if ((file->f_mode & FMODE_WRITE) && !(mtd->flags & MTD_WRITEABLE)) { in mtdchar_open() 99 if ((file->f_mode & FMODE_WRITE)) in mtdchar_close() 869 if (!(file->f_mode & FMODE_WRITE)) in mtdchar_ioctl() 1273 if (!(file->f_mode & FMODE_WRITE)) { in mtdchar_compat_ioctl()
|
/Linux-v6.1/kernel/trace/ |
D | trace_recursion_record.c | 187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
|
/Linux-v6.1/sound/isa/msnd/ |
D | msnd.c | 203 if (!(chip->mode & FMODE_WRITE) || !test_bit(F_WRITING, &chip->flags)) in snd_msnd_dsp_write_flush() 229 if ((file ? file->f_mode : chip->mode) & FMODE_WRITE) { in snd_msnd_dsp_halt() 238 chip->mode &= ~FMODE_WRITE; in snd_msnd_dsp_halt()
|
/Linux-v6.1/security/integrity/ima/ |
D | ima_main.c | 126 if (mode & FMODE_WRITE) { in ima_rdwr_violation_check() 161 if (!(mode & FMODE_WRITE)) in ima_check_last_writer() 389 if (file->f_mode & FMODE_WRITE) in process_measurement()
|
/Linux-v6.1/fs/jfs/ |
D | file.c | 59 if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && in jfs_open()
|
/Linux-v6.1/fs/ext2/ |
D | file.c | 143 if (filp->f_mode & FMODE_WRITE) { in ext2_release_file()
|
/Linux-v6.1/drivers/nvme/target/ |
D | io-cmd-bdev.c | 54 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable() 88 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()
|