Lines Matching refs:trigger_data
830 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()
848 return trigger_data; in event_trigger_alloc()
862 struct event_trigger_data *trigger_data) in event_trigger_parse_num() argument
877 ret = kstrtoul(number, 0, &trigger_data->count); in event_trigger_parse_num()
898 struct event_trigger_data *trigger_data) in event_trigger_set_filter() argument
901 return cmd_ops->set_filter(param, trigger_data, file); in event_trigger_set_filter()
914 struct event_trigger_data *trigger_data) in event_trigger_reset_filter() argument
917 cmd_ops->set_filter(NULL, trigger_data, NULL); in event_trigger_reset_filter()
935 struct event_trigger_data *trigger_data) in event_trigger_register() argument
937 return cmd_ops->reg(glob, trigger_data, file); in event_trigger_register()
953 struct event_trigger_data *trigger_data) in event_trigger_unregister() argument
955 cmd_ops->unreg(glob, trigger_data, file); in event_trigger_unregister()
983 struct event_trigger_data *trigger_data; in event_trigger_parse() local
995 trigger_data = event_trigger_alloc(cmd_ops, cmd, param, file); in event_trigger_parse()
996 if (!trigger_data) in event_trigger_parse()
1000 event_trigger_unregister(cmd_ops, file, glob+1, trigger_data); in event_trigger_parse()
1001 kfree(trigger_data); in event_trigger_parse()
1006 ret = event_trigger_parse_num(param, trigger_data); in event_trigger_parse()
1010 ret = event_trigger_set_filter(cmd_ops, file, filter, trigger_data); in event_trigger_parse()
1015 event_trigger_init(trigger_data); in event_trigger_parse()
1017 ret = event_trigger_register(cmd_ops, file, glob, trigger_data); in event_trigger_parse()
1022 event_trigger_free(trigger_data); in event_trigger_parse()
1027 event_trigger_reset_filter(cmd_ops, trigger_data); in event_trigger_parse()
1028 kfree(trigger_data); in event_trigger_parse()
1049 struct event_trigger_data *trigger_data, in set_trigger_filter() argument
1052 struct event_trigger_data *data = trigger_data; in set_trigger_filter()
1725 struct event_trigger_data *trigger_data; in event_enable_trigger_parse() local
1773 trigger_data = event_trigger_alloc(cmd_ops, cmd, param, enable_data); in event_enable_trigger_parse()
1774 if (!trigger_data) { in event_enable_trigger_parse()
1780 event_trigger_unregister(cmd_ops, file, glob+1, trigger_data); in event_enable_trigger_parse()
1781 kfree(trigger_data); in event_enable_trigger_parse()
1788 event_trigger_init(trigger_data); in event_enable_trigger_parse()
1790 ret = event_trigger_parse_num(param, trigger_data); in event_enable_trigger_parse()
1794 ret = event_trigger_set_filter(cmd_ops, file, filter, trigger_data); in event_enable_trigger_parse()
1809 ret = event_trigger_register(cmd_ops, file, glob, trigger_data); in event_enable_trigger_parse()
1813 event_trigger_free(trigger_data); in event_enable_trigger_parse()
1821 event_trigger_reset_filter(cmd_ops, trigger_data); in event_enable_trigger_parse()
1822 event_trigger_free(trigger_data); in event_enable_trigger_parse()