Searched refs:npinned (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/iommu/iommufd/ |
D | pages.c | 167 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() 879 pages->last_npinned = pages->npinned; in do_update_pinned() 889 if (WARN_ON(pages->npinned > pages->last_npinned)) in update_unpinned() 891 if (pages->npinned == pages->last_npinned) in update_unpinned() 893 do_update_pinned(pages, pages->last_npinned - pages->npinned, false, in update_unpinned() 912 if (pages->npinned == pages->last_npinned) in pfn_reader_user_update_pinned() 915 if (pages->npinned < pages->last_npinned) { in pfn_reader_user_update_pinned() [all …]
|
D | io_pagetable.h | 193 size_t npinned; member
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | sev.c | 634 int npinned; in sev_pin_memory() local 671 npinned = pin_user_pages_fast(uaddr, npages, write ? FOLL_WRITE : 0, pages); in sev_pin_memory() 672 if (npinned != npages) { in sev_pin_memory() 684 if (npinned > 0) in sev_pin_memory() 685 unpin_user_pages(pages, npinned); in sev_pin_memory()
|