Home
last modified time | relevance | path

Searched refs:npinned (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/iommu/iommufd/
H A Dpages.c167 rc = check_add_overflow(pages->npinned, npages, &pages->npinned); in iopt_pages_add_npinned()
169 WARN_ON(rc || pages->npinned > pages->npages); in iopt_pages_add_npinned()
176 rc = check_sub_overflow(pages->npinned, npages, &pages->npinned); in iopt_pages_sub_npinned()
178 WARN_ON(rc || pages->npinned > pages->npages); in iopt_pages_sub_npinned()
878 pages->last_npinned = pages->npinned; in do_update_pinned()
890 if (pages->npinned == pages->last_npinned) in update_unpinned()
911 if (pages->npinned == pages->last_npinned) in pfn_reader_user_update_pinned()
914 if (pages->npinned < pages->last_npinned) { in pfn_reader_user_update_pinned()
915 npages = pages->last_npinned - pages->npinned; in pfn_reader_user_update_pinned()
920 npages = pages->npinned - pages->last_npinned; in pfn_reader_user_update_pinned()
[all …]
H A Dio_pagetable.h193 size_t npinned; member
/openbmc/linux/arch/x86/kvm/svm/
H A Dsev.c406 int npinned; in sev_pin_memory() local
443 npinned = pin_user_pages_fast(uaddr, npages, write ? FOLL_WRITE : 0, pages); in sev_pin_memory()
444 if (npinned != npages) { in sev_pin_memory()
456 if (npinned > 0) in sev_pin_memory()
457 unpin_user_pages(pages, npinned); in sev_pin_memory()