Home
last modified time | relevance | path

Searched refs:mapped_device (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/drivers/md/
Ddm.h74 void dm_lock_md_type(struct mapped_device *md);
75 void dm_unlock_md_type(struct mapped_device *md);
76 void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type);
77 enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
78 struct target_type *dm_get_immutable_target_type(struct mapped_device *md);
80 int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t);
104 void dm_cleanup_zoned_dev(struct mapped_device *md);
107 bool dm_is_zone_write(struct mapped_device *md, struct bio *bio);
110 static inline void dm_cleanup_zoned_dev(struct mapped_device *md) {} in dm_cleanup_zoned_dev()
112 static inline bool dm_is_zone_write(struct mapped_device *md, struct bio *bio) in dm_is_zone_write()
[all …]
Ddm-ima.h60 void dm_ima_reset_data(struct mapped_device *md);
62 void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap);
63 void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all);
64 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map);
65 void dm_ima_measure_on_device_rename(struct mapped_device *md);
69 static inline void dm_ima_reset_data(struct mapped_device *md) {} in dm_ima_reset_data()
71 static inline void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap) {} in dm_ima_measure_on_device_resume()
72 static inline void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all) {} in dm_ima_measure_on_device_remove()
73 static inline void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) {} in dm_ima_measure_on_table_clear()
74 static inline void dm_ima_measure_on_device_rename(struct mapped_device *md) {} in dm_ima_measure_on_device_rename()
Ddm-rq.h17 struct mapped_device;
33 int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t);
34 void dm_mq_cleanup_mapped_device(struct mapped_device *md);
39 void dm_mq_kick_requeue_list(struct mapped_device *md);
43 ssize_t dm_attr_rq_based_seq_io_merge_deadline_show(struct mapped_device *md, char *buf);
44 ssize_t dm_attr_rq_based_seq_io_merge_deadline_store(struct mapped_device *md,
Ddm-sysfs.c14 ssize_t (*show)(struct mapped_device *, char *);
15 ssize_t (*store)(struct mapped_device *, const char *, size_t count);
26 struct mapped_device *md; in dm_attr_show()
51 struct mapped_device *md; in dm_attr_store()
68 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) in dm_attr_name_show()
77 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) in dm_attr_uuid_show()
86 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf) in dm_attr_suspended_show()
93 static ssize_t dm_attr_use_blk_mq_show(struct mapped_device *md, char *buf) in dm_attr_use_blk_mq_show()
132 int dm_sysfs_init(struct mapped_device *md) in dm_sysfs_init()
142 void dm_sysfs_exit(struct mapped_device *md) in dm_sysfs_exit()
Ddm.c307 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()
[all …]
Ddm-rq.c18 struct mapped_device *md;
58 int dm_request_based(struct mapped_device *md) in dm_request_based()
126 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats()
142 static void rq_completed(struct mapped_device *md) in rq_completed()
158 struct mapped_device *md = tio->md; in dm_end_request()
174 void dm_mq_kick_requeue_list(struct mapped_device *md) in dm_mq_kick_requeue_list()
188 struct mapped_device *md = tio->md; in dm_requeue_original_request()
256 struct mapped_device *md = tio->md; in dm_softirq_done()
337 struct mapped_device *md) in init_tio()
364 struct mapped_device *md = tio->md; in map_request()
[all …]
Ddm-core.h46 struct mapped_device { struct
162 void disable_discard(struct mapped_device *md);
163 void disable_write_zeroes(struct mapped_device *md);
165 static inline sector_t dm_get_size(struct mapped_device *md) in dm_get_size()
170 static inline struct dm_stats *dm_get_stats(struct mapped_device *md) in dm_get_stats()
179 static inline bool dm_emulate_zone_append(struct mapped_device *md) in dm_emulate_zone_append()
189 struct mapped_device *md;
293 struct mapped_device *md;
Ddm-zone.c20 static int dm_blk_do_report_zones(struct mapped_device *md, struct dm_table *t, in dm_blk_do_report_zones()
58 struct mapped_device *md = disk->private_data; in dm_blk_report_zones()
124 bool dm_is_zone_write(struct mapped_device *md, struct bio *bio) in dm_is_zone_write()
140 void dm_cleanup_zoned_dev(struct mapped_device *md) in dm_cleanup_zoned_dev()
179 struct mapped_device *md = data; in dm_zone_revalidate_cb()
227 static int dm_revalidate_zones(struct mapped_device *md, struct dm_table *t) in dm_revalidate_zones()
292 struct mapped_device *md = t->md; in dm_set_zones_restrictions()
329 static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno, in dm_update_zone_wp_offset()
368 static bool dm_zone_map_bio_begin(struct mapped_device *md, in dm_zone_map_bio_begin()
424 static blk_status_t dm_zone_map_bio_end(struct mapped_device *md, unsigned int zno, in dm_zone_map_bio_end()
[all …]
Ddm-uevent.c31 struct mapped_device *md;
44 static struct dm_uevent *dm_uevent_alloc(struct mapped_device *md) in dm_uevent_alloc()
58 static struct dm_uevent *dm_build_path_uevent(struct mapped_device *md, in dm_build_path_uevent()
173 struct mapped_device *md = dm_table_get_md(ti->table); in dm_path_uevent()
Ddm-ioctl.c49 struct mapped_device *md;
182 struct mapped_device *md; in __get_dev_cell()
202 struct mapped_device *md) in alloc_cell()
247 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert()
324 struct mapped_device *md; in dm_hash_remove_all()
409 static struct mapped_device *dm_hash_rename(struct dm_ioctl *param, in dm_hash_rename()
415 struct mapped_device *md; in dm_hash_rename()
765 static struct dm_table *dm_get_inactive_table(struct mapped_device *md, int *srcu_idx) in dm_get_inactive_table()
788 static struct dm_table *dm_get_live_or_inactive_table(struct mapped_device *md, in dm_get_live_or_inactive_table()
800 static void __dev_status(struct mapped_device *md, struct dm_ioctl *param) in __dev_status()
[all …]
Ddm-stats.h27 struct mapped_device;
29 int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv,
Ddm-ima.c68 static int dm_ima_alloc_and_copy_name_uuid(struct mapped_device *md, char **dev_name, in dm_ima_alloc_and_copy_name_uuid()
103 static int dm_ima_alloc_and_copy_device_data(struct mapped_device *md, char **device_data, in dm_ima_alloc_and_copy_device_data()
150 static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str, in dm_ima_alloc_and_copy_capacity_str()
170 void dm_ima_reset_data(struct mapped_device *md) in dm_ima_reset_data()
370 void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap) in dm_ima_measure_on_device_resume()
475 void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all) in dm_ima_measure_on_device_remove()
606 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) in dm_ima_measure_on_table_clear()
705 void dm_ima_measure_on_device_rename(struct mapped_device *md) in dm_ima_measure_on_device_rename()
Ddm-stats.c257 void (*suspend_callback)(struct mapped_device *), in dm_stats_create() argument
258 void (*resume_callback)(struct mapped_device *), in dm_stats_create() argument
259 struct mapped_device *md) in dm_stats_create()
979 static int message_stats_create(struct mapped_device *md, in message_stats_create()
1104 static int message_stats_delete(struct mapped_device *md, in message_stats_delete()
1119 static int message_stats_clear(struct mapped_device *md, in message_stats_clear()
1134 static int message_stats_list(struct mapped_device *md, in message_stats_list()
1157 static int message_stats_print(struct mapped_device *md, in message_stats_print()
1184 static int message_stats_set_aux(struct mapped_device *md, in message_stats_set_aux()
1199 int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv, in dm_stats_message()
Ddm-verity-loadpin.c55 struct mapped_device *md; in dm_verity_loadpin_is_bdev_trusted()
Ddm-audit.c40 struct mapped_device *md = dm_table_get_md(ti->table); in dm_audit_log_ti()
Ddm-table.c129 unsigned num_targets, struct mapped_device *md) in dm_table_create()
160 static void free_devices(struct list_head *devices, struct mapped_device *md) in free_devices()
310 struct mapped_device *md) in upgrade_mode()
1003 static int dm_table_alloc_md_mempools(struct dm_table *t, struct mapped_device *md) in dm_table_alloc_md_mempools()
1161 struct mapped_device *md = t->md; in dm_table_register_integrity()
1204 struct mapped_device *md;
1232 struct mapped_device *md = in dm_keyslot_evict()
2142 struct mapped_device *dm_table_get_md(struct dm_table *t) in dm_table_get_md()
Ddm-thin.c233 struct mapped_device *pool_md;
345 struct mapped_device *thin_md;
549 static struct pool *__pool_table_lookup(struct mapped_device *md) in __pool_table_lookup()
2907 static struct pool *pool_create(struct mapped_device *pool_md, in pool_create()
3057 static struct pool *__pool_find(struct mapped_device *pool_md, in __pool_find()
4153 struct mapped_device *pool_md; in thin_ctr()
Ddm-verity-target.c225 struct mapped_device *md = dm_table_get_md(v->ti->table); in verity_handle_err()
/linux-6.1.9/include/linux/
Ddevice-mapper.h21 struct mapped_device;
445 int dm_create(int minor, struct mapped_device **md);
450 struct mapped_device *dm_get_md(dev_t dev);
451 void dm_get(struct mapped_device *md);
452 int dm_hold(struct mapped_device *md);
453 void dm_put(struct mapped_device *md);
458 void dm_set_mdptr(struct mapped_device *md, void *ptr);
459 void *dm_get_mdptr(struct mapped_device *md);
464 int dm_suspend(struct mapped_device *md, unsigned suspend_flags);
465 int dm_resume(struct mapped_device *md);
[all …]
/linux-6.1.9/drivers/ssb/
Dpci.c77 bus->mapped_device = dev; in ssb_pci_switch_core()
967 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read8()
980 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read16()
993 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read32()
1009 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_block_read()
1041 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_write8()
1054 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_write16()
1067 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_write32()
1083 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_block_write()
Dpcmcia.c161 bus->mapped_device = dev; in ssb_pcmcia_switch_core()
209 if (unlikely(dev != bus->mapped_device)) { in select_core_and_segment()
Dscan.c220 bus->mapped_device = NULL; in ssb_iounmap()
Dsdio.c222 bus->mapped_device = dev; in ssb_sdio_switch_core()
Dmain.c168 bus->mapped_device = NULL; in ssb_bus_resume()
/linux-6.1.9/include/linux/ssb/
Dssb.h424 struct ssb_device *mapped_device; member

12