Lines Matching refs:cdev
63 static int memory_get_max_bandwidth(struct thermal_cooling_device *cdev, in memory_get_max_bandwidth() argument
66 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth()
89 static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_get_cur_bandwidth() argument
92 struct acpi_device *device = cdev->devdata; in memory_get_cur_bandwidth()
112 static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_set_cur_bandwidth() argument
115 struct acpi_device *device = cdev->devdata; in memory_set_cur_bandwidth()
123 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth()
157 struct thermal_cooling_device *cdev; in intel_menlow_memory_add() local
168 cdev = thermal_cooling_device_register("Memory controller", device, in intel_menlow_memory_add()
170 if (IS_ERR(cdev)) { in intel_menlow_memory_add()
171 result = PTR_ERR(cdev); in intel_menlow_memory_add()
175 device->driver_data = cdev; in intel_menlow_memory_add()
177 &cdev->device.kobj, "thermal_cooling"); in intel_menlow_memory_add()
181 result = sysfs_create_link(&cdev->device.kobj, in intel_menlow_memory_add()
192 thermal_cooling_device_unregister(cdev); in intel_menlow_memory_add()
199 struct thermal_cooling_device *cdev = acpi_driver_data(device); in intel_menlow_memory_remove() local
201 if (!device || !cdev) in intel_menlow_memory_remove()
205 sysfs_remove_link(&cdev->device.kobj, "device"); in intel_menlow_memory_remove()
206 thermal_cooling_device_unregister(cdev); in intel_menlow_memory_remove()