Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_genhd.c74 set_disk_ro(gdp, 1); in dasd_gendisk_alloc()
Ddcssblk.c390 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
411 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
710 set_disk_ro(dev_info->gd,1); in dcssblk_add_store()
713 set_disk_ro(dev_info->gd,0); in dcssblk_add_store()
Ddasd_ioctl.c555 set_disk_ro(bdev->bd_disk, intval); in dasd_ioctl_set_ro()
Ddasd_devmap.c804 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
/kernel/linux/linux-5.10/include/linux/
Dgenhd.h308 extern void set_disk_ro(struct gendisk *disk, int flag);
/kernel/linux/linux-5.10/drivers/md/
Ddm-ioctl.c1078 set_disk_ro(dm_disk(md), 0); in do_resume()
1080 set_disk_ro(dm_disk(md), 1); in do_resume()
2133 set_disk_ro(dm_disk(md), !!(dmi->flags & DM_READONLY_FLAG)); in dm_early_create()
Dmd.c4478 set_disk_ro(mddev->gendisk, 1); in array_state_store()
4490 set_disk_ro(mddev->gendisk, 0); in array_state_store()
4519 set_disk_ro(mddev->gendisk, 0); in array_state_store()
5849 set_disk_ro(mddev->gendisk, 1); in md_run()
6154 set_disk_ro(disk, 0); in restart_array()
6341 set_disk_ro(mddev->gendisk, 1); in md_set_readonly()
6398 set_disk_ro(disk, 0); in do_md_stop()
7703 set_disk_ro(mddev->gendisk, 0); in md_ioctl()
/kernel/linux/linux-5.10/drivers/ide/
Dide-floppy.c338 set_disk_ro(disk, !!(drive->dev_flags & IDE_DFLAG_WP)); in ide_floppy_get_flexible_disk_page()
/kernel/linux/linux-5.10/drivers/block/
Dsunvdc.c879 set_disk_ro(g, 1); in probe_disk()
886 set_disk_ro(g, 1); in probe_disk()
Dvirtio_blk.c805 set_disk_ro(vblk->disk, 1); in virtblk_probe()
Dnbd.c1220 set_disk_ro(nbd->disk, true); in nbd_parse_flags()
1222 set_disk_ro(nbd->disk, false); in nbd_parse_flags()
Dxen-blkfront.c1190 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk()
Drbd.c6881 set_disk_ro(rbd_dev->disk, rbd_is_ro(rbd_dev)); in rbd_dev_device_setup()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c456 set_disk_ro(gd, 1); in add_mtd_blktrans_dev()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dblock.c263 set_disk_ro(md->disk, 1); in power_ro_lock_store()
268 set_disk_ro(part_md->disk, 1); in power_ro_lock_store()
301 set_disk_ro(dev_to_disk(dev), set || md->read_only); in force_ro_store()
2349 set_disk_ro(md->disk, md->read_only || default_ro); in mmc_blk_alloc_req()
/kernel/linux/linux-5.10/block/
Dgenhd.c1865 void set_disk_ro(struct gendisk *disk, int flag) in set_disk_ro() function
1881 EXPORT_SYMBOL(set_disk_ro);
/kernel/linux/linux-5.10/drivers/nvdimm/
Dbus.c646 set_disk_ro(disk, 1); in nvdimm_check_and_set_ro()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dsuper.c1354 set_disk_ro(dc->disk.disk, 1); in bch_cached_dev_attach()
1583 set_disk_ro(d->disk, 1); in flash_dev_run()
/kernel/linux/linux-5.10/arch/um/drivers/
Dubd_kern.c1233 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_open()
/kernel/linux/linux-5.10/drivers/scsi/
Dsd.c2668 set_disk_ro(sdkp->disk, 0); in sd_read_write_protect_flag()
2706 set_disk_ro(sdkp->disk, sdkp->write_prot); in sd_read_write_protect_flag()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-clt.c1333 set_disk_ro(dev->gd, true); in rnbd_clt_setup_gen_disk()
/kernel/linux/linux-5.10/drivers/memstick/core/
Dms_block.c2152 set_disk_ro(msb->disk, 1); in msb_init_disk()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_main.c2756 set_disk_ro(disk, true); in drbd_create_device()
Ddrbd_nl.c752 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dcore.c2069 set_disk_ro(disk, true); in nvme_update_disk_info()

12