Lines Matching refs:mapped_device
308 int dm_deleting_md(struct mapped_device *md)
315 struct mapped_device *md;
339 struct mapped_device *md;
356 int dm_open_count(struct mapped_device *md)
364 int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred)
384 int dm_cancel_deferred_remove(struct mapped_device *md)
407 struct mapped_device *md = bdev->bd_disk->private_data;
412 static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx,
446 static void dm_unprepare_ioctl(struct mapped_device *md, int srcu_idx)
454 struct mapped_device *md = bdev->bd_disk->private_data;
573 static struct dm_io *alloc_io(struct mapped_device *md, struct bio *bio)
615 struct mapped_device *md = ci->io->md;
668 static void queue_io(struct mapped_device *md, struct bio *bio)
683 struct dm_table *dm_get_live_table(struct mapped_device *md,
691 void dm_put_live_table(struct mapped_device *md,
697 void dm_sync_table(struct mapped_device *md)
707 static struct dm_table *dm_get_live_table_fast(struct mapped_device *md) __acquires(RCU)
713 static void dm_put_live_table_fast(struct mapped_device *md) __releases(RCU)
723 static struct table_device *open_table_device(struct mapped_device *md,
770 static void close_table_device(struct table_device *td, struct mapped_device *md)
792 int dm_get_table_device(struct mapped_device *md, dev_t dev, blk_mode_t mode,
814 void dm_put_table_device(struct mapped_device *md, struct dm_dev *d)
827 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo)
837 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo)
851 static int __noflush_suspending(struct mapped_device *md)
858 struct mapped_device *md = io->md;
870 static void dm_kick_requeue(struct mapped_device *md, bool first_stage)
888 struct mapped_device *md = io->md;
932 struct mapped_device *md = io->md;
980 struct mapped_device *md = container_of(work, struct mapped_device,
1066 static inline struct queue_limits *dm_get_queue_limits(struct mapped_device *md)
1071 void disable_discard(struct mapped_device *md)
1079 void disable_write_zeroes(struct mapped_device *md)
1099 struct mapped_device *md = io->md;
1201 static struct dm_target *dm_dax_get_live_target(struct mapped_device *md,
1223 struct mapped_device *md = dax_get_private(dax_dev);
1250 struct mapped_device *md = dax_get_private(dax_dev);
1277 struct mapped_device *md = dax_get_private(dax_dev);
1378 static noinline void __set_swap_bios_limit(struct mapped_device *md, int latch)
1399 struct mapped_device *md = io->md;
1734 static void init_clone_info(struct clone_info *ci, struct mapped_device *md,
1754 static void dm_split_and_process_bio(struct mapped_device *md,
1815 struct mapped_device *md = bio->bi_bdev->bd_disk->private_data;
1970 static void cleanup_mapped_device(struct mapped_device *md)
2027 static struct mapped_device *alloc_dev(int minor)
2030 struct mapped_device *md;
2144 static void unlock_fs(struct mapped_device *md);
2146 static void free_dev(struct mapped_device *md)
2169 struct mapped_device *md = context;
2185 static struct dm_table *__bind(struct mapped_device *md, struct dm_table *t,
2255 static struct dm_table *__unbind(struct mapped_device *md)
2272 int dm_create(int minor, struct mapped_device **result)
2274 struct mapped_device *md;
2290 void dm_lock_md_type(struct mapped_device *md)
2295 void dm_unlock_md_type(struct mapped_device *md)
2300 void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type)
2306 enum dm_queue_mode dm_get_md_type(struct mapped_device *md)
2311 struct target_type *dm_get_immutable_target_type(struct mapped_device *md)
2319 int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t)
2389 struct mapped_device *dm_get_md(dev_t dev)
2391 struct mapped_device *md;
2413 void *dm_get_mdptr(struct mapped_device *md)
2418 void dm_set_mdptr(struct mapped_device *md, void *ptr)
2423 void dm_get(struct mapped_device *md)
2429 int dm_hold(struct mapped_device *md)
2442 const char *dm_device_name(struct mapped_device *md)
2448 static void __dm_destroy(struct mapped_device *md, bool wait)
2481 * No one should increment the reference count of the mapped_device,
2482 * after the mapped_device state becomes DMF_FREEING.
2488 DMWARN("%s: Forcibly removing mapped_device still in use! (%d users)",
2495 void dm_destroy(struct mapped_device *md)
2500 void dm_destroy_immediate(struct mapped_device *md)
2505 void dm_put(struct mapped_device *md)
2511 static bool dm_in_flight_bios(struct mapped_device *md)
2522 static int dm_wait_for_bios_completion(struct mapped_device *md, unsigned int task_state)
2547 static int dm_wait_for_completion(struct mapped_device *md, unsigned int task_state)
2574 struct mapped_device *md = container_of(work, struct mapped_device, work);
2590 static void dm_queue_flush(struct mapped_device *md)
2600 struct dm_table *dm_swap_table(struct mapped_device *md, struct dm_table *table)
2645 static int lock_fs(struct mapped_device *md)
2657 static void unlock_fs(struct mapped_device *md)
2674 static int __dm_suspend(struct mapped_device *md, struct dm_table *map,
2782 int dm_suspend(struct mapped_device *md, unsigned int suspend_flags)
2823 static int __dm_resume(struct mapped_device *md, struct dm_table *map)
2847 int dm_resume(struct mapped_device *md)
2889 static void __dm_internal_suspend(struct mapped_device *md, unsigned int suspend_flags)
2919 static void __dm_internal_resume(struct mapped_device *md)
2955 void dm_internal_suspend_noflush(struct mapped_device *md)
2963 void dm_internal_resume(struct mapped_device *md)
2976 void dm_internal_suspend_fast(struct mapped_device *md)
2989 void dm_internal_resume_fast(struct mapped_device *md)
3006 int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
3032 uint32_t dm_next_uevent_seq(struct mapped_device *md)
3037 uint32_t dm_get_event_nr(struct mapped_device *md)
3042 int dm_wait_event(struct mapped_device *md, int event_nr)
3048 void dm_uevent_add(struct mapped_device *md, struct list_head *elist)
3061 struct gendisk *dm_disk(struct mapped_device *md)
3067 struct kobject *dm_kobject(struct mapped_device *md)
3072 struct mapped_device *dm_get_from_kobject(struct kobject *kobj)
3074 struct mapped_device *md;
3076 md = container_of(kobj, struct mapped_device, kobj_holder.kobj);
3090 int dm_suspended_md(struct mapped_device *md)
3095 static int dm_post_suspending_md(struct mapped_device *md)
3100 int dm_suspended_internally_md(struct mapped_device *md)
3105 int dm_test_deferred_remove_flag(struct mapped_device *md)
3154 struct mapped_device *md = bdev->bd_disk->private_data;
3363 struct mapped_device *md = bdev->bd_disk->private_data;