Lines Matching refs:page_nr
94 unsigned long page_nr; in locking_thread() local
98 page_nr = -bounces; in locking_thread()
100 page_nr += cpu * nr_pages_per_cpu; in locking_thread()
105 if (getrandom(&page_nr, sizeof(page_nr), 0) != sizeof(page_nr)) in locking_thread()
108 page_nr += 1; in locking_thread()
109 page_nr %= nr_pages; in locking_thread()
110 pthread_mutex_lock(area_mutex(area_dst, page_nr)); in locking_thread()
111 count = *area_count(area_dst, page_nr); in locking_thread()
112 if (count != count_verify[page_nr]) in locking_thread()
114 page_nr, count, count_verify[page_nr]); in locking_thread()
116 *area_count(area_dst, page_nr) = count_verify[page_nr] = count; in locking_thread()
117 pthread_mutex_unlock(area_mutex(area_dst, page_nr)); in locking_thread()
150 unsigned long page_nr, start_nr, mid_nr, end_nr; in background_thread() local
157 for (page_nr = start_nr; page_nr < mid_nr; page_nr++) in background_thread()
158 copy_page_retry(uffd, page_nr * page_size); in background_thread()
173 for (page_nr = mid_nr; page_nr < end_nr; page_nr++) in background_thread()
174 copy_page_retry(uffd, page_nr * page_size); in background_thread()