Lines Matching defs:zoned
253 * If the target is mapped to zoned block device(s), check
268 * Note: The last zone of a zoned block device may be smaller
270 * zoned block device with such a zone, len would not be zone
1692 bool *zoned = data;
1694 return bdev_is_zoned(dev->bdev) != *zoned;
1704 * Check the device zoned model based on the target feature flag. If the target
1705 * has the DM_TARGET_ZONED_HM feature flag set, host-managed zoned devices are
1706 * also accepted but all devices must have the same zoned model. If the target
1708 * zoned model with all zoned devices having the same zone size.
1710 static bool dm_table_supports_zoned(struct dm_table *t, bool zoned)
1718 * backing device, the result must depend on checking zoned
1720 * if the target backing device is zoned as we get "false" when
1730 &zoned))
1733 if (zoned)
1752 * Check consistency of zoned model and zone sectors across all targets. For
1753 * zone sectors, if the destination device is a zoned block device, it shall
1756 static int validate_hardware_zoned(struct dm_table *t, bool zoned,
1759 if (!zoned)
1762 if (!dm_table_supports_zoned(t, zoned)) {
1763 DMERR("%s: zoned model is not consistent across all devices",
1773 DMERR("%s: zone sectors is not consistent across all zoned devices",
1789 bool zoned = false;
1819 if (!zoned && (ti_limits.features & BLK_FEAT_ZONED)) {
1822 * in table support this zoned model and zone sectors.
1824 zoned = (ti_limits.features & BLK_FEAT_ZONED);
1866 * Verify that the zoned model and zone sectors, as determined before
1869 * zoned model on host-managed zoned block devices.
1874 * ...IF the above limits stacking determined a zoned model
1877 zoned = limits->features & BLK_FEAT_ZONED;
1880 if (validate_hardware_zoned(t, zoned, zone_sectors))
2084 /* For a zoned table, setup the zone related queue attributes. */
2092 "Cannot switch to non-zoned table.",