Home
last modified time | relevance | path

Searched refs:read_only (Results 1 – 39 of 39) sorted by relevance

/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c35 unsigned int read_only; /* set with -r */ variable
90 read_only = 1; in cmdline()
100 if (read_only && (argc > optind)) in cmdline()
106 if (!read_only) { in cmdline()
306 if (verbose > 1 && !read_only) in main()
312 if (read_only) in main()
317 if (read_only) in main()
/linux-4.1.27/drivers/md/persistent-data/
Ddm-block-manager.c367 bool read_only:1; member
394 bm->read_only = false; in dm_block_manager_create()
489 if (bm->read_only) in dm_bm_write_lock()
558 if (bm->read_only) in dm_bm_write_lock_zero()
600 if (bm->read_only) in dm_bm_flush()
614 bm->read_only = true; in dm_bm_set_read_only()
620 bm->read_only = false; in dm_bm_set_read_write()
/linux-4.1.27/drivers/hwmon/
Dadm1021.c102 static bool read_only; variable
220 if (!read_only) in set_temp_max()
246 if (!read_only) in set_temp_min()
461 if (data->type != lm84 && !read_only) in adm1021_probe()
505 module_param(read_only, bool, 0);
506 MODULE_PARM_DESC(read_only, "Don't set any values, read only mode");
Dmax1668.c62 static bool read_only; variable
63 module_param(read_only, bool, 0);
64 MODULE_PARM_DESC(read_only, "Don't set any values, read only mode");
345 if (read_only) in max1668_attribute_mode()
/linux-4.1.27/drivers/memstick/core/
Dms_block.c167 msb->read_only = true; in msb_validate_used_block_bitmap()
179 msb->read_only = true; in msb_mark_block_used()
198 msb->read_only = true; in msb_mark_block_unused()
754 msb->read_only = true; in msb_reset()
762 msb->read_only = true; in msb_reset()
793 if (msb->read_only) in msb_set_overwrite_flag()
828 if (msb->read_only) in msb_erase_block()
1006 if (msb->read_only) in msb_write_block()
1034 if (msb->read_only) in msb_write_block()
1088 msb->read_only = true; in msb_get_free_block()
[all …]
Dms_block.h172 bool read_only; member
Dmspro_block.c153 unsigned char read_only:1, member
195 if ((mode & FMODE_WRITE) && msb->read_only) in mspro_block_bd_open()
555 msb->read_only = 1; in h_mspro_block_get_ro()
557 msb->read_only = 0; in h_mspro_block_get_ro()
1170 dev_dbg(&card->dev, "card r/w status %d\n", msb->read_only ? 0 : 1); in mspro_block_init_card()
/linux-4.1.27/fs/hpfs/
Dnamei.c48 if (!(mode & 0222)) dee.read_only = 1; in hpfs_mkdir()
71 if (dee.read_only) in hpfs_mkdir()
94 if (!(mode & 0222)) de->read_only = 1; in hpfs_mkdir()
149 if (!(mode & 0222)) dee.read_only = 1; in hpfs_create()
172 if (dee.read_only) in hpfs_create()
238 if (!(mode & 0222)) dee.read_only = 1; in hpfs_mknod()
Dhpfs.h330 u8 read_only: 1; /* dos attrib */ member
346 u8 read_only: 1; /* dos attrib */ member
Dinode.c234 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()
244 de->read_only = !(i->i_mode & 0222); in hpfs_write_inode_nolock()
Ddir.c280 if (!hpfs_result->i_ea_mode && de->read_only) in hpfs_lookup()
/linux-4.1.27/drivers/usb/storage/
Dsddr55.c102 int read_only; /* non zero if card is write protected */ member
179 info->read_only = (status[0] & 0x20); in sddr55_status()
334 if (info->read_only || info->force_read_only) { in sddr55_write_data()
891 ptr[3] = (info->read_only || info->force_read_only) ? 0x80 : 0; in sddr55_transport()
/linux-4.1.27/Documentation/cpu-freq/
Dcpufreq-stats.txt21 These statistics are provided in /sysfs as a bunch of read_only interfaces. This
24 Various statistics will form read_only files under this directory.
/linux-4.1.27/include/net/
Ddst.h153 bool read_only) in dst_init_metrics() argument
156 (read_only ? DST_METRICS_READ_ONLY : 0); in dst_init_metrics()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_userptr.c570 !obj->userptr.read_only, 0, in __i915_gem_userptr_get_pages_worker()
639 !obj->userptr.read_only, pvec); in i915_gem_userptr_get_pages()
829 obj->userptr.read_only = !!(args->flags & I915_USERPTR_READ_ONLY); in i915_gem_userptr_ioctl()
Di915_drv.h2015 unsigned read_only :1; member
/linux-4.1.27/Documentation/hwmon/
Dmax166859 * read_only: int
Dadm102154 * read_only: int
/linux-4.1.27/drivers/block/
Drbd.c328 bool read_only; member
549 if ((mode & FMODE_WRITE) && rbd_dev->mapping.read_only) in rbd_open()
602 if (rbd_dev->mapping.read_only != ro) { in rbd_ioctl_set_ro()
603 rbd_dev->mapping.read_only = ro; in rbd_ioctl_set_ro()
755 bool read_only; member
789 rbd_opts->read_only = true; in parse_rbd_opts_token()
792 rbd_opts->read_only = false; in parse_rbd_opts_token()
3369 if (rbd_dev->mapping.read_only) { in rbd_queue_workfn()
4953 rbd_opts->read_only = RBD_READ_ONLY_DEFAULT; in rbd_add_parse_args()
5237 set_disk_ro(rbd_dev->disk, rbd_dev->mapping.read_only); in rbd_dev_device_setup()
[all …]
/linux-4.1.27/fs/ubifs/
Dorphan.c709 int ubifs_mount_orphans(struct ubifs_info *c, int unclean, int read_only) in ubifs_mount_orphans() argument
715 if (!read_only) { in ubifs_mount_orphans()
723 else if (!read_only) in ubifs_mount_orphans()
Dubifs.h1682 int ubifs_mount_orphans(struct ubifs_info *c, int unclean, int read_only);
/linux-4.1.27/drivers/md/
Ddm-thin-metadata.c187 bool read_only:1; member
839 pmd->read_only = false; in dm_pool_metadata_open()
883 if (!pmd->read_only && !pmd->fail_io) { in dm_pool_metadata_close()
1742 pmd->read_only = true; in dm_pool_metadata_read_only()
1750 pmd->read_only = false; in dm_pool_metadata_read_write()
Ddm-thin.c2526 int read_only, char **error) in pool_create() argument
2532 bool format_device = read_only ? false : true; in pool_create()
2668 unsigned long block_size, int read_only, in __pool_find() argument
2690 pool = pool_create(pool_md, metadata_dev, block_size, read_only, error); in __pool_find()
/linux-4.1.27/drivers/mmc/card/
Dblock.c107 unsigned int read_only; member
270 md->read_only); in force_ro_show()
287 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store()
305 if ((mode & FMODE_WRITE) && md->read_only) { in mmc_blk_open()
2124 md->read_only = mmc_blk_readonly(card); in mmc_blk_alloc_req()
2149 set_disk_ro(md->disk, md->read_only || default_ro); in mmc_blk_alloc_req()
2459 cap_str, md->read_only ? "(ro)" : ""); in mmc_blk_probe()
/linux-4.1.27/drivers/scsi/
Dsg.c199 int read_only, int sg_io_owned, Sg_request **o_srp);
692 size_t count, int blocking, int read_only, int sg_io_owned, in sg_new_write() argument
751 if (read_only && sg_allow_access(file, cmnd)) { in sg_new_write()
836 int result, val, read_only; in sg_ioctl() local
847 read_only = (O_RDWR != (filp->f_flags & O_ACCMODE)); in sg_ioctl()
858 1, read_only, 1, &srp); in sg_ioctl()
1063 if (read_only) { in sg_ioctl()
1103 if (read_only) in sg_ioctl()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dllite_lib.c1975 __u32 read_only; in ll_remount_fs() local
1978 read_only = *flags & MS_RDONLY; in ll_remount_fs()
1981 KEY_READ_ONLY, sizeof(read_only), in ll_remount_fs()
1982 &read_only, NULL); in ll_remount_fs()
1985 profilenm, read_only ? in ll_remount_fs()
1990 if (read_only) in ll_remount_fs()
1997 read_only ? "read-only" : "read-write"); in ll_remount_fs()
/linux-4.1.27/fs/logfs/
Dsuper.c432 static int logfs_read_sb(struct super_block *sb, int read_only) in logfs_read_sb() argument
457 !read_only) in logfs_read_sb()
/linux-4.1.27/arch/ia64/kernel/
Dunwind.c242 read_only (void *addr) in read_only() function
385 if (read_only(addr)) { in unw_access_gr()
433 if (read_only(addr)) { in unw_access_br()
482 if (read_only(addr)) { in unw_access_fr()
579 if (read_only(addr)) { in unw_access_ar()
600 if (read_only(addr)) { in unw_access_pr()
/linux-4.1.27/drivers/mmc/host/
Ddw_mmc.c1309 int read_only; in dw_mci_get_ro() local
1316 read_only = 0; in dw_mci_get_ro()
1318 read_only = gpio_ro; in dw_mci_get_ro()
1320 read_only = in dw_mci_get_ro()
1324 read_only ? "read-only" : "read-write"); in dw_mci_get_ro()
1326 return read_only; in dw_mci_get_ro()
Dvub300.c312 bool read_only; member
511 vub300->read_only = in new_system_port_status()
2049 return vub300->read_only; in vub300_mmc_get_ro()
2321 vub300->read_only = in vub300_probe()
Datmel-mci.c1433 int read_only = -ENOSYS; in atmci_get_ro() local
1437 read_only = gpio_get_value(slot->wp_pin); in atmci_get_ro()
1439 read_only ? "read-only" : "read-write"); in atmci_get_ro()
1442 return read_only; in atmci_get_ro()
/linux-4.1.27/fs/ext2/
Dsuper.c612 int read_only) in ext2_setup_super() argument
623 if (read_only) in ext2_setup_super()
/linux-4.1.27/sound/usb/
Dmixer.c512 unsigned int read_only = (channel == 0) ? in snd_usb_set_cur_mix_value() local
516 if (read_only) { in snd_usb_set_cur_mix_value()
/linux-4.1.27/Documentation/device-mapper/
Dthin-provisioning.txt264 read_only: Don't allow any changes to be made to the pool
/linux-4.1.27/fs/ext3/
Dsuper.c1374 int read_only) in ext3_setup_super() argument
1385 if (read_only) in ext3_setup_super()
/linux-4.1.27/sound/pci/asihpi/
Dhpifunc.c12 unsigned int read_only:1; member
27 handle.h.read_only = 0; in hpi_indexes_to_handle()
/linux-4.1.27/fs/btrfs/
Ddisk-io.c61 int read_only);
3913 int read_only) in btrfs_check_super_valid() argument
/linux-4.1.27/fs/ext4/
Dsuper.c1895 int read_only) in ext4_setup_super() argument
1905 if (read_only) in ext4_setup_super()
/linux-4.1.27/init/
DKconfig2018 # that get confused by correct const<->read_only section