Lines Matching refs:mapped_device
307 int dm_deleting_md(struct mapped_device *md) in dm_deleting_md()
314 struct mapped_device *md; in dm_blk_open()
338 struct mapped_device *md; in dm_blk_close()
355 int dm_open_count(struct mapped_device *md) in dm_open_count()
363 int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred) in dm_lock_for_deletion()
383 int dm_cancel_deferred_remove(struct mapped_device *md) in dm_cancel_deferred_remove()
406 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_getgeo()
411 static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx, in dm_prepare_ioctl()
445 static void dm_unprepare_ioctl(struct mapped_device *md, int srcu_idx) in dm_unprepare_ioctl()
453 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_ioctl()
498 struct mapped_device *md = io->md; in dm_io_acct()
570 static struct dm_io *alloc_io(struct mapped_device *md, struct bio *bio) in alloc_io()
609 struct mapped_device *md = ci->io->md; in alloc_tio()
662 static void queue_io(struct mapped_device *md, struct bio *bio) in queue_io()
677 struct dm_table *dm_get_live_table(struct mapped_device *md, in dm_get_live_table()
685 void dm_put_live_table(struct mapped_device *md, in dm_put_live_table()
691 void dm_sync_table(struct mapped_device *md) in dm_sync_table()
701 static struct dm_table *dm_get_live_table_fast(struct mapped_device *md) __acquires(RCU) in dm_get_live_table_fast()
707 static void dm_put_live_table_fast(struct mapped_device *md) __releases(RCU) in dm_put_live_table_fast()
712 static inline struct dm_table *dm_get_live_table_bio(struct mapped_device *md, in dm_get_live_table_bio()
721 static inline void dm_put_live_table_bio(struct mapped_device *md, int srcu_idx, in dm_put_live_table_bio()
736 struct mapped_device *md) in open_table_device()
762 static void close_table_device(struct table_device *td, struct mapped_device *md) in close_table_device()
786 int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode, in dm_get_table_device()
823 void dm_put_table_device(struct mapped_device *md, struct dm_dev *d) in dm_put_table_device()
852 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_get_geometry()
862 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_set_geometry()
876 static int __noflush_suspending(struct mapped_device *md) in __noflush_suspending()
883 struct mapped_device *md = io->md; in dm_requeue_add_io()
895 static void dm_kick_requeue(struct mapped_device *md, bool first_stage) in dm_kick_requeue()
913 struct mapped_device *md = io->md; in dm_handle_requeue()
957 struct mapped_device *md = io->md; in __dm_io_complete()
1005 struct mapped_device *md = container_of(work, struct mapped_device, in dm_wq_requeue_work()
1086 void disable_discard(struct mapped_device *md) in disable_discard()
1094 void disable_write_zeroes(struct mapped_device *md) in disable_write_zeroes()
1114 struct mapped_device *md = io->md; in clone_endio()
1208 static struct dm_target *dm_dax_get_live_target(struct mapped_device *md, in dm_dax_get_live_target()
1230 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_direct_access()
1257 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_zero_page_range()
1284 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_recovery_write()
1385 static noinline void __set_swap_bios_limit(struct mapped_device *md, int latch) in __set_swap_bios_limit()
1406 struct mapped_device *md = io->md; in __map_bio()
1723 static void init_clone_info(struct clone_info *ci, struct mapped_device *md, in init_clone_info()
1743 static void dm_split_and_process_bio(struct mapped_device *md, in dm_split_and_process_bio()
1802 struct mapped_device *md = bio->bi_bdev->bd_disk->private_data; in dm_submit_bio()
1956 static void cleanup_mapped_device(struct mapped_device *md) in cleanup_mapped_device()
2000 static struct mapped_device *alloc_dev(int minor) in alloc_dev()
2003 struct mapped_device *md; in alloc_dev()
2115 static void unlock_fs(struct mapped_device *md);
2117 static void free_dev(struct mapped_device *md) in free_dev()
2140 struct mapped_device *md = (struct mapped_device *) context; in event_callback()
2156 static struct dm_table *__bind(struct mapped_device *md, struct dm_table *t, in __bind()
2229 static struct dm_table *__unbind(struct mapped_device *md) in __unbind()
2246 int dm_create(int minor, struct mapped_device **result) in dm_create()
2248 struct mapped_device *md; in dm_create()
2264 void dm_lock_md_type(struct mapped_device *md) in dm_lock_md_type()
2269 void dm_unlock_md_type(struct mapped_device *md) in dm_unlock_md_type()
2274 void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type) in dm_set_md_type()
2280 enum dm_queue_mode dm_get_md_type(struct mapped_device *md) in dm_get_md_type()
2285 struct target_type *dm_get_immutable_target_type(struct mapped_device *md) in dm_get_immutable_target_type()
2294 struct queue_limits *dm_get_queue_limits(struct mapped_device *md) in dm_get_queue_limits()
2304 int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t) in dm_setup_md_queue()
2349 struct mapped_device *dm_get_md(dev_t dev) in dm_get_md()
2351 struct mapped_device *md; in dm_get_md()
2373 void *dm_get_mdptr(struct mapped_device *md) in dm_get_mdptr()
2378 void dm_set_mdptr(struct mapped_device *md, void *ptr) in dm_set_mdptr()
2383 void dm_get(struct mapped_device *md) in dm_get()
2389 int dm_hold(struct mapped_device *md) in dm_hold()
2402 const char *dm_device_name(struct mapped_device *md) in dm_device_name()
2408 static void __dm_destroy(struct mapped_device *md, bool wait) in __dm_destroy()
2455 void dm_destroy(struct mapped_device *md) in dm_destroy()
2460 void dm_destroy_immediate(struct mapped_device *md) in dm_destroy_immediate()
2465 void dm_put(struct mapped_device *md) in dm_put()
2471 static bool dm_in_flight_bios(struct mapped_device *md) in dm_in_flight_bios()
2482 static int dm_wait_for_bios_completion(struct mapped_device *md, unsigned int task_state) in dm_wait_for_bios_completion()
2507 static int dm_wait_for_completion(struct mapped_device *md, unsigned int task_state) in dm_wait_for_completion()
2534 struct mapped_device *md = container_of(work, struct mapped_device, work); in dm_wq_work()
2549 static void dm_queue_flush(struct mapped_device *md) in dm_queue_flush()
2559 struct dm_table *dm_swap_table(struct mapped_device *md, struct dm_table *table) in dm_swap_table()
2604 static int lock_fs(struct mapped_device *md) in lock_fs()
2616 static void unlock_fs(struct mapped_device *md) in unlock_fs()
2633 static int __dm_suspend(struct mapped_device *md, struct dm_table *map, in __dm_suspend()
2741 int dm_suspend(struct mapped_device *md, unsigned suspend_flags) in dm_suspend()
2778 static int __dm_resume(struct mapped_device *md, struct dm_table *map) in __dm_resume()
2801 int dm_resume(struct mapped_device *md) in dm_resume()
2843 static void __dm_internal_suspend(struct mapped_device *md, unsigned suspend_flags) in __dm_internal_suspend()
2873 static void __dm_internal_resume(struct mapped_device *md) in __dm_internal_resume()
2895 void dm_internal_suspend_noflush(struct mapped_device *md) in dm_internal_suspend_noflush()
2903 void dm_internal_resume(struct mapped_device *md) in dm_internal_resume()
2916 void dm_internal_suspend_fast(struct mapped_device *md) in dm_internal_suspend_fast()
2929 void dm_internal_resume_fast(struct mapped_device *md) in dm_internal_resume_fast()
2944 int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, in dm_kobject_uevent()
2968 uint32_t dm_next_uevent_seq(struct mapped_device *md) in dm_next_uevent_seq()
2973 uint32_t dm_get_event_nr(struct mapped_device *md) in dm_get_event_nr()
2978 int dm_wait_event(struct mapped_device *md, int event_nr) in dm_wait_event()
2984 void dm_uevent_add(struct mapped_device *md, struct list_head *elist) in dm_uevent_add()
2997 struct gendisk *dm_disk(struct mapped_device *md) in dm_disk()
3003 struct kobject *dm_kobject(struct mapped_device *md) in dm_kobject()
3008 struct mapped_device *dm_get_from_kobject(struct kobject *kobj) in dm_get_from_kobject()
3010 struct mapped_device *md; in dm_get_from_kobject()
3012 md = container_of(kobj, struct mapped_device, kobj_holder.kobj); in dm_get_from_kobject()
3026 int dm_suspended_md(struct mapped_device *md) in dm_suspended_md()
3031 static int dm_post_suspending_md(struct mapped_device *md) in dm_post_suspending_md()
3036 int dm_suspended_internally_md(struct mapped_device *md) in dm_suspended_internally_md()
3041 int dm_test_deferred_remove_flag(struct mapped_device *md) in dm_test_deferred_remove_flag()
3088 struct mapped_device *md = bdev->bd_disk->private_data; in dm_call_pr()
3297 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_clear()