Home
last modified time | relevance | path

Searched refs:FMODE_WRITE (Results 1 – 25 of 164) sorted by relevance

1234567

/linux-5.19.10/tools/perf/tests/
Dbpf-script-test-prologue.c24 #define FMODE_WRITE 0x2 macro
37 if (f_mode & FMODE_WRITE) in bpf_func__null_lseek()
/linux-5.19.10/sound/oss/dmasound/
Ddmasound_core.c679 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/
Damd_hsmp.c274 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/
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-5.19.10/fs/
Dfile_table.c241 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()
Dpipe.c666 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()
Dopen.c178 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/
Dnvram.c364 (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()
Dapm-emulation.c367 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in apm_open()
/linux-5.19.10/fs/afs/
Dfile.c152 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/
Dhostaudio_kern.c193 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/
Dxillybus_core.c1179 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()
Dxillyusb.c1255 ((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/
Ddelegation.c112 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/
Deisa_eeprom.c54 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
/linux-5.19.10/kernel/time/
Dposix-clock.c235 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/
Dmtdchar.c56 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/
Dioctl.c93 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/
Dblock2mtd.c212 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/
Dtrace_recursion_record.c187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
/linux-5.19.10/security/integrity/ima/
Dima_main.c126 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/
Dmsnd.c203 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/
Dfile.c59 if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && in jfs_open()
/linux-5.19.10/fs/ext2/
Dfile.c143 if (filp->f_mode & FMODE_WRITE) { in ext2_release_file()
/linux-5.19.10/drivers/nvme/target/
Dio-cmd-bdev.c55 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
89 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()

1234567