Lines Matching refs:syncp
119 #define u64_stats_init(syncp) seqcount_init(&(syncp)->seq) argument
121 static inline void u64_stats_init(struct u64_stats_sync *syncp) in u64_stats_init() argument
126 static inline void u64_stats_update_begin(struct u64_stats_sync *syncp) in u64_stats_update_begin() argument
129 write_seqcount_begin(&syncp->seq); in u64_stats_update_begin()
133 static inline void u64_stats_update_end(struct u64_stats_sync *syncp) in u64_stats_update_end() argument
136 write_seqcount_end(&syncp->seq); in u64_stats_update_end()
141 u64_stats_update_begin_irqsave(struct u64_stats_sync *syncp) in u64_stats_update_begin_irqsave() argument
147 write_seqcount_begin(&syncp->seq); in u64_stats_update_begin_irqsave()
153 u64_stats_update_end_irqrestore(struct u64_stats_sync *syncp, in u64_stats_update_end_irqrestore() argument
157 write_seqcount_end(&syncp->seq); in u64_stats_update_end_irqrestore()
162 static inline unsigned int __u64_stats_fetch_begin(const struct u64_stats_sync *syncp) in __u64_stats_fetch_begin() argument
165 return read_seqcount_begin(&syncp->seq); in __u64_stats_fetch_begin()
171 static inline unsigned int u64_stats_fetch_begin(const struct u64_stats_sync *syncp) in u64_stats_fetch_begin() argument
176 return __u64_stats_fetch_begin(syncp); in u64_stats_fetch_begin()
179 static inline bool __u64_stats_fetch_retry(const struct u64_stats_sync *syncp, in __u64_stats_fetch_retry() argument
183 return read_seqcount_retry(&syncp->seq, start); in __u64_stats_fetch_retry()
189 static inline bool u64_stats_fetch_retry(const struct u64_stats_sync *syncp, in u64_stats_fetch_retry() argument
195 return __u64_stats_fetch_retry(syncp, start); in u64_stats_fetch_retry()
204 static inline unsigned int u64_stats_fetch_begin_irq(const struct u64_stats_sync *syncp) in u64_stats_fetch_begin_irq() argument
209 return __u64_stats_fetch_begin(syncp); in u64_stats_fetch_begin_irq()
212 static inline bool u64_stats_fetch_retry_irq(const struct u64_stats_sync *syncp, in u64_stats_fetch_retry_irq() argument
218 return __u64_stats_fetch_retry(syncp, start); in u64_stats_fetch_retry_irq()