/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/platform/x86/ |
D | amd_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-5.19.10/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-5.19.10/fs/ |
D | file_table.c | 241 if ((file->f_mode & FMODE_WRITE) && in alloc_file() 246 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file() 324 if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in __fput()
|
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 | 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() 813 if (f->f_mode & FMODE_WRITE && !special_file(inode->i_mode)) { in do_dentry_open() 853 if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in do_dentry_open() 858 if ((f->f_mode & FMODE_WRITE) && in do_dentry_open() 875 if (f->f_mode & FMODE_WRITE) { in do_dentry_open()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/fs/nfs/ |
D | delegation.c | 112 flags &= FMODE_READ|FMODE_WRITE; in nfs4_do_check_delegation() 480 !(delegation->type & FMODE_WRITE)) { in nfs_inode_set_delegation() 821 (delegation->type & FMODE_WRITE))) { in nfs4_inode_make_writeable() 904 if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) in nfs_mark_return_unused_delegation_types() 1437 flags &= FMODE_READ|FMODE_WRITE; in nfs4_copy_delegation_stateid() 1472 if (delegation == NULL || !(delegation->type & FMODE_WRITE)) in nfs4_delegation_flush_on_close()
|
/linux-5.19.10/drivers/parisc/ |
D | eisa_eeprom.c | 54 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
|
/linux-5.19.10/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-5.19.10/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() 734 if (!(file->f_mode & FMODE_WRITE)) in mtdchar_ioctl() 1131 if (!(file->f_mode & FMODE_WRITE)) { in mtdchar_compat_ioctl()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/kernel/trace/ |
D | trace_recursion_record.c | 187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/fs/jfs/ |
D | file.c | 59 if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && in jfs_open()
|
/linux-5.19.10/fs/ext2/ |
D | file.c | 143 if (filp->f_mode & FMODE_WRITE) { in ext2_release_file()
|
/linux-5.19.10/drivers/nvme/target/ |
D | io-cmd-bdev.c | 55 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable() 89 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()
|