Home
last modified time | relevance | path

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

1234567

/Linux-v6.1/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-v6.1/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-v6.1/drivers/platform/x86/amd/
Dhsmp.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-v6.1/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-v6.1/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()
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/
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-v6.1/fs/
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()
Dfile_table.c243 if ((file->f_mode & FMODE_WRITE) && in alloc_file()
249 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
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()
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/
Dhostaudio_kern.c193 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/
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-v6.1/fs/nfs/
Ddelegation.c112 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/
Deisa_eeprom.c54 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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()
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/
Dtrace_recursion_record.c187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
/Linux-v6.1/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-v6.1/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-v6.1/fs/jfs/
Dfile.c59 if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && in jfs_open()
/Linux-v6.1/fs/ext2/
Dfile.c143 if (filp->f_mode & FMODE_WRITE) { in ext2_release_file()
/Linux-v6.1/drivers/nvme/target/
Dio-cmd-bdev.c54 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
88 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()

1234567