Lines Matching defs:dattr
188 struct class_attribute *dattr;
191 dattr = container_of(attr, struct class_attribute, attr);
193 if (dattr->show)
194 error = dattr->show(container_of(kobj, struct class, kobj),
195 dattr, buf);
203 struct class_attribute *dattr;
206 dattr = container_of(attr, struct class_attribute, attr);
208 if (dattr->store)
209 error = dattr->store(container_of(kobj, struct class, kobj),
210 dattr, buf, count);
250 struct device_attribute *dattr;
253 dattr = container_of(attr, struct device_attribute, attr);
255 if (dattr->show)
256 error = dattr->show(container_of(kobj, struct device, kobj),
257 dattr, buf);
265 struct device_attribute *dattr;
268 dattr = container_of(attr, struct device_attribute, attr);
270 if (dattr->store)
271 error = dattr->store(container_of(kobj, struct device, kobj),
272 dattr, buf, count);