Lines Matching refs:dattr
271 struct class_attribute *dattr;
274 dattr = container_of(attr, struct class_attribute, attr);
276 if (dattr->show)
277 error = dattr->show(container_of(kobj, struct class, kobj),
278 dattr, buf);
286 struct class_attribute *dattr;
289 dattr = container_of(attr, struct class_attribute, attr);
291 if (dattr->store)
292 error = dattr->store(container_of(kobj, struct class, kobj),
293 dattr, buf, count);
333 struct device_attribute *dattr;
336 dattr = container_of(attr, struct device_attribute, attr);
338 if (dattr->show)
339 error = dattr->show(container_of(kobj, struct device, kobj),
340 dattr, buf);
348 struct device_attribute *dattr;
351 dattr = container_of(attr, struct device_attribute, attr);
353 if (dattr->store)
354 error = dattr->store(container_of(kobj, struct device, kobj),
355 dattr, buf, count);