/linux-6.12.1/drivers/s390/block/ |
D | dcssblk.c | 376 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store() 397 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store() 703 set_disk_ro(dev_info->gd,1); in dcssblk_add_store() 706 set_disk_ro(dev_info->gd,0); in dcssblk_add_store()
|
D | dasd_genhd.c | 101 set_disk_ro(gdp, 1); in dasd_gendisk_alloc()
|
D | dasd_devmap.c | 1053 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
|
/linux-6.12.1/drivers/block/ |
D | n64cart.c | 151 set_disk_ro(disk, 1); in n64cart_probe()
|
D | sunvdc.c | 863 set_disk_ro(g, 1); in probe_disk() 869 set_disk_ro(g, 1); in probe_disk()
|
D | nbd.c | 1311 set_disk_ro(nbd->disk, true); in nbd_parse_flags() 1313 set_disk_ro(nbd->disk, false); in nbd_parse_flags()
|
D | virtio_blk.c | 1527 set_disk_ro(vblk->disk, 1); in virtblk_probe()
|
D | loop.c | 1086 set_disk_ro(lo->lo_disk, (lo->lo_flags & LO_FLAGS_READ_ONLY) != 0); in loop_configure()
|
D | xen-blkfront.c | 1171 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk()
|
D | ublk_drv.c | 521 set_disk_ro(ub->ub_disk, true); in ublk_dev_param_basic_apply()
|
/linux-6.12.1/drivers/mtd/ |
D | mtd_blkdevs.c | 380 set_disk_ro(gd, 1); in add_mtd_blktrans_dev()
|
/linux-6.12.1/block/ |
D | genhd.c | 1457 void set_disk_ro(struct gendisk *disk, bool read_only) in set_disk_ro() function 1468 EXPORT_SYMBOL(set_disk_ro);
|
/linux-6.12.1/drivers/md/ |
D | dm-ioctl.c | 1218 set_disk_ro(dm_disk(md), 0); in do_resume() 1220 set_disk_ro(dm_disk(md), 1); in do_resume() 2331 set_disk_ro(dm_disk(md), !!(dmi->flags & DM_READONLY_FLAG)); in dm_early_create()
|
D | md.c | 4468 set_disk_ro(mddev->gendisk, 1); in array_state_store() 4480 set_disk_ro(mddev->gendisk, 0); in array_state_store() 4509 set_disk_ro(mddev->gendisk, 0); in array_state_store() 6049 set_disk_ro(mddev->gendisk, 1); in md_run() 6342 set_disk_ro(disk, 0); in restart_array() 6524 set_disk_ro(mddev->gendisk, 1); in md_set_readonly() 6564 set_disk_ro(disk, 0); in do_md_stop()
|
/linux-6.12.1/drivers/mmc/core/ |
D | block.c | 323 set_disk_ro(md->disk, 1); in power_ro_lock_store() 328 set_disk_ro(part_md->disk, 1); in power_ro_lock_store() 364 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store() 2583 set_disk_ro(md->disk, md->read_only || default_ro); in mmc_blk_alloc_req()
|
/linux-6.12.1/include/linux/ |
D | blkdev.h | 736 void set_disk_ro(struct gendisk *disk, bool read_only);
|
/linux-6.12.1/arch/um/drivers/ |
D | ubd_kern.c | 889 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_add()
|
/linux-6.12.1/drivers/nvdimm/ |
D | bus.c | 639 set_disk_ro(disk, nd_region->ro); in nvdimm_check_and_set_ro()
|
/linux-6.12.1/drivers/md/bcache/ |
D | super.c | 1323 set_disk_ro(dc->disk.disk, 1); in bch_cached_dev_attach() 1552 set_disk_ro(d->disk, 1); in flash_dev_run()
|
/linux-6.12.1/drivers/memstick/core/ |
D | mspro_block.c | 1169 set_disk_ro(msb->disk, true); in mspro_block_init_disk()
|
D | ms_block.c | 2128 set_disk_ro(msb->disk, 1); in msb_init_disk()
|
/linux-6.12.1/drivers/nvme/host/ |
D | core.c | 2127 set_disk_ro(ns->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_generic() 2218 set_disk_ro(ns->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_block() 2307 set_disk_ro(ns->head->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info()
|
/linux-6.12.1/drivers/block/rnbd/ |
D | rnbd-clt.c | 1353 set_disk_ro(dev->gd, true); in rnbd_clt_setup_gen_disk()
|
/linux-6.12.1/drivers/scsi/ |
D | sd.c | 2970 set_disk_ro(sdkp->disk, 0); in sd_read_write_protect_flag() 3008 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
|
/linux-6.12.1/drivers/block/drbd/ |
D | drbd_main.c | 2717 set_disk_ro(disk, true); in drbd_create_device()
|