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