Lines Matching refs:cdev
59 struct thermal_cooling_device *cdev;
370 static int pwm_fan_get_max_state(struct thermal_cooling_device *cdev,
373 struct pwm_fan_ctx *ctx = cdev->devdata;
383 static int pwm_fan_get_cur_state(struct thermal_cooling_device *cdev,
386 struct pwm_fan_ctx *ctx = cdev->devdata;
397 pwm_fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
399 struct pwm_fan_ctx *ctx = cdev->devdata;
410 dev_err(&cdev->device, "Cannot set pwm!\n");
476 struct thermal_cooling_device *cdev;
638 cdev = devm_thermal_of_cooling_device_register(dev,
640 if (IS_ERR(cdev)) {
641 ret = PTR_ERR(cdev);
647 ctx->cdev = cdev;