Searched refs:weight_attr (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | thermal_core.c | 894 sysfs_attr_init(&dev->weight_attr.attr); in thermal_zone_bind_cooling_device() 895 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_zone_bind_cooling_device() 896 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_zone_bind_cooling_device() 897 dev->weight_attr.show = weight_show; in thermal_zone_bind_cooling_device() 898 dev->weight_attr.store = weight_store; in thermal_zone_bind_cooling_device() 899 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device() 921 device_remove_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device() 971 device_remove_file(&tz->device, &pos->weight_attr); in thermal_zone_unbind_cooling_device()
|
H A D | thermal_core.h | 113 struct device_attribute weight_attr; member
|
H A D | thermal_sysfs.c | 976 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_show() 991 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_store()
|
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | thermal_core.c | 705 sysfs_attr_init(&dev->weight_attr.attr); in thermal_zone_bind_cooling_device() 706 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_zone_bind_cooling_device() 707 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_zone_bind_cooling_device() 708 dev->weight_attr.show = weight_show; in thermal_zone_bind_cooling_device() 709 dev->weight_attr.store = weight_store; in thermal_zone_bind_cooling_device() 710 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device() 732 device_remove_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device() 784 device_remove_file(&tz->device, &pos->weight_attr); in thermal_zone_unbind_cooling_device()
|
H A D | thermal_core.h | 98 struct device_attribute weight_attr; member
|
H A D | thermal_sysfs.c | 955 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_show() 970 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_store()
|
Completed in 8 milliseconds