Lines Matching refs:a
1243 static void pmbus_attr_init(struct sensor_device_attribute *a, in pmbus_attr_init() argument
1254 pmbus_dev_attr_init(&a->dev_attr, name, mode, show, store); in pmbus_attr_init()
1255 a->index = idx; in pmbus_attr_init()
1265 struct sensor_device_attribute *a; in pmbus_add_boolean() local
1274 a = &boolean->attribute; in pmbus_add_boolean()
1280 pmbus_attr_init(a, boolean->name, 0444, pmbus_show_boolean, NULL, in pmbus_add_boolean()
1283 return pmbus_add_attribute(data, &a->dev_attr.attr); in pmbus_add_boolean()
1357 struct device_attribute *a; in pmbus_add_sensor() local
1362 a = &sensor->attribute; in pmbus_add_sensor()
1381 pmbus_dev_attr_init(a, sensor->name, in pmbus_add_sensor()
1385 if (pmbus_add_attribute(data, &a->attr)) in pmbus_add_sensor()
1403 struct device_attribute *a; in pmbus_add_label() local
1409 a = &label->attribute; in pmbus_add_label()
1428 pmbus_dev_attr_init(a, label->name, 0444, pmbus_show_label, NULL); in pmbus_add_label()
1429 return pmbus_add_attribute(data, &a->attr); in pmbus_add_label()