Lines Matching full:md
26 struct mapped_device *md; in dm_attr_show() local
33 md = dm_get_from_kobject(kobj); in dm_attr_show()
34 if (!md) in dm_attr_show()
37 ret = dm_attr->show(md, page); in dm_attr_show()
38 dm_put(md); in dm_attr_show()
51 struct mapped_device *md; in dm_attr_store() local
58 md = dm_get_from_kobject(kobj); in dm_attr_store()
59 if (!md) in dm_attr_store()
62 ret = dm_attr->store(md, page, count); in dm_attr_store()
63 dm_put(md); in dm_attr_store()
68 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) in dm_attr_name_show() argument
70 if (dm_copy_name_and_uuid(md, buf, NULL)) in dm_attr_name_show()
77 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) in dm_attr_uuid_show() argument
79 if (dm_copy_name_and_uuid(md, NULL, 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() argument
88 sprintf(buf, "%d\n", dm_suspended_md(md)); 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() argument
130 * because nobody using md yet, no need to call explicit dm_get/put
132 int dm_sysfs_init(struct mapped_device *md) in dm_sysfs_init() argument
134 return kobject_init_and_add(dm_kobject(md), &dm_ktype, in dm_sysfs_init()
135 &disk_to_dev(dm_disk(md))->kobj, in dm_sysfs_init()
142 void dm_sysfs_exit(struct mapped_device *md) in dm_sysfs_exit() argument
144 struct kobject *kobj = dm_kobject(md); in dm_sysfs_exit()