Lines Matching refs:attr
18 struct attribute attr;
20 struct mdev_type_attribute *attr, char *buf);
22 struct mdev_type_attribute *attr, const char *buf,
34 struct mdev_type_attribute *attr = to_mdev_type_attr(__attr);
38 if (attr->show)
39 ret = attr->show(type, attr, buf);
47 struct mdev_type_attribute *attr = to_mdev_type_attr(__attr);
51 if (attr->store)
52 ret = attr->store(type, attr, buf, count);
62 struct mdev_type_attribute *attr, const char *buf,
90 struct mdev_type_attribute *attr, char *buf)
97 struct mdev_type_attribute *attr, char *buf)
106 struct mdev_type_attribute *attr,
119 struct mdev_type_attribute *attr,
127 &mdev_type_attr_create.attr,
128 &mdev_type_attr_device_api.attr,
129 &mdev_type_attr_name.attr,
130 &mdev_type_attr_available_instances.attr,
131 &mdev_type_attr_description.attr,
136 struct attribute *attr, int n)
138 if (attr == &mdev_type_attr_description.attr &&
141 return attr->mode;
240 static ssize_t remove_store(struct device *dev, struct device_attribute *attr,
249 if (val && device_remove_file_self(dev, attr)) {
263 &dev_attr_remove.attr,