Lines Matching refs:idle_cdev
105 struct cpuidle_cooling_device *idle_cdev = cdev->devdata; in cpuidle_cooling_get_cur_state() local
107 *state = idle_cdev->state; in cpuidle_cooling_get_cur_state()
127 struct cpuidle_cooling_device *idle_cdev = cdev->devdata; in cpuidle_cooling_set_cur_state() local
128 struct idle_inject_device *ii_dev = idle_cdev->ii_dev; in cpuidle_cooling_set_cur_state()
129 unsigned long current_state = idle_cdev->state; in cpuidle_cooling_set_cur_state()
132 idle_cdev->state = state; in cpuidle_cooling_set_cur_state()
174 struct cpuidle_cooling_device *idle_cdev; in __cpuidle_cooling_register() local
182 idle_cdev = kzalloc(sizeof(*idle_cdev), GFP_KERNEL); in __cpuidle_cooling_register()
183 if (!idle_cdev) { in __cpuidle_cooling_register()
200 idle_cdev->ii_dev = ii_dev; in __cpuidle_cooling_register()
210 cdev = thermal_of_cooling_device_register(np, name, idle_cdev, in __cpuidle_cooling_register()
229 kfree(idle_cdev); in __cpuidle_cooling_register()