Lines Matching refs:data
16 static int stm_ftrace_link(struct stm_source_data *data);
17 static void stm_ftrace_unlink(struct stm_source_data *data);
20 struct stm_source_data data;
23 .data = {
32 * stm_ftrace_write() - write data to STM via 'stm_ftrace' source
33 * @buf: buffer containing the data packet
34 * @len: length of the data packet
43 stm_source_write(&stm->data, STM_FTRACE_CHAN + cpu, buf, len);
46 static int stm_ftrace_link(struct stm_source_data *data)
48 struct stm_ftrace *sf = container_of(data, struct stm_ftrace, data);
57 static void stm_ftrace_unlink(struct stm_source_data *data)
59 struct stm_ftrace *sf = container_of(data, struct stm_ftrace, data);
68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus());
69 ret = stm_source_register_device(NULL, &stm_ftrace.data);
78 stm_source_unregister_device(&stm_ftrace.data);