Lines Matching refs:md

32 	struct mapped_device *md;  member
184 unsigned num_targets, struct mapped_device *md) in dm_table_create() argument
210 t->md = md; in dm_table_create()
215 static void free_devices(struct list_head *devices, struct mapped_device *md) in free_devices() argument
223 dm_device_name(md), dd->dm_dev->name); in free_devices()
224 dm_put_table_device(md, dd->dm_dev); in free_devices()
253 free_devices(&t->devices, t->md); in dm_table_destroy()
298 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid()
311 dm_device_name(ti->table->md), bdevname(bdev, b), in device_area_is_invalid()
324 dm_device_name(ti->table->md), in device_area_is_invalid()
333 dm_device_name(ti->table->md), in device_area_is_invalid()
349 struct mapped_device *md) in upgrade_mode() argument
356 r = dm_get_table_device(md, dd->dm_dev->bdev->bd_dev, in upgrade_mode()
362 dm_put_table_device(md, old_dev); in upgrade_mode()
399 if ((r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev))) { in dm_get_device()
408 r = upgrade_mode(dd, mode, t->md); in dm_get_device()
429 dm_device_name(ti->table->md), bdevname(bdev, b)); in dm_set_device_limits()
437 dm_device_name(ti->table->md), bdevname(bdev, b), in dm_set_device_limits()
471 dm_device_name(ti->table->md), d->name); in dm_put_device()
475 dm_put_table_device(ti->table->md, d); in dm_put_device()
656 dm_device_name(table->md), i, in validate_hardware_logical_block_alignment()
675 dm_device_name(t->md), t->targets->type->name); in dm_table_add_target()
685 DMERR("%s: zero-length target", dm_device_name(t->md)); in dm_table_add_target()
691 DMERR("%s: %s: unknown target type", dm_device_name(t->md), in dm_table_add_target()
699 dm_device_name(t->md), type); in dm_table_add_target()
707 dm_device_name(t->md), type); in dm_table_add_target()
714 dm_device_name(t->md), t->immutable_target_type->name); in dm_table_add_target()
720 dm_device_name(t->md), tgt->type->name); in dm_table_add_target()
755 dm_device_name(t->md), type); in dm_table_add_target()
760 DMERR("%s: %s: %s", dm_device_name(t->md), type, tgt->error); in dm_table_add_target()
837 unsigned live_md_type = dm_get_md_type(t->md); in dm_table_set_type()
941 static int dm_table_alloc_md_mempools(struct dm_table *t, struct mapped_device *md) in dm_table_alloc_md_mempools() argument
959 t->mempools = dm_alloc_md_mempools(md, type, t->integrity_supported, per_bio_data_size); in dm_table_alloc_md_mempools()
1056 dm_device_name(t->md), in dm_table_get_integrity_disk()
1072 static int dm_table_prealloc_integrity(struct dm_table *t, struct mapped_device *md) in dm_table_prealloc_integrity() argument
1080 if (!blk_integrity_is_initialized(dm_disk(md))) { in dm_table_prealloc_integrity()
1082 return blk_integrity_register(dm_disk(md), NULL); in dm_table_prealloc_integrity()
1090 blk_integrity_compare(dm_disk(md), template_disk) < 0) { in dm_table_prealloc_integrity()
1093 dm_device_name(t->md), in dm_table_prealloc_integrity()
1123 r = dm_table_prealloc_integrity(t, t->md); in dm_table_complete()
1129 r = dm_table_alloc_md_mempools(t, t->md); in dm_table_complete()
1280 dm_device_name(table->md), in dm_calculate_queue_limits()
1299 if (!blk_get_integrity(dm_disk(t->md))) in dm_table_set_integrity()
1304 blk_integrity_register(dm_disk(t->md), in dm_table_set_integrity()
1306 else if (blk_integrity_is_initialized(dm_disk(t->md))) in dm_table_set_integrity()
1308 dm_device_name(t->md)); in dm_table_set_integrity()
1311 dm_device_name(t->md)); in dm_table_set_integrity()
1632 dm_device_name(t->md), ti->type->name, r); in dm_table_resume_targets()
1668 dm_device_name(t->md), in dm_table_any_congested()
1681 return t->md; in dm_table_get_md()
1687 struct mapped_device *md; in dm_table_run_md_queue_async() local
1694 md = dm_table_get_md(t); in dm_table_run_md_queue_async()
1695 queue = dm_get_md_queue(md); in dm_table_run_md_queue_async()