Home
last modified time | relevance | path

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

12

/linux-6.12.1/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()
703 set_disk_ro(dev_info->gd,1); in dcssblk_add_store()
706 set_disk_ro(dev_info->gd,0); in dcssblk_add_store()
Ddasd_genhd.c101 set_disk_ro(gdp, 1); in dasd_gendisk_alloc()
Ddasd_devmap.c1053 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
/linux-6.12.1/drivers/block/
Dn64cart.c151 set_disk_ro(disk, 1); in n64cart_probe()
Dsunvdc.c863 set_disk_ro(g, 1); in probe_disk()
869 set_disk_ro(g, 1); in probe_disk()
Dnbd.c1311 set_disk_ro(nbd->disk, true); in nbd_parse_flags()
1313 set_disk_ro(nbd->disk, false); in nbd_parse_flags()
Dvirtio_blk.c1527 set_disk_ro(vblk->disk, 1); in virtblk_probe()
Dloop.c1086 set_disk_ro(lo->lo_disk, (lo->lo_flags & LO_FLAGS_READ_ONLY) != 0); in loop_configure()
Dxen-blkfront.c1171 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk()
Dublk_drv.c521 set_disk_ro(ub->ub_disk, true); in ublk_dev_param_basic_apply()
/linux-6.12.1/drivers/mtd/
Dmtd_blkdevs.c380 set_disk_ro(gd, 1); in add_mtd_blktrans_dev()
/linux-6.12.1/block/
Dgenhd.c1457 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/
Ddm-ioctl.c1218 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()
Dmd.c4468 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/
Dblock.c323 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/
Dblkdev.h736 void set_disk_ro(struct gendisk *disk, bool read_only);
/linux-6.12.1/arch/um/drivers/
Dubd_kern.c889 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_add()
/linux-6.12.1/drivers/nvdimm/
Dbus.c639 set_disk_ro(disk, nd_region->ro); in nvdimm_check_and_set_ro()
/linux-6.12.1/drivers/md/bcache/
Dsuper.c1323 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/
Dmspro_block.c1169 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.12.1/drivers/nvme/host/
Dcore.c2127 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/
Drnbd-clt.c1353 set_disk_ro(dev->gd, true); in rnbd_clt_setup_gen_disk()
/linux-6.12.1/drivers/scsi/
Dsd.c2970 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/
Ddrbd_main.c2717 set_disk_ro(disk, true); in drbd_create_device()

12