Lines Matching refs:trigger_data
645 struct event_trigger_data *trigger_data; in event_trigger_callback() local
664 trigger_data = kzalloc(sizeof(*trigger_data), GFP_KERNEL); in event_trigger_callback()
665 if (!trigger_data) in event_trigger_callback()
668 trigger_data->count = -1; in event_trigger_callback()
669 trigger_data->ops = trigger_ops; in event_trigger_callback()
670 trigger_data->cmd_ops = cmd_ops; in event_trigger_callback()
671 trigger_data->private_data = file; in event_trigger_callback()
672 INIT_LIST_HEAD(&trigger_data->list); in event_trigger_callback()
673 INIT_LIST_HEAD(&trigger_data->named_list); in event_trigger_callback()
676 cmd_ops->unreg(glob+1, trigger_ops, trigger_data, file); in event_trigger_callback()
677 kfree(trigger_data); in event_trigger_callback()
693 ret = kstrtoul(number, 0, &trigger_data->count); in event_trigger_callback()
704 ret = cmd_ops->set_filter(param, trigger_data, file); in event_trigger_callback()
710 event_trigger_init(trigger_ops, trigger_data); in event_trigger_callback()
711 ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); in event_trigger_callback()
718 cmd_ops->unreg(glob, trigger_ops, trigger_data, file); in event_trigger_callback()
724 event_trigger_free(trigger_ops, trigger_data); in event_trigger_callback()
730 cmd_ops->set_filter(NULL, trigger_data, NULL); in event_trigger_callback()
731 kfree(trigger_data); in event_trigger_callback()
752 struct event_trigger_data *trigger_data, in set_trigger_filter() argument
755 struct event_trigger_data *data = trigger_data; in set_trigger_filter()
1389 struct event_trigger_data *trigger_data; in event_enable_trigger_func() local
1436 trigger_data = kzalloc(sizeof(*trigger_data), GFP_KERNEL); in event_enable_trigger_func()
1437 if (!trigger_data) in event_enable_trigger_func()
1442 kfree(trigger_data); in event_enable_trigger_func()
1446 trigger_data->count = -1; in event_enable_trigger_func()
1447 trigger_data->ops = trigger_ops; in event_enable_trigger_func()
1448 trigger_data->cmd_ops = cmd_ops; in event_enable_trigger_func()
1449 INIT_LIST_HEAD(&trigger_data->list); in event_enable_trigger_func()
1450 RCU_INIT_POINTER(trigger_data->filter, NULL); in event_enable_trigger_func()
1455 trigger_data->private_data = enable_data; in event_enable_trigger_func()
1458 cmd_ops->unreg(glob+1, trigger_ops, trigger_data, file); in event_enable_trigger_func()
1459 kfree(trigger_data); in event_enable_trigger_func()
1466 event_trigger_init(trigger_ops, trigger_data); in event_enable_trigger_func()
1479 ret = kstrtoul(number, 0, &trigger_data->count); in event_enable_trigger_func()
1490 ret = cmd_ops->set_filter(param, trigger_data, file); in event_enable_trigger_func()
1505 ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); in event_enable_trigger_func()
1518 event_trigger_free(trigger_ops, trigger_data); in event_enable_trigger_func()
1528 cmd_ops->set_filter(NULL, trigger_data, NULL); in event_enable_trigger_func()
1529 event_trigger_free(trigger_ops, trigger_data); in event_enable_trigger_func()