Lines Matching refs:edp
36 struct exofs_dev *edp = container_of(kobj, struct exofs_dev, ed_kobj); in odev_attr_show() local
39 return a->show ? a->show(edp, buf) : 0; in odev_attr_show()
45 struct exofs_dev *edp = container_of(kobj, struct exofs_dev, ed_kobj); in odev_attr_store() local
48 return a->store ? a->store(edp, buf, len) : len; in odev_attr_store()
59 static ssize_t osdname_show(struct exofs_dev *edp, char *buf) in osdname_show() argument
61 struct osd_dev *odev = edp->ored.od; in osdname_show()
67 static ssize_t systemid_show(struct exofs_dev *edp, char *buf) in systemid_show() argument
69 struct osd_dev *odev = edp->ored.od; in systemid_show()
76 static ssize_t uri_show(struct exofs_dev *edp, char *buf) in uri_show() argument
78 return snprintf(buf, edp->urilen, "%s", edp->uri); in uri_show()
81 static ssize_t uri_store(struct exofs_dev *edp, const char *buf, size_t len) in uri_store() argument
85 edp->urilen = strlen(buf) + 1; in uri_store()
86 new_uri = krealloc(edp->uri, edp->urilen, GFP_KERNEL); in uri_store()
89 edp->uri = new_uri; in uri_store()
90 strncpy(edp->uri, buf, edp->urilen); in uri_store()
91 return edp->urilen; in uri_store()