Lines Matching refs:dm_dev

162 	struct dm_dev dm_dev;  member
745 BUG_ON(td->dm_dev.bdev); in open_table_device()
747 bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _dm_claim_ptr); in open_table_device()
753 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device()
757 td->dm_dev.bdev = bdev; in open_table_device()
758 td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in open_table_device()
767 if (!td->dm_dev.bdev) in close_table_device()
770 bd_unlink_disk_holder(td->dm_dev.bdev, dm_disk(md)); in close_table_device()
771 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
772 put_dax(td->dm_dev.dax_dev); in close_table_device()
773 td->dm_dev.bdev = NULL; in close_table_device()
774 td->dm_dev.dax_dev = NULL; in close_table_device()
783 if (td->dm_dev.bdev->bd_dev == dev && td->dm_dev.mode == mode) in find_table_device()
790 struct dm_dev **result) in dm_get_table_device()
804 td->dm_dev.mode = mode; in dm_get_table_device()
805 td->dm_dev.bdev = NULL; in dm_get_table_device()
813 format_dev_t(td->dm_dev.name, dev); in dm_get_table_device()
822 *result = &td->dm_dev; in dm_get_table_device()
827 void dm_put_table_device(struct mapped_device *md, struct dm_dev *d) in dm_put_table_device()
829 struct table_device *td = container_of(d, struct table_device, dm_dev); in dm_put_table_device()
849 td->dm_dev.name, refcount_read(&td->count)); in free_table_devices()
2954 static int __dm_pr_register(struct dm_target *ti, struct dm_dev *dev, in __dm_pr_register()