Lines Matching refs:dm_dev
171 dm_device_name(md), dd->dm_dev->name); in free_devices()
172 dm_put_table_device(md, dd->dm_dev); in free_devices()
220 if (dd->dm_dev->bdev->bd_dev == dev) in find_device()
229 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, in device_area_is_invalid()
320 struct dm_dev *old_dev, *new_dev; in upgrade_mode()
322 old_dev = dd->dm_dev; in upgrade_mode()
324 r = dm_get_table_device(md, dd->dm_dev->bdev->bd_dev, in upgrade_mode()
325 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode()
329 dd->dm_dev = new_dev; in upgrade_mode()
353 struct dm_dev **result) in dm_get_device()
381 if ((r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev))) { in dm_get_device()
390 } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) { in dm_get_device()
397 *result = dd->dm_dev; in dm_get_device()
402 static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, in dm_set_device_limits()
432 void dm_put_device(struct dm_target *ti, struct dm_dev *d) in dm_put_device()
439 if (dd->dm_dev == d) { in dm_put_device()
814 int device_not_dax_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_dax_capable()
823 static int device_not_dax_synchronous_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_dax_synchronous_capable()
850 static int device_is_rq_stackable(struct dm_target *ti, struct dm_dev *dev, in device_is_rq_stackable()
1121 template_disk = dd->dm_dev->bdev->bd_disk; in dm_table_get_integrity_disk()
1199 static int dm_keyslot_evict_callback(struct dm_target *ti, struct dm_dev *dev, in dm_keyslot_evict_callback()
1244 struct dm_dev *dev, sector_t start, in dm_derive_sw_secret_callback()
1299 device_intersect_crypto_capabilities(struct dm_target *ti, struct dm_dev *dev, in device_intersect_crypto_capabilities()
1585 static int count_device(struct dm_target *ti, struct dm_dev *dev, in count_device()
1621 static int device_not_zoned_model(struct dm_target *ti, struct dm_dev *dev, in device_not_zoned_model()
1660 static int device_not_matches_zone_sectors(struct dm_target *ti, struct dm_dev *dev, in device_not_matches_zone_sectors()
1816 static int device_flush_capable(struct dm_target *ti, struct dm_dev *dev, in device_flush_capable()
1854 struct dm_dev *dev, sector_t start, in device_dax_write_cache_enabled()
1867 static int device_is_rotational(struct dm_target *ti, struct dm_dev *dev, in device_is_rotational()
1875 static int device_is_not_random(struct dm_target *ti, struct dm_dev *dev, in device_is_not_random()
1883 static int device_not_write_same_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_write_same_capable()
1910 static int device_not_write_zeroes_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_write_zeroes_capable()
1937 static int device_not_nowait_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_nowait_capable()
1964 static int device_not_discard_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_discard_capable()
1998 struct dm_dev *dev, sector_t start, in device_not_secure_erase_capable()
2026 struct dm_dev *dev, sector_t start, in device_requires_stable_pages()