• Home
  • Raw
  • Download

Lines Matching refs:seq

482 		*seq_out = info->seq; /* also part of desc_read:C */  in desc_read()
1492 u64 seq; in prb_reserve() local
1520 seq = info->seq; in prb_reserve()
1541 if (seq == 0 && DESC_INDEX(desc_ring, id) != 0) in prb_reserve()
1542 info->seq = DESC_INDEX(desc_ring, id); in prb_reserve()
1544 info->seq = seq + DESCS_COUNT(desc_ring); in prb_reserve()
1552 if (info->seq > 0) in prb_reserve()
1756 unsigned long id, u64 seq, in desc_read_finalized_seq() argument
1773 s != seq) { in desc_read_finalized_seq()
1796 static int prb_read(struct printk_ringbuffer *rb, u64 seq, in prb_read() argument
1800 struct printk_info *info = to_info(desc_ring, seq); in prb_read()
1801 struct prb_desc *rdesc = to_desc(desc_ring, seq); in prb_read()
1811 err = desc_read_finalized_seq(desc_ring, id, seq, &desc); in prb_read()
1831 return desc_read_finalized_seq(desc_ring, id, seq, &desc); in prb_read()
1841 u64 seq; in prb_first_seq() local
1846 d_state = desc_read(desc_ring, id, &desc, &seq, NULL); /* LMM(prb_first_seq:B) */ in prb_first_seq()
1875 return seq; in prb_first_seq()
1885 static bool _prb_read_valid(struct printk_ringbuffer *rb, u64 *seq, in _prb_read_valid() argument
1891 while ((err = prb_read(rb, *seq, r, line_count))) { in _prb_read_valid()
1894 if (*seq < tail_seq) { in _prb_read_valid()
1899 *seq = tail_seq; in _prb_read_valid()
1903 (*seq)++; in _prb_read_valid()
1937 bool prb_read_valid(struct printk_ringbuffer *rb, u64 seq, in prb_read_valid() argument
1940 return _prb_read_valid(rb, &seq, r, NULL); in prb_read_valid()
1967 bool prb_read_valid_info(struct printk_ringbuffer *rb, u64 seq, in prb_read_valid_info() argument
1974 return _prb_read_valid(rb, &seq, &r, line_count); in prb_read_valid_info()
1994 u64 seq = 0; in prb_first_valid_seq() local
1996 if (!_prb_read_valid(rb, &seq, NULL, NULL)) in prb_first_valid_seq()
1999 return seq; in prb_first_valid_seq()
2022 u64 seq; in prb_next_seq() local
2026 d_state = desc_read(desc_ring, id, NULL, &seq, NULL); in prb_next_seq()
2036 if (seq != 0) in prb_next_seq()
2037 seq++; in prb_next_seq()
2045 seq = 0; in prb_next_seq()
2052 while (_prb_read_valid(rb, &seq, NULL, NULL)) in prb_next_seq()
2053 seq++; in prb_next_seq()
2055 return seq; in prb_next_seq()
2101 infos[0].seq = -(u64)_DESCS_COUNT(descbits); in prb_init()
2102 infos[_DESCS_COUNT(descbits) - 1].seq = 0; in prb_init()