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