/drivers/isdn/hysdn/ |
D | hysdn_proclog.c | 209 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open() 212 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open() 248 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close() 293 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) in hysdn_log_poll()
|
D | hysdn_procconf.c | 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()
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_mds.h | 68 !(flags & FMODE_WRITE)); in md_should_create()
|
/drivers/staging/lustre/lustre/llite/ |
D | file.c | 111 if (!(och->och_flags & FMODE_WRITE)) in ll_prepare_close() 209 S_ISREG(inode->i_mode) && (och->och_flags & FMODE_WRITE)) { in ll_close_inode_openhandle() 230 if (fmode & FMODE_WRITE) { in ll_md_real_close() 301 if (fd->fd_omode & FMODE_WRITE) { in ll_md_close() 410 if (itp->it_flags & FMODE_WRITE) in ll_intent_file_open() 512 fd->fd_omode = it->it_flags & (FMODE_READ | FMODE_WRITE | FMODE_EXEC); in ll_local_open() 575 oit.it_flags |= FMODE_WRITE; in ll_file_open() 581 if (oit.it_flags & (FMODE_WRITE | FMODE_READ)) in ll_file_open() 599 if (it->it_flags & FMODE_WRITE) { in ll_file_open() 682 (file->f_mode & FMODE_WRITE) == 0)) { in ll_file_open() [all …]
|
/drivers/char/ |
D | nvram.c | 348 ((file->f_mode & FMODE_WRITE) && (nvram_open_mode & NVRAM_WRITE))) { in nvram_open() 355 if (file->f_mode & FMODE_WRITE) in nvram_open() 373 if (file->f_mode & FMODE_WRITE) in nvram_release()
|
D | apm-emulation.c | 373 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in apm_open()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 1159 if (!(filp->f_mode & FMODE_WRITE)) in xillybus_flush() 1452 if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers)) in xillybus_open() 1463 if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && in xillybus_open() 1483 if (filp->f_mode & FMODE_WRITE) { in xillybus_open() 1496 if ((filp->f_mode & FMODE_WRITE) && in xillybus_open() 1528 if (filp->f_mode & FMODE_WRITE) { in xillybus_open() 1550 if (filp->f_mode & FMODE_WRITE) in xillybus_open() 1573 if (filp->f_mode & FMODE_WRITE) { in xillybus_release()
|
/drivers/mtd/ |
D | mtdchar.c | 72 if ((file->f_mode & FMODE_WRITE) && (minor & 1)) in mtdchar_open() 89 if ((file->f_mode & FMODE_WRITE) && !(mtd->flags & MTD_WRITEABLE)) { in mtdchar_open() 121 if ((file->f_mode & FMODE_WRITE)) in mtdchar_close() 642 if (!(file->f_mode & FMODE_WRITE)) in mtdchar_ioctl() 1064 if (!(file->f_mode & FMODE_WRITE)) { in mtdchar_compat_ioctl()
|
D | mtdblock.c | 321 if (mbd->file_mode & FMODE_WRITE) in mtdblock_release()
|
/drivers/parisc/ |
D | eisa_eeprom.c | 68 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
|
/drivers/mtd/devices/ |
D | block2mtd.c | 214 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 227 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
/drivers/target/ |
D | target_core_iblock.c | 107 mode |= FMODE_WRITE; in iblock_configure_device() 170 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device() 191 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_free_device()
|
D | target_core_pscsi.c | 390 FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); in pscsi_create_type_disk() 400 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk() 580 FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_free_device()
|
/drivers/block/ |
D | loop.c | 927 if (!(file->f_mode & FMODE_WRITE) || !(mode & FMODE_WRITE) || in loop_set_fd() 1431 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl() 1440 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl() 1449 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl() 1454 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl() 1459 if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) in lo_ioctl()
|
D | swim.c | 646 if (mode & (FMODE_READ|FMODE_WRITE)) { in floppy_open() 648 if ((mode & FMODE_WRITE) && fs->write_protected) { in floppy_open()
|
/drivers/md/ |
D | dm-verity-avb.c | 136 dev_mode = FMODE_WRITE | FMODE_EXCL; in invalidate_vbmeta()
|
D | dm-ioctl.c | 726 if (!(dm_table_get_mode(table) & FMODE_WRITE)) in __dev_status() 1040 if (dm_table_get_mode(new_map) & FMODE_WRITE) in do_resume() 1212 fmode_t mode = FMODE_READ | FMODE_WRITE; in get_mode()
|
/drivers/sbus/char/ |
D | openprom.c | 616 if ((file->f_mode & FMODE_WRITE) == 0) in openprom_ioctl() 651 if ((file->f_mode & FMODE_WRITE) == 0) in openprom_ioctl()
|
/drivers/ide/ |
D | ide-floppy_ioctl.c | 263 if (!(mode & FMODE_WRITE)) in ide_floppy_format_ioctl()
|
D | ide-gd.c | 216 if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) {
|
/drivers/usb/gadget/function/ |
D | storage_common.c | 210 if (!(filp->f_mode & FMODE_WRITE)) in fsg_lun_open()
|
/drivers/block/xen-blkback/ |
D | xenbus.c | 373 blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); in xen_vbd_free() 393 FMODE_READ : FMODE_WRITE, NULL); in xen_vbd_create()
|
/drivers/char/hw_random/ |
D | core.c | 198 if (filp->f_mode & FMODE_WRITE) in rng_dev_open()
|
/drivers/md/bcache/ |
D | super.c | 1092 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free() 1840 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release() 2000 FMODE_READ|FMODE_WRITE|FMODE_EXCL, in register_bcache() 2052 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_bcache()
|
/drivers/mtd/ubi/ |
D | block.c | 246 if (mode & FMODE_WRITE) { in ubiblock_open()
|