Searched refs:cur_pages (Results 1 – 6 of 6) sorted by relevance
| /linux/mm/ |
| H A D | gup_test.c | 232 long nr_pages, cur_pages, addr, remaining_pages; in pin_longterm_test_start() local 277 cur_pages = pin_user_pages_fast(addr, remaining_pages, in pin_longterm_test_start() 280 cur_pages = pin_user_pages(addr, remaining_pages, in pin_longterm_test_start() 282 if (cur_pages < 0) { in pin_longterm_test_start() 284 ret = cur_pages; in pin_longterm_test_start() 287 data->longterm_nr_pages += cur_pages; in pin_longterm_test_start() 288 pages += cur_pages; in pin_longterm_test_start()
|
| H A D | secretmem.c | 60 unsigned long page_limit, cur_pages, new_pages; in __secretmem_account_pages() local 67 cur_pages = atomic_long_read(&user->locked_vm); in __secretmem_account_pages() 69 new_pages = cur_pages + nr_pages; in __secretmem_account_pages() 73 &cur_pages, new_pages)); in __secretmem_account_pages()
|
| H A D | zswap.c | 511 unsigned long cur_pages = zswap_total_pages(); in zswap_check_limits() local 514 if (cur_pages >= max_pages) { in zswap_check_limits() 518 cur_pages <= zswap_accept_thr_pages()) { in zswap_check_limits()
|
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 1606 long cur_pages = 0; in populate_pmd() local 1618 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pmd() 1619 cur_pages = min_t(unsigned int, num_pages, cur_pages); in populate_pmd() 1629 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd() 1637 if (num_pages == cur_pages) in populate_pmd() 1638 return cur_pages; in populate_pmd() 1658 cur_pages += PMD_SIZE >> PAGE_SHIFT; in populate_pmd() 1670 populate_pte(cpa, start, end, num_pages - cur_pages, in populate_pmd() 1681 long cur_pages = 0; in populate_pud() local 1695 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pud() [all …]
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 959 unsigned long cur_pages; in incr_user_locked_vm() local 965 cur_pages = atomic_long_read(&pages->source_user->locked_vm); in incr_user_locked_vm() 967 new_pages = cur_pages + npages; in incr_user_locked_vm() 971 &cur_pages, new_pages)); in incr_user_locked_vm() 2201 struct page **cur_pages; in iopt_pages_fill_xarray() local 2204 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray() 2206 span.last_used, cur_pages); in iopt_pages_fill_xarray() 2211 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray() 2213 span.last_used, cur_pages); in iopt_pages_fill_xarray() 2216 cur_pages); in iopt_pages_fill_xarray() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | r100.c | 910 uint32_t cur_pages; in r100_copy_blit() local 933 cur_pages = num_gpu_pages; in r100_copy_blit() 934 if (cur_pages > 8191) { in r100_copy_blit() 935 cur_pages = 8191; in r100_copy_blit() 937 num_gpu_pages -= cur_pages; in r100_copy_blit() 965 radeon_ring_write(ring, cur_pages | (stride_pixels << 16)); in r100_copy_blit()
|