Lines Matching refs:attr

22 			    struct device_attribute *attr,
27 struct soc_device_attribute *attr; member
46 struct attribute *attr, in soc_attribute_mode() argument
52 if ((attr == &dev_attr_machine.attr) in soc_attribute_mode()
53 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode()
54 return attr->mode; in soc_attribute_mode()
55 if ((attr == &dev_attr_family.attr) in soc_attribute_mode()
56 && (soc_dev->attr->family != NULL)) in soc_attribute_mode()
57 return attr->mode; in soc_attribute_mode()
58 if ((attr == &dev_attr_revision.attr) in soc_attribute_mode()
59 && (soc_dev->attr->revision != NULL)) in soc_attribute_mode()
60 return attr->mode; in soc_attribute_mode()
61 if ((attr == &dev_attr_soc_id.attr) in soc_attribute_mode()
62 && (soc_dev->attr->soc_id != NULL)) in soc_attribute_mode()
63 return attr->mode; in soc_attribute_mode()
70 struct device_attribute *attr, in soc_info_get() argument
75 if (attr == &dev_attr_machine) in soc_info_get()
76 return sprintf(buf, "%s\n", soc_dev->attr->machine); in soc_info_get()
77 if (attr == &dev_attr_family) in soc_info_get()
78 return sprintf(buf, "%s\n", soc_dev->attr->family); in soc_info_get()
79 if (attr == &dev_attr_revision) in soc_info_get()
80 return sprintf(buf, "%s\n", soc_dev->attr->revision); in soc_info_get()
81 if (attr == &dev_attr_soc_id) in soc_info_get()
82 return sprintf(buf, "%s\n", soc_dev->attr->soc_id); in soc_info_get()
89 &dev_attr_machine.attr,
90 &dev_attr_family.attr,
91 &dev_attr_soc_id.attr,
92 &dev_attr_revision.attr,
140 soc_dev->attr = soc_dev_attr; in soc_device_register()