Lines Matching refs:cdev
122 mt7915_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev,
131 mt7915_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev,
134 struct mt7915_phy *phy = cdev->devdata;
142 mt7915_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
145 struct mt7915_phy *phy = cdev->devdata;
181 if (!phy->cdev)
185 thermal_cooling_device_unregister(phy->cdev);
191 struct thermal_cooling_device *cdev;
198 cdev = thermal_cooling_device_register(name, phy, &mt7915_thermal_ops);
199 if (!IS_ERR(cdev)) {
200 if (sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj,
202 thermal_cooling_device_unregister(cdev);
204 phy->cdev = cdev;
226 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev);
464 mphy->leds.cdev.brightness_set = mt7915_led_set_brightness;
465 mphy->leds.cdev.blink_set = mt7915_led_set_blink;