Lines Matching full:sync

95 	rb->mem = rb->subm = rb->sync = rb->l2p_update = 0;  in pblk_rb_init()
195 unsigned int sync = READ_ONCE(rb->sync); in pblk_rb_space() local
197 return pblk_rb_ring_space(rb, mem, sync, rb->nr_entries); in pblk_rb_space()
221 unsigned int sync = READ_ONCE(rb->sync); in pblk_rb_sync_count() local
223 return pblk_rb_ring_count(mem, sync, rb->nr_entries); in pblk_rb_sync_count()
280 unsigned int mem, unsigned int sync) in pblk_rb_update_l2p() argument
307 unsigned int sync; in pblk_rb_sync_l2p() local
313 sync = smp_load_acquire(&rb->sync); in pblk_rb_sync_l2p()
315 to_update = pblk_rb_ring_count(sync, rb->l2p_update, rb->nr_entries); in pblk_rb_sync_l2p()
390 unsigned int sync, flush_point; in pblk_rb_flush_point_set() local
393 sync = READ_ONCE(rb->sync); in pblk_rb_flush_point_set()
395 if (pos == sync) { in pblk_rb_flush_point_set()
422 unsigned int sync; in __pblk_rb_may_write() local
425 sync = READ_ONCE(rb->sync); in __pblk_rb_may_write()
430 if (pblk_rb_ring_space(rb, mem, sync, rb->nr_entries) < threshold) in __pblk_rb_may_write()
433 if (pblk_rb_update_l2p(rb, nr_entries, mem, sync)) in __pblk_rb_may_write()
699 return rb->sync; in pblk_rb_sync_init()
715 unsigned int sync, flush_point; in pblk_rb_sync_advance() local
718 sync = READ_ONCE(rb->sync); in pblk_rb_sync_advance()
724 secs_to_flush = pblk_rb_ring_count(flush_point, sync, in pblk_rb_sync_advance()
732 sync = pblk_rb_ptr_wrap(rb, sync, nr_entries); in pblk_rb_sync_advance()
735 smp_store_release(&rb->sync, sync); in pblk_rb_sync_advance()
737 return sync; in pblk_rb_sync_advance()
743 unsigned int subm, sync, flush_point; in pblk_rb_flush_point_count() local
752 sync = smp_load_acquire(&rb->sync); in pblk_rb_flush_point_count()
755 submitted = pblk_rb_ring_count(subm, sync, rb->nr_entries); in pblk_rb_flush_point_count()
757 /* The sync point itself counts as a sector to sync */ in pblk_rb_flush_point_count()
758 to_flush = pblk_rb_ring_count(flush_point, sync, rb->nr_entries) + 1; in pblk_rb_flush_point_count()
772 if ((rb->mem == rb->subm) && (rb->subm == rb->sync) && in pblk_rb_tear_down_check()
773 (rb->sync == rb->l2p_update) && in pblk_rb_tear_down_check()
827 rb->sync, in pblk_rb_sysfs()
845 rb->sync, in pblk_rb_sysfs()