Lines Matching refs:led_cdev

117 static int igc_led_brightness_set_blocking(struct led_classdev *led_cdev,  in igc_led_brightness_set_blocking()  argument
120 struct igc_led_classdev *ldev = lcdev_to_igc_ldev(led_cdev); in igc_led_brightness_set_blocking()
137 static int igc_led_hw_control_is_supported(struct led_classdev *led_cdev, in igc_led_hw_control_is_supported() argument
162 static int igc_led_hw_control_set(struct led_classdev *led_cdev, in igc_led_hw_control_set() argument
165 struct igc_led_classdev *ldev = lcdev_to_igc_ldev(led_cdev); in igc_led_hw_control_set()
194 static int igc_led_hw_control_get(struct led_classdev *led_cdev, in igc_led_hw_control_get() argument
197 struct igc_led_classdev *ldev = lcdev_to_igc_ldev(led_cdev); in igc_led_hw_control_get()
224 static struct device *igc_led_hw_control_get_device(struct led_classdev *led_cdev) in igc_led_hw_control_get_device() argument
226 struct igc_led_classdev *ldev = lcdev_to_igc_ldev(led_cdev); in igc_led_hw_control_get_device()
243 struct led_classdev *led_cdev = &ldev->led; in igc_setup_ldev() local
250 led_cdev->name = led_name; in igc_setup_ldev()
251 led_cdev->flags |= LED_RETAIN_AT_SHUTDOWN; in igc_setup_ldev()
252 led_cdev->max_brightness = 1; in igc_setup_ldev()
253 led_cdev->brightness_set_blocking = igc_led_brightness_set_blocking; in igc_setup_ldev()
254 led_cdev->hw_control_trigger = "netdev"; in igc_setup_ldev()
255 led_cdev->hw_control_is_supported = igc_led_hw_control_is_supported; in igc_setup_ldev()
256 led_cdev->hw_control_set = igc_led_hw_control_set; in igc_setup_ldev()
257 led_cdev->hw_control_get = igc_led_hw_control_get; in igc_setup_ldev()
258 led_cdev->hw_control_get_device = igc_led_hw_control_get_device; in igc_setup_ldev()
260 return led_classdev_register(&netdev->dev, led_cdev); in igc_setup_ldev()