Home
last modified time | relevance | path

Searched refs:trigger_data (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/leds/trigger/
Dledtrig-netdev.c65 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 …]
Dledtrig-tty.c19 static void ledtrig_tty_restart(struct ledtrig_tty_data *trigger_data) in ledtrig_tty_restart() argument
21 schedule_delayed_work(&trigger_data->dwork, 0); in ledtrig_tty_restart()
27 struct ledtrig_tty_data *trigger_data = led_trigger_get_drvdata(dev); in ttyname_show() local
30 mutex_lock(&trigger_data->mutex); in ttyname_show()
32 if (trigger_data->ttyname) in ttyname_show()
33 len = sprintf(buf, "%s\n", trigger_data->ttyname); in ttyname_show()
35 mutex_unlock(&trigger_data->mutex); in ttyname_show()
44 struct ledtrig_tty_data *trigger_data = led_trigger_get_drvdata(dev); in ttyname_store() local
60 mutex_lock(&trigger_data->mutex); in ttyname_store()
62 running = trigger_data->ttyname != NULL; in ttyname_store()
[all …]
Dledtrig-pattern.c122 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()
/linux-6.1.9/kernel/trace/
Dtrace_events_trigger.c830 struct event_trigger_data *trigger_data; in event_trigger_alloc() local
835 trigger_data = kzalloc(sizeof(*trigger_data), GFP_KERNEL); in event_trigger_alloc()
836 if (!trigger_data) in event_trigger_alloc()
839 trigger_data->count = -1; in event_trigger_alloc()
840 trigger_data->ops = trigger_ops; in event_trigger_alloc()
841 trigger_data->cmd_ops = cmd_ops; in event_trigger_alloc()
842 trigger_data->private_data = private_data; in event_trigger_alloc()
844 INIT_LIST_HEAD(&trigger_data->list); in event_trigger_alloc()
845 INIT_LIST_HEAD(&trigger_data->named_list); in event_trigger_alloc()
846 RCU_INIT_POINTER(trigger_data->filter, NULL); in event_trigger_alloc()
[all …]
Dtrace.h1581 struct event_trigger_data *trigger_data,
1607 struct event_trigger_data *trigger_data);
1611 struct event_trigger_data *trigger_data);
1613 struct event_trigger_data *trigger_data);
1617 struct event_trigger_data *trigger_data);
1621 struct event_trigger_data *trigger_data);
Dtrace_events_hist.c6313 struct event_trigger_data *trigger_data; in event_hist_trigger_parse() local
6392 trigger_data = event_trigger_alloc(cmd_ops, cmd, param, hist_data); in event_hist_trigger_parse()
6393 if (!trigger_data) { in event_hist_trigger_parse()
6398 ret = event_trigger_set_filter(cmd_ops, file, filter, trigger_data); in event_hist_trigger_parse()
6403 if (!have_hist_trigger_match(trigger_data, file)) in event_hist_trigger_parse()
6406 if (hist_trigger_check_refs(trigger_data, file)) { in event_hist_trigger_parse()
6411 event_trigger_unregister(cmd_ops, file, glob+1, trigger_data); in event_hist_trigger_parse()
6420 if (existing_hist_update_only(glob, trigger_data, file)) in event_hist_trigger_parse()
6423 ret = event_trigger_register(cmd_ops, file, glob, trigger_data); in event_hist_trigger_parse()
6427 if (get_named_trigger_data(trigger_data)) in event_hist_trigger_parse()
[all …]
/linux-6.1.9/include/linux/
Dleds.h151 void *trigger_data; member
402 void *trigger_data) in led_set_trigger_data() argument
404 led_cdev->trigger_data = trigger_data; in led_set_trigger_data()
409 return led_cdev->trigger_data; in led_get_trigger_data()
/linux-6.1.9/drivers/leds/
Dled-triggers.c186 led_cdev->trigger_data = NULL; in led_trigger_set()
233 led_cdev->trigger_data = NULL; in led_trigger_set()
/linux-6.1.9/include/uapi/scsi/
Dscsi_bsg_mpi3mr.h285 __u64 trigger_data; member