Lines Matching refs:iter
97 static void mmio_pipe_open(struct trace_iterator *iter) in mmio_pipe_open() argument
100 struct trace_seq *s = &iter->seq; in mmio_pipe_open()
109 iter->private = hiter; in mmio_pipe_open()
113 static void mmio_close(struct trace_iterator *iter) in mmio_close() argument
115 struct header_iter *hiter = iter->private; in mmio_close()
117 iter->private = NULL; in mmio_close()
120 static unsigned long count_overruns(struct trace_iterator *iter) in count_overruns() argument
123 unsigned long over = ring_buffer_overruns(iter->array_buffer->buffer); in count_overruns()
131 static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, in mmio_read() argument
135 struct header_iter *hiter = iter->private; in mmio_read()
136 struct trace_seq *s = &iter->seq; in mmio_read()
139 n = count_overruns(iter); in mmio_read()
157 iter->private = NULL; in mmio_read()
165 static enum print_line_t mmio_print_rw(struct trace_iterator *iter) in mmio_print_rw() argument
167 struct trace_entry *entry = iter->ent; in mmio_print_rw()
170 struct trace_seq *s = &iter->seq; in mmio_print_rw()
171 unsigned long long t = ns2usecs(iter->ts); in mmio_print_rw()
210 static enum print_line_t mmio_print_map(struct trace_iterator *iter) in mmio_print_map() argument
212 struct trace_entry *entry = iter->ent; in mmio_print_map()
215 struct trace_seq *s = &iter->seq; in mmio_print_map()
216 unsigned long long t = ns2usecs(iter->ts); in mmio_print_map()
244 static enum print_line_t mmio_print_mark(struct trace_iterator *iter) in mmio_print_mark() argument
246 struct trace_entry *entry = iter->ent; in mmio_print_mark()
249 struct trace_seq *s = &iter->seq; in mmio_print_mark()
250 unsigned long long t = ns2usecs(iter->ts); in mmio_print_mark()
260 static enum print_line_t mmio_print_line(struct trace_iterator *iter) in mmio_print_line() argument
262 switch (iter->ent->type) { in mmio_print_line()
264 return mmio_print_rw(iter); in mmio_print_line()
266 return mmio_print_map(iter); in mmio_print_line()
268 return mmio_print_mark(iter); in mmio_print_line()