Home
last modified time | relevance | path

Searched refs:s_wr (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/kern/
H A Dsubr_smr.c218 union s_wr s_wr, old; in smr_lazy_advance() local
227 old._pair = s_wr._pair = atomic_load_acq_64(&s->s_wr._pair); in smr_lazy_advance()
233 d = t - s_wr.ticks; in smr_lazy_advance()
239 s_wr.ticks = t; in smr_lazy_advance()
240 s_wr.seq += d * SMR_SEQ_INCR; in smr_lazy_advance()
247 atomic_cmpset_64(&s->s_wr._pair, old._pair, s_wr._pair); in smr_lazy_advance()
249 return (s_wr.seq + SMR_LAZY_INCR); in smr_lazy_advance()
261 return (atomic_fetchadd_int(&s->s_wr.seq, SMR_SEQ_INCR) + SMR_SEQ_INCR); in smr_shared_advance()
528 s_wr_seq = atomic_load_acq_int(&s->s_wr.seq); in smr_poll()
594 s->s_rd_seq = s->s_wr.seq = SMR_SEQ_INIT; in smr_create()
[all …]
/freebsd/sys/sys/
H A Dsmr.h58 union s_wr { union
67 union s_wr s_wr; /* Write sequence */ member
92 return (atomic_load_int(&s->s_wr.seq)); in smr_shared_current()
/freebsd/tools/uma/smrstress/
H A Dsmrstress.c69 smrs_smr->c_shared->s_wr.seq, smrs_smr->c_shared->s_rd_seq, in smrs_error()