Lines Matching refs:attr
21 struct device_attribute *attr,
26 struct soc_device_attribute *attr; member
45 struct attribute *attr, in soc_attribute_mode() argument
51 if ((attr == &dev_attr_machine.attr) in soc_attribute_mode()
52 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode()
53 return attr->mode; in soc_attribute_mode()
54 if ((attr == &dev_attr_family.attr) in soc_attribute_mode()
55 && (soc_dev->attr->family != NULL)) in soc_attribute_mode()
56 return attr->mode; in soc_attribute_mode()
57 if ((attr == &dev_attr_revision.attr) in soc_attribute_mode()
58 && (soc_dev->attr->revision != NULL)) in soc_attribute_mode()
59 return attr->mode; in soc_attribute_mode()
60 if ((attr == &dev_attr_soc_id.attr) in soc_attribute_mode()
61 && (soc_dev->attr->soc_id != NULL)) in soc_attribute_mode()
62 return attr->mode; in soc_attribute_mode()
69 struct device_attribute *attr, in soc_info_get() argument
74 if (attr == &dev_attr_machine) in soc_info_get()
75 return sprintf(buf, "%s\n", soc_dev->attr->machine); in soc_info_get()
76 if (attr == &dev_attr_family) in soc_info_get()
77 return sprintf(buf, "%s\n", soc_dev->attr->family); in soc_info_get()
78 if (attr == &dev_attr_revision) in soc_info_get()
79 return sprintf(buf, "%s\n", soc_dev->attr->revision); in soc_info_get()
80 if (attr == &dev_attr_soc_id) in soc_info_get()
81 return sprintf(buf, "%s\n", soc_dev->attr->soc_id); in soc_info_get()
88 &dev_attr_machine.attr,
89 &dev_attr_family.attr,
90 &dev_attr_soc_id.attr,
91 &dev_attr_revision.attr,
138 soc_dev->attr = soc_dev_attr; in soc_device_register()
185 static int soc_device_match_attr(const struct soc_device_attribute *attr, in soc_device_match_attr() argument
189 (!attr->machine || !glob_match(match->machine, attr->machine))) in soc_device_match_attr()
193 (!attr->family || !glob_match(match->family, attr->family))) in soc_device_match_attr()
197 (!attr->revision || !glob_match(match->revision, attr->revision))) in soc_device_match_attr()
201 (!attr->soc_id || !glob_match(match->soc_id, attr->soc_id))) in soc_device_match_attr()
211 return soc_device_match_attr(soc_dev->attr, arg); in soc_device_match_one()