Lines Matching defs:cdev
60 * @cdev: cooling device
80 struct thermal_cooling_device *cdev;
122 static int emc2305_get_cdev_idx(struct thermal_cooling_device *cdev)
124 struct emc2305_data *data = cdev->devdata;
125 size_t len = strlen(cdev->type);
143 ret = cdev->type[len - 1];
153 static int emc2305_get_cur_state(struct thermal_cooling_device *cdev, unsigned long *state)
156 struct emc2305_data *data = cdev->devdata;
158 cdev_idx = emc2305_get_cdev_idx(cdev);
166 static int emc2305_get_max_state(struct thermal_cooling_device *cdev, unsigned long *state)
168 struct emc2305_data *data = cdev->devdata;
203 static int emc2305_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
206 struct emc2305_data *data = cdev->devdata;
211 cdev_idx = emc2305_get_cdev_idx(cdev);
295 data->cdev_data[cdev_idx].cdev =
299 if (IS_ERR(data->cdev_data[cdev_idx].cdev)) {
301 return PTR_ERR(data->cdev_data[cdev_idx].cdev);
351 if (data->cdev_data[i].cdev)
352 thermal_cooling_device_unregister(data->cdev_data[i].cdev);