Lines Matching refs:dmz_dev

20 	struct dmz_dev		*dev;
47 struct dmz_dev *dev;
122 struct dmz_dev *dev = zone->dev; in dmz_submit_bio()
581 bool dmz_bdev_is_dying(struct dmz_dev *dmz_dev) in dmz_bdev_is_dying() argument
583 if (dmz_dev->flags & DMZ_BDEV_DYING) in dmz_bdev_is_dying()
586 if (dmz_dev->flags & DMZ_CHECK_BDEV) in dmz_bdev_is_dying()
587 return !dmz_check_bdev(dmz_dev); in dmz_bdev_is_dying()
589 if (blk_queue_dying(bdev_get_queue(dmz_dev->bdev))) { in dmz_bdev_is_dying()
590 dmz_dev_warn(dmz_dev, "Backing device queue dying"); in dmz_bdev_is_dying()
591 dmz_dev->flags |= DMZ_BDEV_DYING; in dmz_bdev_is_dying()
594 return dmz_dev->flags & DMZ_BDEV_DYING; in dmz_bdev_is_dying()
603 bool dmz_check_bdev(struct dmz_dev *dmz_dev) in dmz_check_bdev() argument
607 dmz_dev->flags &= ~DMZ_CHECK_BDEV; in dmz_check_bdev()
609 if (dmz_bdev_is_dying(dmz_dev)) in dmz_check_bdev()
612 disk = dmz_dev->bdev->bd_disk; in dmz_check_bdev()
615 dmz_dev_warn(dmz_dev, "Backing device offline"); in dmz_check_bdev()
616 dmz_dev->flags |= DMZ_BDEV_DYING; in dmz_check_bdev()
619 return !(dmz_dev->flags & DMZ_BDEV_DYING); in dmz_check_bdev()
693 struct dmz_dev *dev; in dmz_get_zoned_device()
766 struct dmz_dev *reg_dev = NULL; in dmz_fixup_devices()
781 struct dmz_dev *zoned_dev = &dmz->dev[i]; in dmz_fixup_devices()
798 struct dmz_dev *zoned_dev = &dmz->dev[0]; in dmz_fixup_devices()
846 dmz->dev = kcalloc(argc, sizeof(struct dmz_dev), GFP_KERNEL); in dmz_ctr()
1021 struct dmz_dev *dev = &dmz->dev[0]; in dmz_prepare_ioctl()
1082 struct dmz_dev *dev; in dmz_status()