Home
last modified time | relevance | path

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

/openbmc/qemu/hw/s390x/
H A Ds390-skeys.c195 const uint64_t cur_pages = MIN(pages, S390_SKEYS_BUFFER_SIZE); in qmp_dump_skeys() local
197 ret = skeyclass->get_skeys(ss, gfn, cur_pages, buf); in qmp_dump_skeys()
204 write_keys(f, buf, gfn, cur_pages, &lerr); in qmp_dump_skeys()
209 gfn += cur_pages; in qmp_dump_skeys()
210 pages -= cur_pages; in qmp_dump_skeys()
361 const uint64_t cur_pages = MIN(pages, S390_SKEYS_BUFFER_SIZE); in s390_storage_keys_save() local
364 error = skeyclass->get_skeys(ss, gfn, cur_pages, buf); in s390_storage_keys_save()
375 qemu_put_buffer(f, buf, cur_pages); in s390_storage_keys_save()
376 gfn += cur_pages; in s390_storage_keys_save()
377 pages -= cur_pages; in s390_storage_keys_save()
/openbmc/linux/mm/
H A 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()
/openbmc/linux/arch/x86/mm/pat/
H A Dset_memory.c1379 long cur_pages = 0; in populate_pmd() local
1391 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pmd()
1392 cur_pages = min_t(unsigned int, num_pages, cur_pages); in populate_pmd()
1402 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd()
1410 if (num_pages == cur_pages) in populate_pmd()
1411 return cur_pages; in populate_pmd()
1431 cur_pages += PMD_SIZE >> PAGE_SHIFT; in populate_pmd()
1443 populate_pte(cpa, start, end, num_pages - cur_pages, in populate_pmd()
1454 long cur_pages = 0; in populate_pud() local
1468 cur_pages = (pre_end - start) >> PAGE_SHIFT; in populate_pud()
[all …]
/openbmc/linux/drivers/iommu/iommufd/
H A 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()
814 new_pages = cur_pages + npages; in incr_user_locked_vm()
817 } while (atomic_long_cmpxchg(&pages->source_user->locked_vm, cur_pages, in incr_user_locked_vm()
818 new_pages) != cur_pages); in incr_user_locked_vm()
1686 struct page **cur_pages; in iopt_pages_fill_xarray() local
1689 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray()
1691 span.last_used, cur_pages); in iopt_pages_fill_xarray()
1696 cur_pages = out_pages + (span.start_used - start_index); in iopt_pages_fill_xarray()
1698 span.last_used, cur_pages); in iopt_pages_fill_xarray()
[all …]
/openbmc/linux/arch/s390/kvm/
H A 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()
/openbmc/linux/io_uring/
H A Drsrc.c43 unsigned long page_limit, cur_pages, new_pages; in __io_account_mem() local
51 cur_pages = atomic_long_read(&user->locked_vm); in __io_account_mem()
53 new_pages = cur_pages + nr_pages; in __io_account_mem()
57 &cur_pages, new_pages)); in __io_account_mem()
/openbmc/linux/drivers/xen/
H A Dprivcmd.c346 struct page **cur_pages = NULL; in mmap_batch_fn() local
350 cur_pages = &pages[st->index]; in mmap_batch_fn()
355 st->domain, cur_pages); in mmap_batch_fn()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dr100.c908 uint32_t cur_pages; in r100_copy_blit() local
931 cur_pages = num_gpu_pages; in r100_copy_blit()
932 if (cur_pages > 8191) { in r100_copy_blit()
933 cur_pages = 8191; in r100_copy_blit()
935 num_gpu_pages -= cur_pages; in r100_copy_blit()
959 radeon_ring_write(ring, cur_pages | (stride_pixels << 16)); in r100_copy_blit()