Searched refs:trigger_data (Results 1 – 4 of 4) sorted by relevance
/drivers/leds/trigger/ |
D | ledtrig-netdev.c | 65 static void set_baseline_state(struct led_netdev_data *trigger_data) in set_baseline_state() argument 68 struct led_classdev *led_cdev = trigger_data->led_cdev; in set_baseline_state() 76 if (!test_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode)) in set_baseline_state() 79 if (test_bit(NETDEV_LED_LINK, &trigger_data->mode)) in set_baseline_state() 88 if (test_bit(NETDEV_LED_TX, &trigger_data->mode) || in set_baseline_state() 89 test_bit(NETDEV_LED_RX, &trigger_data->mode)) in set_baseline_state() 90 schedule_delayed_work(&trigger_data->work, 0); in set_baseline_state() 97 struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev); in device_name_show() local 100 spin_lock_bh(&trigger_data->lock); in device_name_show() 101 len = sprintf(buf, "%s\n", trigger_data->device_name); in device_name_show() [all …]
|
D | ledtrig-tty.c | 21 static void ledtrig_tty_restart(struct ledtrig_tty_data *trigger_data) in ledtrig_tty_restart() argument 23 schedule_delayed_work(&trigger_data->dwork, 0); in ledtrig_tty_restart() 29 struct ledtrig_tty_data *trigger_data = led_trigger_get_drvdata(dev); in ttyname_show() local 32 mutex_lock(&trigger_data->mutex); in ttyname_show() 34 if (trigger_data->ttyname) in ttyname_show() 35 len = sprintf(buf, "%s\n", trigger_data->ttyname); in ttyname_show() 37 mutex_unlock(&trigger_data->mutex); in ttyname_show() 46 struct ledtrig_tty_data *trigger_data = led_trigger_get_drvdata(dev); in ttyname_store() local 62 mutex_lock(&trigger_data->mutex); in ttyname_store() 64 running = trigger_data->ttyname != NULL; in ttyname_store() [all …]
|
D | ledtrig-pattern.c | 122 struct pattern_trig_data *data = led_cdev->trigger_data; in pattern_trig_start_pattern() 149 struct pattern_trig_data *data = led_cdev->trigger_data; in repeat_show() 165 struct pattern_trig_data *data = led_cdev->trigger_data; in repeat_store() 265 struct pattern_trig_data *data = led_cdev->trigger_data; in pattern_trig_store_patterns() 298 struct pattern_trig_data *data = led_cdev->trigger_data; in pattern_show() 317 struct pattern_trig_data *data = led_cdev->trigger_data; in hw_pattern_show() 425 struct pattern_trig_data *data = led_cdev->trigger_data; in pattern_trig_deactivate()
|
/drivers/leds/ |
D | led-triggers.c | 184 led_cdev->trigger_data = NULL; in led_trigger_set() 230 led_cdev->trigger_data = NULL; in led_trigger_set()
|