Lines Matching refs:dm_dev
189 dm_device_name(md), dd->dm_dev->name); in free_devices()
190 dm_put_table_device(md, dd->dm_dev); in free_devices()
238 if (dd->dm_dev->bdev->bd_dev == dev) in find_device()
247 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, in device_area_is_invalid()
338 struct dm_dev *old_dev, *new_dev; in upgrade_mode()
340 old_dev = dd->dm_dev; in upgrade_mode()
342 r = dm_get_table_device(md, dd->dm_dev->bdev->bd_dev, in upgrade_mode()
343 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode()
347 dd->dm_dev = new_dev; in upgrade_mode()
378 struct dm_dev **result) in dm_get_device()
406 if ((r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev))) { in dm_get_device()
415 } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) { in dm_get_device()
422 *result = dd->dm_dev; in dm_get_device()
427 static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, in dm_set_device_limits()
457 void dm_put_device(struct dm_target *ti, struct dm_dev *d) in dm_put_device()
464 if (dd->dm_dev == d) { in dm_put_device()
839 int device_not_dax_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_dax_capable()
853 static int device_not_dax_synchronous_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_dax_synchronous_capable()
880 static int device_is_rq_stackable(struct dm_target *ti, struct dm_dev *dev, in device_is_rq_stackable()
1151 template_disk = dd->dm_dev->bdev->bd_disk; in dm_table_get_integrity_disk()
1229 static int dm_keyslot_evict_callback(struct dm_target *ti, struct dm_dev *dev, in dm_keyslot_evict_callback()
1277 struct dm_dev *dev, sector_t start, in dm_derive_raw_secret_callback()
1348 struct dm_dev *dev, sector_t start, in device_intersect_crypto_modes()
1632 static int count_device(struct dm_target *ti, struct dm_dev *dev, in count_device()
1668 static int device_not_zoned_model(struct dm_target *ti, struct dm_dev *dev, in device_not_zoned_model()
1707 static int device_not_matches_zone_sectors(struct dm_target *ti, struct dm_dev *dev, in device_not_matches_zone_sectors()
1864 static int device_flush_capable(struct dm_target *ti, struct dm_dev *dev, in device_flush_capable()
1902 struct dm_dev *dev, sector_t start, in device_dax_write_cache_enabled()
1915 static int device_is_rotational(struct dm_target *ti, struct dm_dev *dev, in device_is_rotational()
1923 static int device_is_not_random(struct dm_target *ti, struct dm_dev *dev, in device_is_not_random()
1931 static int device_not_write_same_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_write_same_capable()
1958 static int device_not_write_zeroes_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_write_zeroes_capable()
1985 static int device_not_nowait_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_nowait_capable()
2012 static int device_not_discard_capable(struct dm_target *ti, struct dm_dev *dev, in device_not_discard_capable()
2046 struct dm_dev *dev, sector_t start, in device_not_secure_erase_capable()
2074 struct dm_dev *dev, sector_t start, in device_requires_stable_pages()