Lines Matching refs:seqcount
64 typedef struct seqcount { struct
178 seqcount_init(&____s->seqcount); \
200 seqcount_t seqcount; \
207 return &s->seqcount; \
213 unsigned seq = READ_ONCE(s->seqcount.sequence); \
226 seq = READ_ONCE(s->seqcount.sequence); \
286 .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
648 seqcount_t seqcount; member
656 .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
663 #define seqcount_latch_init(s) seqcount_init(&(s)->seqcount)
682 return READ_ONCE(s->seqcount.sequence); in raw_read_seqcount_latch()
696 return unlikely(READ_ONCE(s->seqcount.sequence) != start); in raw_read_seqcount_latch_retry()
783 s->seqcount.sequence++; in raw_write_seqcount_latch()
802 seqcount_spinlock_t seqcount; member
808 .seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
819 seqcount_spinlock_init(&(sl)->seqcount, &(sl)->lock); \
837 unsigned ret = read_seqcount_begin(&sl->seqcount); in read_seqbegin()
863 return read_seqcount_retry(&sl->seqcount, start); in read_seqretry()
888 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock()
900 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock()
914 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock_bh()
927 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_bh()
941 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock_irq()
953 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_irq()
962 do_write_seqcount_begin(&sl->seqcount.seqcount); in __write_seqlock_irqsave()
991 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_irqrestore()