Home
last modified time | relevance | path

Searched refs:FMODE_READ (Results 1 – 25 of 37) sorted by relevance

12

/drivers/isdn/hysdn/
Dhysdn_procconf.c216 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()
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()
/drivers/md/
Ddm-android-verity.c292 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()
Ddm-verity-target.c874 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()
Ddm-era-target.c1445 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()
Ddm-ioctl.c1209 fmode_t mode = FMODE_READ | FMODE_WRITE; in get_mode()
1212 mode = FMODE_READ; in get_mode()
Ddm-verity-fec.c632 r = dm_get_device(ti, arg_value, FMODE_READ, &v->fec->dev); in verity_fec_parse_opt_args()
Ddm-cache-target.c1940 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()
Ddm-thin.c2514 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/
Ddasd_genhd.c104 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/
Dopenprom.c609 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/
Dxillybus_core.c1447 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/
Dblock2mtd.c205 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/
Dapm-emulation.c374 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
/drivers/target/
Dtarget_core_iblock.c112 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()
Dtarget_core_pscsi.c393 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/
Dfile.c237 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/
Dpktcdvd.c2200 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()
Dswim.c646 if (mode & (FMODE_READ|FMODE_WRITE)) { in floppy_open()
/drivers/char/hw_random/
Dcore.c120 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open()
/drivers/block/xen-blkback/
Dxenbus.c403 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/
Dsuper.c1103 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/
Dmdc_lib.c180 __u64 cr_flags = (flags & (FMODE_READ | FMODE_WRITE | in mds_pack_open_flags()
/drivers/block/drbd/
Ddrbd_nl.c1560 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/
Dlustre_idl.h2316 #ifndef FMODE_READ
2317 #define FMODE_READ 00000001 macro

12