Home
last modified time | relevance | path

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

123

/drivers/isdn/hysdn/
Dhysdn_proclog.c209 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()
Dhysdn_procconf.c243 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/
Dlustre_mds.h68 !(flags & FMODE_WRITE)); in md_should_create()
/drivers/staging/lustre/lustre/llite/
Dfile.c111 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/
Dnvram.c348 ((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()
Dapm-emulation.c373 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in apm_open()
/drivers/char/xillybus/
Dxillybus_core.c1159 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/
Dmtdchar.c72 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()
Dmtdblock.c321 if (mbd->file_mode & FMODE_WRITE) in mtdblock_release()
/drivers/parisc/
Deisa_eeprom.c68 if (file->f_mode & FMODE_WRITE) in eisa_eeprom_open()
/drivers/mtd/devices/
Dblock2mtd.c214 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/
Dtarget_core_iblock.c107 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()
Dtarget_core_pscsi.c390 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/
Dloop.c927 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()
Dswim.c646 if (mode & (FMODE_READ|FMODE_WRITE)) { in floppy_open()
648 if ((mode & FMODE_WRITE) && fs->write_protected) { in floppy_open()
/drivers/md/
Ddm-verity-avb.c136 dev_mode = FMODE_WRITE | FMODE_EXCL; in invalidate_vbmeta()
Ddm-ioctl.c726 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/
Dopenprom.c616 if ((file->f_mode & FMODE_WRITE) == 0) in openprom_ioctl()
651 if ((file->f_mode & FMODE_WRITE) == 0) in openprom_ioctl()
/drivers/ide/
Dide-floppy_ioctl.c263 if (!(mode & FMODE_WRITE)) in ide_floppy_format_ioctl()
Dide-gd.c216 if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) {
/drivers/usb/gadget/function/
Dstorage_common.c210 if (!(filp->f_mode & FMODE_WRITE)) in fsg_lun_open()
/drivers/block/xen-blkback/
Dxenbus.c373 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/
Dcore.c198 if (filp->f_mode & FMODE_WRITE) in rng_dev_open()
/drivers/md/bcache/
Dsuper.c1092 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/
Dblock.c246 if (mode & FMODE_WRITE) { in ubiblock_open()

123