/drivers/isdn/hysdn/ |
D | hysdn_procconf.c | 216 if (!(file->f_mode & FMODE_READ)) in hysdn_conf_read() 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()
|
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()
|
/drivers/md/ |
D | dm-android-verity.c | 292 bdev = blkdev_get_by_dev(dev, FMODE_READ, NULL); in extract_fec_header() 338 blkdev_put(bdev, FMODE_READ); in extract_fec_header() 359 bdev = blkdev_get_by_dev(dev, FMODE_READ, NULL); in find_size() 369 blkdev_put(bdev, FMODE_READ); in find_size() 411 bdev = blkdev_get_by_dev(dev, FMODE_READ, NULL); in extract_metadata() 539 blkdev_put(bdev, FMODE_READ); in extract_metadata()
|
D | dm-verity-target.c | 874 if ((dm_table_get_mode(ti->table) & ~FMODE_READ)) { in verity_ctr() 894 r = dm_get_device(ti, argv[1], FMODE_READ, &v->data_dev); in verity_ctr() 900 r = dm_get_device(ti, argv[2], FMODE_READ, &v->hash_dev); in verity_ctr()
|
D | dm-era-target.c | 1445 r = dm_get_device(ti, argv[0], FMODE_READ | FMODE_WRITE, &era->metadata_dev); in era_ctr() 1452 r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &era->origin_dev); in era_ctr()
|
D | dm-ioctl.c | 1209 fmode_t mode = FMODE_READ | FMODE_WRITE; in get_mode() 1212 mode = FMODE_READ; in get_mode()
|
D | dm-verity-fec.c | 632 r = dm_get_device(ti, arg_value, FMODE_READ, &v->fec->dev); in verity_fec_parse_opt_args()
|
D | dm-cache-target.c | 1940 r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, in parse_metadata_dev() 1963 r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, in parse_cache_dev() 1982 r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE, in parse_origin_dev()
|
D | dm-thin.c | 2514 metadata_mode = FMODE_READ | ((pf.mode == PM_READ_ONLY) ? 0 : FMODE_WRITE); in pool_ctr() 2522 r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &data_dev); in pool_ctr() 3324 r = dm_get_device(ti, argv[2], FMODE_READ, &origin_dev); in thin_ctr()
|
/drivers/s390/block/ |
D | dasd_genhd.c | 104 if (!bdev || blkdev_get(bdev, FMODE_READ, NULL) < 0) in dasd_scan_partitions() 157 blkdev_put(bdev, FMODE_READ); in dasd_destroy_partitions()
|
/drivers/sbus/char/ |
D | openprom.c | 609 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 625 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 637 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl() 646 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
|
/drivers/char/xillybus/ |
D | xillybus_core.c | 1447 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open() 1453 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open() 1475 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1487 if ((filp->f_mode & FMODE_READ) && in xillybus_open() 1501 if (filp->f_mode & FMODE_READ) { in xillybus_open() 1551 if (filp->f_mode & FMODE_READ) in xillybus_open() 1590 if (filp->f_mode & FMODE_READ) { in xillybus_release()
|
/drivers/mtd/devices/ |
D | block2mtd.c | 205 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 214 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
/drivers/char/ |
D | apm-emulation.c | 374 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
|
/drivers/target/ |
D | target_core_iblock.c | 112 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device() 192 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device() 205 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_free_device()
|
D | target_core_pscsi.c | 393 FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); in pscsi_create_type_disk() 403 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk() 575 FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_free_device()
|
/drivers/staging/lustre/lustre/llite/ |
D | file.c | 237 LASSERT(fmode & FMODE_READ); in ll_md_real_close() 526 fd->fd_omode = it->it_flags & (FMODE_READ | FMODE_WRITE | FMODE_EXEC); in ll_local_open() 595 if (oit.it_flags & (FMODE_WRITE | FMODE_READ)) in ll_file_open() 769 if (fmode != FMODE_WRITE && fmode != FMODE_READ) in ll_lease_open() 2422 if (!(file->f_mode & FMODE_READ)) in ll_file_ioctl() 2424 mode = FMODE_READ; in ll_file_ioctl() 2436 (FMODE_READ|FMODE_WRITE); in ll_file_ioctl() 2485 (FMODE_READ | FMODE_WRITE); in ll_file_ioctl()
|
/drivers/block/ |
D | pktcdvd.c | 2200 if ((ret = blkdev_get(pd->bdev, FMODE_READ | FMODE_EXCL, pd))) in pkt_open_dev() 2244 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_open_dev() 2261 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_release_dev() 2640 ret = blkdev_get(bdev, FMODE_READ | FMODE_NDELAY, NULL); in pkt_new_dev() 2665 blkdev_put(bdev, FMODE_READ | FMODE_NDELAY); in pkt_new_dev() 2867 blkdev_put(pd->bdev, FMODE_READ | FMODE_NDELAY); in pkt_remove_dev()
|
D | swim.c | 646 if (mode & (FMODE_READ|FMODE_WRITE)) { in floppy_open()
|
/drivers/char/hw_random/ |
D | core.c | 120 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open()
|
/drivers/block/xen-blkback/ |
D | xenbus.c | 403 blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); in xen_vbd_free() 423 FMODE_READ : FMODE_WRITE, NULL); in xen_vbd_create()
|
/drivers/md/bcache/ |
D | super.c | 1103 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free() 1836 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release() 1991 FMODE_READ|FMODE_WRITE|FMODE_EXCL, in register_bcache() 2043 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_bcache()
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 180 __u64 cr_flags = (flags & (FMODE_READ | FMODE_WRITE | in mds_pack_open_flags()
|
/drivers/block/drbd/ |
D | drbd_nl.c | 1560 FMODE_READ | FMODE_WRITE | FMODE_EXCL, device); in drbd_adm_attach() 1578 FMODE_READ | FMODE_WRITE | FMODE_EXCL, in drbd_adm_attach() 1880 FMODE_READ | FMODE_WRITE | FMODE_EXCL); in drbd_adm_attach() 1883 FMODE_READ | FMODE_WRITE | FMODE_EXCL); in drbd_adm_attach()
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_idl.h | 2316 #ifndef FMODE_READ 2317 #define FMODE_READ 00000001 macro
|