Lines Matching refs:seqlock
131 struct seqlock { struct
136 typedef struct seqlock seqlock_t; argument
139 seqlock_init(struct seqlock *seqlock) in seqlock_init() argument
142 mutex_init(&seqlock->sql_lock, MUTEX_DEFAULT, IPL_VM); in seqlock_init()
143 seqcount_init(&seqlock->sql_count); in seqlock_init()
147 seqlock_destroy(struct seqlock *seqlock) in seqlock_destroy() argument
150 seqcount_destroy(&seqlock->sql_count); in seqlock_destroy()
151 mutex_destroy(&seqlock->sql_lock); in seqlock_destroy()
155 write_seqlock(struct seqlock *seqlock) in write_seqlock() argument
158 mutex_spin_enter(&seqlock->sql_lock); in write_seqlock()
159 write_seqcount_begin(&seqlock->sql_count); in write_seqlock()
163 write_sequnlock(struct seqlock *seqlock) in write_sequnlock() argument
166 write_seqcount_end(&seqlock->sql_count); in write_sequnlock()
167 mutex_spin_exit(&seqlock->sql_lock); in write_sequnlock()
181 read_seqbegin(const struct seqlock *seqlock) in read_seqbegin() argument
184 return read_seqcount_begin(&seqlock->sql_count); in read_seqbegin()
188 read_seqretry(const struct seqlock *seqlock, unsigned gen) in read_seqretry() argument
191 return read_seqcount_retry(&seqlock->sql_count, gen); in read_seqretry()