| H A D | vfio_iommu_type1.c | 431 bool lock_cap, long npage) in mm_lock_acct() 438 ret = __account_locked_vm(mm, abs(npage), npage > 0, task, lock_cap); in mm_lock_acct() 443 static int vfio_lock_acct(struct vfio_dma *dma, long npage, bool async) 448 if (!npage) in vfio_lock_acct() 455 ret = mm_lock_acct(dma->task, mm, dma->lock_cap, npage); in vfio_lock_acct() 457 dma->locked_vm += npage; in vfio_lock_acct() 676 unsigned long npage, unsigned long *pfn_base, in vfio_pin_pages_remote() 699 npage = 1; in vfio_pin_pages_remote() 701 while (npage) { in vfio_pin_pages_remote() 432 mm_lock_acct(struct task_struct * task,struct mm_struct * mm,bool lock_cap,long npage) mm_lock_acct() argument 444 vfio_lock_acct(struct vfio_dma * dma,long npage,bool async) vfio_lock_acct() argument 677 vfio_pin_pages_remote(struct vfio_dma * dma,unsigned long vaddr,unsigned long npage,unsigned long * pfn_base,unsigned long limit,struct vfio_batch * batch) vfio_pin_pages_remote() argument 812 put_valid_unreserved_pfns(unsigned long start_pfn,unsigned long npage,int prot) put_valid_unreserved_pfns() argument 819 vfio_unpin_pages_remote(struct vfio_dma * dma,dma_addr_t iova,unsigned long pfn,unsigned long npage,bool do_accounting) vfio_unpin_pages_remote() argument 897 vfio_iommu_type1_pin_pages(void * iommu_data,struct iommu_group * iommu_group,dma_addr_t user_iova,int npage,int prot,struct page ** pages) vfio_iommu_type1_pin_pages() argument 1021 vfio_iommu_type1_unpin_pages(void * iommu_data,dma_addr_t user_iova,int npage) vfio_iommu_type1_unpin_pages() argument 1555 vfio_iommu_map(struct vfio_iommu * iommu,dma_addr_t iova,unsigned long pfn,long npage,int prot) vfio_iommu_map() argument 1588 long npage; vfio_pin_map_dma() local 1653 long npage = dma->locked_vm; vfio_change_dma_owner() local 1862 long npage; vfio_iommu_replay() local [all...] |