Home
last modified time | relevance | path

Searched refs:set_disk_ro (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.6.21/drivers/block/
Dn64cart.c145 set_disk_ro(disk, 1); in n64cart_probe()
Dsunvdc.c860 set_disk_ro(g, 1); in probe_disk()
866 set_disk_ro(g, 1); in probe_disk()
Dnbd.c1269 set_disk_ro(nbd->disk, true); in nbd_parse_flags()
1271 set_disk_ro(nbd->disk, false); in nbd_parse_flags()
Dvirtio_blk.c1407 set_disk_ro(vblk->disk, 1); in virtblk_probe()
Dloop.c1069 set_disk_ro(lo->lo_disk, (lo->lo_flags & LO_FLAGS_READ_ONLY) != 0); in loop_configure()
Dublk_drv.c521 set_disk_ro(ub->ub_disk, true); in ublk_dev_param_basic_apply()
Dxen-blkfront.c1170 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk()
/linux-6.6.21/drivers/s390/block/
Ddcssblk.c376 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
397 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
700 set_disk_ro(dev_info->gd,1); in dcssblk_add_store()
703 set_disk_ro(dev_info->gd,0); in dcssblk_add_store()
Ddasd_genhd.c97 set_disk_ro(gdp, 1); in dasd_gendisk_alloc()
Ddasd_devmap.c1057 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
/linux-6.6.21/drivers/mtd/
Dmtd_blkdevs.c387 set_disk_ro(gd, 1); in add_mtd_blktrans_dev()
/linux-6.6.21/block/
Dgenhd.c1445 void set_disk_ro(struct gendisk *disk, bool read_only) in set_disk_ro() function
1456 EXPORT_SYMBOL(set_disk_ro);
/linux-6.6.21/drivers/md/
Ddm-ioctl.c1200 set_disk_ro(dm_disk(md), 0); in do_resume()
1202 set_disk_ro(dm_disk(md), 1); in do_resume()
2313 set_disk_ro(dm_disk(md), !!(dmi->flags & DM_READONLY_FLAG)); in dm_early_create()
Dmd.c4466 set_disk_ro(mddev->gendisk, 1); in array_state_store()
4478 set_disk_ro(mddev->gendisk, 0); in array_state_store()
4507 set_disk_ro(mddev->gendisk, 0); in array_state_store()
5889 set_disk_ro(mddev->gendisk, 1); in md_run()
6214 set_disk_ro(disk, 0); in restart_array()
6410 set_disk_ro(mddev->gendisk, 1); in md_set_readonly()
6472 set_disk_ro(disk, 0); in do_md_stop()
/linux-6.6.21/drivers/mmc/core/
Dblock.c277 set_disk_ro(md->disk, 1); in power_ro_lock_store()
282 set_disk_ro(part_md->disk, 1); in power_ro_lock_store()
318 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store()
2519 set_disk_ro(md->disk, md->read_only || default_ro); in mmc_blk_alloc_req()
/linux-6.6.21/drivers/nvme/host/
Dcore.c2007 set_disk_ro(ns->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_generic()
2012 set_disk_ro(ns->head->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_generic()
2074 set_disk_ro(ns->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_block()
2087 set_disk_ro(ns->head->disk, nvme_ns_is_readonly(ns, info)); in nvme_update_ns_info_block()
/linux-6.6.21/include/linux/
Dblkdev.h739 void set_disk_ro(struct gendisk *disk, bool read_only);
/linux-6.6.21/drivers/nvdimm/
Dbus.c636 set_disk_ro(disk, nd_region->ro); in nvdimm_check_and_set_ro()
/linux-6.6.21/arch/um/drivers/
Dubd_kern.c1172 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_open()
/linux-6.6.21/drivers/md/bcache/
Dsuper.c1325 set_disk_ro(dc->disk.disk, 1); in bch_cached_dev_attach()
1558 set_disk_ro(d->disk, 1); in flash_dev_run()
/linux-6.6.21/drivers/memstick/core/
Dmspro_block.c1170 set_disk_ro(msb->disk, true); in mspro_block_init_disk()
Dms_block.c2128 set_disk_ro(msb->disk, 1); in msb_init_disk()
/linux-6.6.21/drivers/scsi/
Dsd.c2773 set_disk_ro(sdkp->disk, 0); in sd_read_write_protect_flag()
2811 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
/linux-6.6.21/drivers/block/rnbd/
Drnbd-clt.c1388 set_disk_ro(dev->gd, true); in rnbd_clt_setup_gen_disk()
/linux-6.6.21/drivers/block/drbd/
Ddrbd_main.c2718 set_disk_ro(disk, true); in drbd_create_device()

12