Lines Matching refs:led_cdev

21 	struct led_classdev *led_cdev = led_trigger_get_led(dev);  in led_delay_on_show()  local
23 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); in led_delay_on_show()
29 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_on_store() local
37 led_blink_set(led_cdev, &state, &led_cdev->blink_delay_off); in led_delay_on_store()
38 led_cdev->blink_delay_on = state; in led_delay_on_store()
46 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_show() local
48 return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); in led_delay_off_show()
54 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_store() local
62 led_blink_set(led_cdev, &led_cdev->blink_delay_on, &state); in led_delay_off_store()
63 led_cdev->blink_delay_off = state; in led_delay_off_store()
78 static void pattern_init(struct led_classdev *led_cdev) in pattern_init() argument
83 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
88 dev_warn(led_cdev->dev, in pattern_init()
94 led_cdev->blink_delay_on = pattern[0]; in pattern_init()
95 led_cdev->blink_delay_off = pattern[1]; in pattern_init()
102 static int timer_trig_activate(struct led_classdev *led_cdev) in timer_trig_activate() argument
104 if (led_cdev->flags & LED_INIT_DEFAULT_TRIGGER) { in timer_trig_activate()
105 pattern_init(led_cdev); in timer_trig_activate()
110 led_cdev->flags &= ~LED_INIT_DEFAULT_TRIGGER; in timer_trig_activate()
113 led_blink_set(led_cdev, &led_cdev->blink_delay_on, in timer_trig_activate()
114 &led_cdev->blink_delay_off); in timer_trig_activate()
119 static void timer_trig_deactivate(struct led_classdev *led_cdev) in timer_trig_deactivate() argument
122 led_set_brightness(led_cdev, LED_OFF); in timer_trig_deactivate()