Lines Matching refs:cdev
125 mt7996_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev,
134 mt7996_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev,
137 struct mt7996_phy *phy = cdev->devdata;
145 mt7996_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
148 struct mt7996_phy *phy = cdev->devdata;
183 if (!phy->cdev)
187 thermal_cooling_device_unregister(phy->cdev);
193 struct thermal_cooling_device *cdev;
200 cdev = thermal_cooling_device_register(name, phy, &mt7996_thermal_ops);
201 if (!IS_ERR(cdev)) {
202 if (sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj,
204 thermal_cooling_device_unregister(cdev);
206 phy->cdev = cdev;
232 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev);
432 phy->mt76->leds.cdev.brightness_set = mt7996_led_set_brightness;
433 phy->mt76->leds.cdev.blink_set = mt7996_led_set_blink;