Lines Matching refs:attr

237 	struct device_attribute attr;  member
307 container_of(_attr, struct intel_menlow_attribute, attr)
312 struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); in aux0_show() local
316 result = sensor_get_auxtrip(attr->handle, 0, &value); in aux0_show()
324 struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); in aux1_show() local
328 result = sensor_get_auxtrip(attr->handle, 1, &value); in aux1_show()
337 struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); in aux0_store() local
348 result = sensor_set_auxtrip(attr->handle, 0, CELSIUS_TO_KELVIN(value)); in aux0_store()
356 struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); in aux1_store() local
367 result = sensor_set_auxtrip(attr->handle, 1, CELSIUS_TO_KELVIN(value)); in aux1_store()
374 struct device_attribute *attr, char *buf) in bios_enabled_show() argument
390 struct intel_menlow_attribute *attr; in intel_menlow_add_one_attribute() local
393 attr = kzalloc(sizeof(struct intel_menlow_attribute), GFP_KERNEL); in intel_menlow_add_one_attribute()
394 if (!attr) in intel_menlow_add_one_attribute()
397 sysfs_attr_init(&attr->attr.attr); /* That is consistent naming :D */ in intel_menlow_add_one_attribute()
398 attr->attr.attr.name = name; in intel_menlow_add_one_attribute()
399 attr->attr.attr.mode = mode; in intel_menlow_add_one_attribute()
400 attr->attr.show = show; in intel_menlow_add_one_attribute()
401 attr->attr.store = store; in intel_menlow_add_one_attribute()
402 attr->device = dev; in intel_menlow_add_one_attribute()
403 attr->handle = handle; in intel_menlow_add_one_attribute()
405 result = device_create_file(dev, &attr->attr); in intel_menlow_add_one_attribute()
407 kfree(attr); in intel_menlow_add_one_attribute()
412 list_add_tail(&attr->node, &intel_menlow_attr_list); in intel_menlow_add_one_attribute()
491 device_remove_file(pos->device, &pos->attr); in intel_menlow_unregister_sensor()