Lines Matching refs:a
58 #define to_dev_attr(a) container_of(a, struct device_attribute, attr) argument
395 struct attribute *a; in hwmon_genattr() local
435 a = &dattr->attr; in hwmon_genattr()
436 sysfs_attr_init(a); in hwmon_genattr()
437 a->name = name; in hwmon_genattr()
438 a->mode = mode; in hwmon_genattr()
440 return a; in hwmon_genattr()
708 struct attribute *a; in hwmon_genattrs() local
714 a = hwmon_genattr(drvdata, info->type, attr, i, in hwmon_genattrs()
716 if (IS_ERR(a)) { in hwmon_genattrs()
717 if (PTR_ERR(a) != -ENOENT) in hwmon_genattrs()
718 return PTR_ERR(a); in hwmon_genattrs()
721 attrs[aindex++] = a; in hwmon_genattrs()