Searched refs:npinned (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/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() 878 pages->last_npinned = pages->npinned; in do_update_pinned() 888 if (WARN_ON(pages->npinned > pages->last_npinned)) in update_unpinned() 890 if (pages->npinned == pages->last_npinned) in update_unpinned() 892 do_update_pinned(pages, pages->last_npinned - pages->npinned, false, 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() [all …]
|
D | io_pagetable.h | 193 size_t npinned; member
|
/linux-6.6.21/arch/x86/kvm/svm/ |
D | sev.c | 399 int npinned; in sev_pin_memory() local 436 npinned = pin_user_pages_fast(uaddr, npages, write ? FOLL_WRITE : 0, pages); in sev_pin_memory() 437 if (npinned != npages) { in sev_pin_memory() 449 if (npinned > 0) in sev_pin_memory() 450 unpin_user_pages(pages, npinned); in sev_pin_memory()
|