Home
last modified time | relevance | path

Searched refs:cur_pages (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/mm/
Dgup_test.c224 long nr_pages, cur_pages, addr, remaining_pages; in pin_longterm_test_start() local
269 cur_pages = pin_user_pages_fast(addr, remaining_pages, in pin_longterm_test_start()
272 cur_pages = pin_user_pages(addr, remaining_pages, in pin_longterm_test_start()
274 if (cur_pages < 0) { in pin_longterm_test_start()
276 ret = cur_pages; in pin_longterm_test_start()
279 pin_longterm_test_nr_pages += cur_pages; in pin_longterm_test_start()
280 pages += cur_pages; in pin_longterm_test_start()
Dzswap.c497 unsigned long cur_pages = zswap_total_pages(); in zswap_check_limits() local
500 if (cur_pages >= max_pages) { in zswap_check_limits()
504 cur_pages <= zswap_accept_thr_pages()) { in zswap_check_limits()
/linux-6.12.1/arch/x86/mm/pat/
Dset_memory.c1382 long cur_pages = 0; in populate_pmd() local
1394 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pmd()
1395 cur_pages = min_t(unsigned int, num_pages, cur_pages); in populate_pmd()
1405 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd()
1413 if (num_pages == cur_pages) in populate_pmd()
1414 return cur_pages; in populate_pmd()
1434 cur_pages += PMD_SIZE >> PAGE_SHIFT; in populate_pmd()
1446 populate_pte(cpa, start, end, num_pages - cur_pages, in populate_pmd()
1457 long cur_pages = 0; in populate_pud() local
1471 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pud()
[all …]
/linux-6.12.1/drivers/iommu/iommufd/
Dpages.c807 unsigned long cur_pages; in incr_user_locked_vm() local
813 cur_pages = atomic_long_read(&pages->source_user->locked_vm); in incr_user_locked_vm()
815 new_pages = cur_pages + npages; in incr_user_locked_vm()
819 &cur_pages, new_pages)); in incr_user_locked_vm()
1687 struct page **cur_pages; in iopt_pages_fill_xarray() local
1690 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray()
1692 span.last_used, cur_pages); in iopt_pages_fill_xarray()
1697 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray()
1699 span.last_used, cur_pages); in iopt_pages_fill_xarray()
1702 cur_pages); in iopt_pages_fill_xarray()
[all …]
/linux-6.12.1/arch/s390/kvm/
Dpci.c207 unsigned long page_limit, cur_pages, new_pages; in account_mem() local
212 cur_pages = atomic_long_read(&user->locked_vm); in account_mem()
213 new_pages = cur_pages + nr_pages; in account_mem()
216 } while (atomic_long_cmpxchg(&user->locked_vm, cur_pages, in account_mem()
217 new_pages) != cur_pages); in account_mem()
/linux-6.12.1/io_uring/
Drsrc.c46 unsigned long page_limit, cur_pages, new_pages; in __io_account_mem() local
54 cur_pages = atomic_long_read(&user->locked_vm); in __io_account_mem()
56 new_pages = cur_pages + nr_pages; in __io_account_mem()
60 &cur_pages, new_pages)); in __io_account_mem()
/linux-6.12.1/drivers/xen/
Dprivcmd.c353 struct page **cur_pages = NULL; in mmap_batch_fn() local
357 cur_pages = &pages[st->index]; in mmap_batch_fn()
362 st->domain, cur_pages); in mmap_batch_fn()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dr100.c909 uint32_t cur_pages; in r100_copy_blit() local
932 cur_pages = num_gpu_pages; in r100_copy_blit()
933 if (cur_pages > 8191) { in r100_copy_blit()
934 cur_pages = 8191; in r100_copy_blit()
936 num_gpu_pages -= cur_pages; in r100_copy_blit()
960 radeon_ring_write(ring, cur_pages | (stride_pixels << 16)); in r100_copy_blit()