Lines Matching refs:old
61 errseq_t cur, old; in errseq_set() local
72 old = READ_ONCE(*eseq); in errseq_set()
76 return old; in errseq_set()
82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
85 if (old & ERRSEQ_SEEN) in errseq_set()
89 if (new == old) { in errseq_set()
95 cur = cmpxchg(eseq, old, new); in errseq_set()
101 if (likely(cur == old || cur == new)) in errseq_set()
105 old = cur; in errseq_set()
125 errseq_t old = READ_ONCE(*eseq); in errseq_sample() local
128 if (!(old & ERRSEQ_SEEN)) in errseq_sample()
129 old = 0; in errseq_sample()
130 return old; in errseq_sample()
178 errseq_t old, new; in errseq_check_and_advance() local
185 old = READ_ONCE(*eseq); in errseq_check_and_advance()
186 if (old != *since) { in errseq_check_and_advance()
199 new = old | ERRSEQ_SEEN; in errseq_check_and_advance()
200 if (new != old) in errseq_check_and_advance()
201 cmpxchg(eseq, old, new); in errseq_check_and_advance()