Lines Matching full:md

15 	ssize_t (*show)(struct mapped_device *md, char *p);
16 ssize_t (*store)(struct mapped_device *md, const char *p, size_t count);
27 struct mapped_device *md; in dm_attr_show() local
34 md = dm_get_from_kobject(kobj); in dm_attr_show()
35 if (!md) in dm_attr_show()
38 ret = dm_attr->show(md, page); in dm_attr_show()
39 dm_put(md); in dm_attr_show()
52 struct mapped_device *md; in dm_attr_store() local
59 md = dm_get_from_kobject(kobj); in dm_attr_store()
60 if (!md) in dm_attr_store()
63 ret = dm_attr->store(md, page, count); in dm_attr_store()
64 dm_put(md); in dm_attr_store()
69 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) in dm_attr_name_show() argument
71 if (dm_copy_name_and_uuid(md, buf, NULL)) in dm_attr_name_show()
78 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) in dm_attr_uuid_show() argument
80 if (dm_copy_name_and_uuid(md, NULL, buf)) in dm_attr_uuid_show()
87 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf) in dm_attr_suspended_show() argument
89 sprintf(buf, "%d\n", dm_suspended_md(md)); in dm_attr_suspended_show()
94 static ssize_t dm_attr_use_blk_mq_show(struct mapped_device *md, char *buf) in dm_attr_use_blk_mq_show() argument
131 * because nobody using md yet, no need to call explicit dm_get/put
133 int dm_sysfs_init(struct mapped_device *md) in dm_sysfs_init() argument
135 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
136 &disk_to_dev(dm_disk(md))->kobj, in dm_sysfs_init()
143 void dm_sysfs_exit(struct mapped_device *md) in dm_sysfs_exit() argument
145 struct kobject *kobj = dm_kobject(md); in dm_sysfs_exit()