/Linux-v4.19/include/linux/ |
D | device-mapper.h | 17 struct dm_target; 44 typedef int (*dm_ctr_fn) (struct dm_target *target, 51 typedef void (*dm_dtr_fn) (struct dm_target *ti); 60 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio); 61 typedef int (*dm_clone_and_map_request_fn) (struct dm_target *ti, 75 typedef int (*dm_endio_fn) (struct dm_target *ti, 77 typedef int (*dm_request_endio_fn) (struct dm_target *ti, 81 typedef void (*dm_presuspend_fn) (struct dm_target *ti); 82 typedef void (*dm_presuspend_undo_fn) (struct dm_target *ti); 83 typedef void (*dm_postsuspend_fn) (struct dm_target *ti); [all …]
|
D | dm-dirty-log.h | 24 int (*flush_callback_fn)(struct dm_target *ti); 35 int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti, 140 struct dm_target *ti, 141 int (*flush_callback_fn)(struct dm_target *ti),
|
/Linux-v4.19/drivers/md/ |
D | dm-linear.c | 29 static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) in linear_ctr() 73 static void linear_dtr(struct dm_target *ti) in linear_dtr() 81 static sector_t linear_map_sector(struct dm_target *ti, sector_t bi_sector) in linear_map_sector() 88 static void linear_map_bio(struct dm_target *ti, struct bio *bio) in linear_map_bio() 98 static int linear_map(struct dm_target *ti, struct bio *bio) in linear_map() 106 static int linear_end_io(struct dm_target *ti, struct bio *bio, in linear_end_io() 118 static void linear_status(struct dm_target *ti, status_type_t type, in linear_status() 135 static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in linear_prepare_ioctl() 151 static int linear_iterate_devices(struct dm_target *ti, in linear_iterate_devices() 160 static long linear_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in linear_dax_direct_access() [all …]
|
D | dm-table.c | 44 struct dm_target *targets; 163 struct dm_target *n_targets; in alloc_targets() 170 n_highs = (sector_t *) dm_vcalloc(num + 1, sizeof(struct dm_target) + in alloc_targets() 175 n_targets = (struct dm_target *) (n_highs + num); in alloc_targets() 247 struct dm_target *tgt = t->targets + i; in dm_table_destroy() 282 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, in device_area_is_invalid() 429 int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, in dm_get_device() 470 static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, in dm_set_device_limits() 502 void dm_put_device(struct dm_target *ti, struct dm_dev *d) in dm_put_device() 530 static int adjoin(struct dm_table *table, struct dm_target *ti) in adjoin() [all …]
|
D | dm-unstripe.c | 27 static void cleanup_unstripe(struct unstripe_c *uc, struct dm_target *ti) in cleanup_unstripe() 38 static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in unstripe_ctr() 109 static void unstripe_dtr(struct dm_target *ti) in unstripe_dtr() 116 static sector_t map_to_core(struct dm_target *ti, struct bio *bio) in map_to_core() 134 static int unstripe_map(struct dm_target *ti, struct bio *bio) in unstripe_map() 144 static void unstripe_status(struct dm_target *ti, status_type_t type, in unstripe_status() 162 static int unstripe_iterate_devices(struct dm_target *ti, in unstripe_iterate_devices() 170 static void unstripe_io_hints(struct dm_target *ti, in unstripe_io_hints()
|
D | dm-target.c | 112 static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args) in io_err_ctr() 122 static void io_err_dtr(struct dm_target *tt) in io_err_dtr() 127 static int io_err_map(struct dm_target *tt, struct bio *bio) in io_err_map() 132 static int io_err_clone_and_map_rq(struct dm_target *ti, struct request *rq, in io_err_clone_and_map_rq() 143 static long io_err_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in io_err_dax_direct_access()
|
D | dm-switch.c | 39 struct dm_target *ti; 59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() 77 static int alloc_region_table(struct dm_target *ti, unsigned nr_paths) in alloc_region_table() 205 static int parse_path(struct dm_arg_set *as, struct dm_target *ti) in parse_path() 234 static void switch_dtr(struct dm_target *ti) in switch_dtr() 253 static int switch_ctr(struct dm_target *ti, unsigned argc, char **argv) in switch_ctr() 320 static int switch_map(struct dm_target *ti, struct bio *bio) in switch_map() 470 static int switch_message(struct dm_target *ti, unsigned argc, char **argv, in switch_message() 490 static void switch_status(struct dm_target *ti, status_type_t type, in switch_status() 516 static int switch_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in switch_prepare_ioctl() [all …]
|
D | dm-flakey.c | 48 struct dm_target *ti) in parse_features() 184 static int flakey_ctr(struct dm_target *ti, unsigned int argc, char **argv) in flakey_ctr() 263 static void flakey_dtr(struct dm_target *ti) in flakey_dtr() 271 static sector_t flakey_map_sector(struct dm_target *ti, sector_t bi_sector) in flakey_map_sector() 278 static void flakey_map_bio(struct dm_target *ti, struct bio *bio) in flakey_map_bio() 307 static int flakey_map(struct dm_target *ti, struct bio *bio) in flakey_map() 374 static int flakey_end_io(struct dm_target *ti, struct bio *bio, in flakey_end_io() 409 static void flakey_status(struct dm_target *ti, status_type_t type, in flakey_status() 445 static int flakey_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in flakey_prepare_ioctl() 460 static int flakey_iterate_devices(struct dm_target *ti, iterate_devices_callout_fn fn, void *data) in flakey_iterate_devices()
|
D | dm-stripe.c | 39 struct dm_target *ti; 74 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() 98 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in stripe_ctr() 204 static void stripe_dtr(struct dm_target *ti) in stripe_dtr() 286 static int stripe_map(struct dm_target *ti, struct bio *bio) in stripe_map() 317 static long stripe_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_direct_access() 338 static size_t stripe_dax_copy_from_iter(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_copy_from_iter() 357 static size_t stripe_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_copy_to_iter() 395 static void stripe_status(struct dm_target *ti, status_type_t type, in stripe_status() 425 static int stripe_end_io(struct dm_target *ti, struct bio *bio, in stripe_end_io() [all …]
|
D | dm-delay.c | 120 static void delay_dtr(struct dm_target *ti) in delay_dtr() 138 static int delay_class_ctr(struct dm_target *ti, struct delay_class *c, char **argv) in delay_class_ctr() 172 static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv) in delay_ctr() 265 static void delay_presuspend(struct dm_target *ti) in delay_presuspend() 274 static void delay_resume(struct dm_target *ti) in delay_resume() 281 static int delay_map(struct dm_target *ti, struct bio *bio) in delay_map() 306 static void delay_status(struct dm_target *ti, status_type_t type, in delay_status() 331 static int delay_iterate_devices(struct dm_target *ti, in delay_iterate_devices()
|
D | dm-uevent.h | 35 struct dm_target *ti, const char *path, 52 struct dm_target *ti, const char *path, in dm_path_uevent()
|
D | dm.h | 54 struct dm_target *dm_table_get_target(struct dm_table *t, unsigned int index); 55 struct dm_target *dm_table_find_target(struct dm_table *t, sector_t sector); 69 struct dm_target *dm_table_get_immutable_target(struct dm_table *t); 70 struct dm_target *dm_table_get_wildcard_target(struct dm_table *t);
|
D | dm.c | 80 struct dm_target *ti; 465 struct dm_target *tgt; in dm_prepare_ioctl() 566 static struct dm_target_io *alloc_tio(struct clone_info *ci, struct dm_target *ti, in alloc_tio() 971 static sector_t max_io_len_target_boundary(sector_t sector, struct dm_target *ti) in max_io_len_target_boundary() 978 static sector_t max_io_len(sector_t sector, struct dm_target *ti) in max_io_len() 1001 int dm_set_target_max_io_len(struct dm_target *ti, sector_t len) in dm_set_target_max_io_len() 1024 static struct dm_target *dm_dax_get_live_target(struct mapped_device *md, in dm_dax_get_live_target() 1029 struct dm_target *ti; in dm_dax_get_live_target() 1047 struct dm_target *ti; in dm_dax_direct_access() 1074 struct dm_target *ti; in dm_dax_copy_from_iter() [all …]
|
D | dm-zero.c | 18 static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv) in zero_ctr() 36 static int zero_map(struct dm_target *ti, struct bio *bio) in zero_map()
|
D | dm-mpath.c | 90 struct dm_target *ti; 157 static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti) in free_pgpaths() 169 struct dm_target *ti) in free_priority_group() 182 static struct multipath *alloc_multipath(struct dm_target *ti) in alloc_multipath() 203 static int alloc_multipath_stage2(struct dm_target *ti, struct multipath *m) in alloc_multipath_stage2() 490 static int multipath_clone_and_map(struct dm_target *ti, struct request *rq, in multipath_clone_and_map() 660 static int multipath_map_bio(struct dm_target *ti, struct bio *bio) in multipath_map_bio() 773 struct dm_target *ti) in parse_path_selector() 865 struct dm_target *ti) in parse_path() 925 struct dm_target *ti = m->ti; in parse_priority_group() [all …]
|
D | dm-raid1.c | 54 struct dm_target *ti; 254 static int mirror_flush(struct dm_target *ti) in mirror_flush() 878 struct dm_target *ti, in alloc_context() 928 static void free_context(struct mirror_set *ms, struct dm_target *ti, in free_context() 939 static int get_mirror(struct mirror_set *ms, struct dm_target *ti, in get_mirror() 969 static struct dm_dirty_log *create_dirty_log(struct dm_target *ti, in create_dirty_log() 1008 struct dm_target *ti = ms->ti; in parse_features() 1065 static int mirror_ctr(struct dm_target *ti, unsigned int argc, char **argv) in mirror_ctr() 1171 static void mirror_dtr(struct dm_target *ti) in mirror_dtr() 1186 static int mirror_map(struct dm_target *ti, struct bio *bio) in mirror_map() [all …]
|
D | dm-log-writes.c | 510 static int log_writes_ctr(struct dm_target *ti, unsigned int argc, char **argv) in log_writes_ctr() 614 static void log_writes_dtr(struct dm_target *ti) in log_writes_dtr() 639 static void normal_map_bio(struct dm_target *ti, struct bio *bio) in normal_map_bio() 646 static int log_writes_map(struct dm_target *ti, struct bio *bio) in log_writes_map() 771 static int normal_end_io(struct dm_target *ti, struct bio *bio, in normal_end_io() 800 static void log_writes_status(struct dm_target *ti, status_type_t type, in log_writes_status() 821 static int log_writes_prepare_ioctl(struct dm_target *ti, in log_writes_prepare_ioctl() 836 static int log_writes_iterate_devices(struct dm_target *ti, in log_writes_iterate_devices() 849 static int log_writes_message(struct dm_target *ti, unsigned argc, char **argv, in log_writes_message() 868 static void log_writes_io_hints(struct dm_target *ti, struct queue_limits *limits) in log_writes_io_hints() [all …]
|
D | dm-zoned-target.c | 574 static int dmz_map(struct dm_target *ti, struct bio *bio) in dmz_map() 629 static int dmz_end_io(struct dm_target *ti, struct bio *bio, blk_status_t *error) in dmz_end_io() 658 static int dmz_get_zoned_device(struct dm_target *ti, char *path) in dmz_get_zoned_device() 721 static void dmz_put_zoned_device(struct dm_target *ti) in dmz_put_zoned_device() 733 static int dmz_ctr(struct dm_target *ti, unsigned int argc, char **argv) in dmz_ctr() 844 static void dmz_dtr(struct dm_target *ti) in dmz_dtr() 872 static void dmz_io_hints(struct dm_target *ti, struct queue_limits *limits) in dmz_io_hints() 900 static int dmz_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in dmz_prepare_ioctl() 912 static void dmz_suspend(struct dm_target *ti) in dmz_suspend() 924 static void dmz_resume(struct dm_target *ti) in dmz_resume() [all …]
|
D | dm-snap.c | 55 struct dm_target *ti; 306 struct dm_target *ti; 1103 static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) in snapshot_ctr() 1329 static void snapshot_dtr(struct dm_target *ti) in snapshot_dtr() 1688 static int snapshot_map(struct dm_target *ti, struct bio *bio) in snapshot_map() 1807 static int snapshot_merge_map(struct dm_target *ti, struct bio *bio) in snapshot_merge_map() 1867 static int snapshot_end_io(struct dm_target *ti, struct bio *bio, in snapshot_end_io() 1878 static void snapshot_merge_presuspend(struct dm_target *ti) in snapshot_merge_presuspend() 1885 static int snapshot_preresume(struct dm_target *ti) in snapshot_preresume() 1911 static void snapshot_resume(struct dm_target *ti) in snapshot_resume() [all …]
|
D | dm-log.c | 148 struct dm_target *ti, in dm_dirty_log_create() 149 int (*flush_callback_fn)(struct dm_target *ti), in dm_dirty_log_create() 218 struct dm_target *ti; 346 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() 363 static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti, in create_log_context() 516 static int core_ctr(struct dm_dirty_log *log, struct dm_target *ti, in core_ctr() 542 static int disk_ctr(struct dm_dirty_log *log, struct dm_target *ti, in disk_ctr()
|
D | dm-uevent.c | 72 struct dm_target *ti, in dm_build_path_uevent() 183 void dm_path_uevent(enum dm_uevent_type event_type, struct dm_target *ti, in dm_path_uevent()
|
D | dm-crypt.c | 90 int (*ctr)(struct crypt_config *cc, struct dm_target *ti, 372 struct dm_target *ti, in alloc_essiv_cipher() 422 static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_essiv_ctr() 482 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_benbi_ctr() 543 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_lmk_ctr() 701 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_tcw_ctr() 948 static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti) in crypt_integrity_ctr() 2196 static void crypt_dtr(struct dm_target *ti) in crypt_dtr() 2248 static int crypt_ctr_ivmode(struct dm_target *ti, const char *ivmode) in crypt_ctr_ivmode() 2394 static int crypt_ctr_cipher_new(struct dm_target *ti, char *cipher_in, char *key, in crypt_ctr_cipher_new() [all …]
|
D | dm-thin.c | 231 struct dm_target *ti; /* Only set if a pool target is bound */ 292 struct dm_target *ti; 2661 static int thin_bio_map(struct dm_target *ti, struct bio *bio) in thin_bio_map() 2822 static int bind_control_target(struct pool *pool, struct dm_target *ti) in bind_control_target() 2848 static void unbind_control_target(struct pool *pool, struct dm_target *ti) in unbind_control_target() 3073 static void pool_dtr(struct dm_target *ti) in pool_dtr() 3089 struct dm_target *ti) in parse_pool_features() 3212 static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv) in pool_ctr() 3356 static int pool_map(struct dm_target *ti, struct bio *bio) in pool_map() 3374 static int maybe_resize_data_dev(struct dm_target *ti, bool *need_commit) in maybe_resize_data_dev() [all …]
|
D | dm-verity-target.c | 633 static int verity_map(struct dm_target *ti, struct bio *bio) in verity_map() 678 static void verity_status(struct dm_target *ti, status_type_t type, in verity_status() 742 static int verity_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in verity_prepare_ioctl() 754 static int verity_iterate_devices(struct dm_target *ti, in verity_iterate_devices() 762 static void verity_io_hints(struct dm_target *ti, struct queue_limits *limits) in verity_io_hints() 775 static void verity_dtr(struct dm_target *ti) in verity_dtr() 808 struct dm_target *ti = v->ti; in verity_alloc_most_once() 862 struct dm_target *ti = v->ti; in verity_parse_opt_args() 930 static int verity_ctr(struct dm_target *ti, unsigned argc, char **argv) in verity_ctr()
|
D | dm-era-target.c | 1138 struct dm_target *ti; 1422 static int era_ctr(struct dm_target *ti, unsigned argc, char **argv) in era_ctr() 1522 static void era_dtr(struct dm_target *ti) in era_dtr() 1527 static int era_map(struct dm_target *ti, struct bio *bio) in era_map() 1552 static void era_postsuspend(struct dm_target *ti) in era_postsuspend() 1566 static int era_preresume(struct dm_target *ti) in era_preresume() 1597 static void era_status(struct dm_target *ti, status_type_t type, in era_status() 1638 static int era_message(struct dm_target *ti, unsigned argc, char **argv, in era_message() 1666 static int era_iterate_devices(struct dm_target *ti, in era_iterate_devices() 1673 static void era_io_hints(struct dm_target *ti, struct queue_limits *limits) in era_io_hints()
|