Lines Matching refs:cdev
58 struct thermal_cooling_device *cdev; member
214 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, in clock_cooling_get_level() argument
217 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_level()
342 static int clock_cooling_get_max_state(struct thermal_cooling_device *cdev, in clock_cooling_get_max_state() argument
345 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_max_state()
366 static int clock_cooling_get_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_get_cur_state() argument
369 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_cur_state()
386 static int clock_cooling_set_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_set_cur_state() argument
389 struct clock_cooling_device *clock_device = cdev->devdata; in clock_cooling_set_cur_state()
420 struct thermal_cooling_device *cdev; in clock_cooling_register() local
440 cdev = thermal_cooling_device_register(dev_name, ccdev, in clock_cooling_register()
442 if (IS_ERR(cdev)) { in clock_cooling_register()
446 ccdev->cdev = cdev; in clock_cooling_register()
460 return cdev; in clock_cooling_register()
470 void clock_cooling_unregister(struct thermal_cooling_device *cdev) in clock_cooling_unregister() argument
474 if (!cdev) in clock_cooling_unregister()
477 ccdev = cdev->devdata; in clock_cooling_unregister()
482 thermal_cooling_device_unregister(ccdev->cdev); in clock_cooling_unregister()