Lines Matching refs:iter
3730 bool kmsg_dump_get_line(struct kmsg_dump_iter *iter, bool syslog, in kmsg_dump_get_line() argument
3740 if (iter->cur_seq < min_seq) in kmsg_dump_get_line()
3741 iter->cur_seq = min_seq; in kmsg_dump_get_line()
3747 if (!prb_read_valid(prb, iter->cur_seq, &r)) in kmsg_dump_get_line()
3751 if (!prb_read_valid_info(prb, iter->cur_seq, in kmsg_dump_get_line()
3760 iter->cur_seq = r.info->seq + 1; in kmsg_dump_get_line()
3788 bool kmsg_dump_get_buffer(struct kmsg_dump_iter *iter, bool syslog, in kmsg_dump_get_buffer() argument
3803 if (iter->cur_seq < min_seq) in kmsg_dump_get_buffer()
3804 iter->cur_seq = min_seq; in kmsg_dump_get_buffer()
3806 if (prb_read_valid_info(prb, iter->cur_seq, &info, NULL)) { in kmsg_dump_get_buffer()
3807 if (info.seq != iter->cur_seq) { in kmsg_dump_get_buffer()
3809 iter->cur_seq = info.seq; in kmsg_dump_get_buffer()
3814 if (iter->cur_seq >= iter->next_seq) in kmsg_dump_get_buffer()
3823 seq = find_first_fitting_seq(iter->cur_seq, iter->next_seq, in kmsg_dump_get_buffer()
3836 if (r.info->seq >= iter->next_seq) in kmsg_dump_get_buffer()
3845 iter->next_seq = next_seq; in kmsg_dump_get_buffer()
3862 void kmsg_dump_rewind(struct kmsg_dump_iter *iter) in kmsg_dump_rewind() argument
3864 iter->cur_seq = latched_seq_read_nolock(&clear_seq); in kmsg_dump_rewind()
3865 iter->next_seq = prb_next_seq(prb); in kmsg_dump_rewind()