Lines Matching refs:iopt_pages

163 static void iopt_pages_add_npinned(struct iopt_pages *pages, size_t npages)  in iopt_pages_add_npinned()
172 static void iopt_pages_sub_npinned(struct iopt_pages *pages, size_t npages) in iopt_pages_sub_npinned()
181 static void iopt_pages_err_unpin(struct iopt_pages *pages, in iopt_pages_err_unpin()
249 static struct iopt_area *iopt_pages_find_domain_area(struct iopt_pages *pages, in iopt_pages_find_domain_area()
625 static void batch_unpin(struct pfn_batch *batch, struct iopt_pages *pages, in batch_unpin()
709 struct iopt_pages *pages) in pfn_reader_user_init()
722 struct iopt_pages *pages) in pfn_reader_user_destroy()
737 struct iopt_pages *pages, in pfn_reader_user_pin()
804 static int incr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in incr_user_locked_vm()
823 static void decr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in decr_user_locked_vm()
831 static int update_mm_locked_vm(struct iopt_pages *pages, unsigned long npages, in update_mm_locked_vm()
858 static int do_update_pinned(struct iopt_pages *pages, unsigned long npages, in do_update_pinned()
887 static void update_unpinned(struct iopt_pages *pages) in update_unpinned()
905 struct iopt_pages *pages) in pfn_reader_user_update_pinned()
938 struct iopt_pages *pages;
962 struct iopt_pages *pages = pfns->pages; in pfn_reader_unpin()
1063 static int pfn_reader_init(struct pfn_reader *pfns, struct iopt_pages *pages, in pfn_reader_init()
1094 struct iopt_pages *pages = pfns->pages; in pfn_reader_release_pins()
1114 struct iopt_pages *pages = pfns->pages; in pfn_reader_destroy()
1122 static int pfn_reader_first(struct pfn_reader *pfns, struct iopt_pages *pages, in pfn_reader_first()
1142 struct iopt_pages *iopt_alloc_pages(void __user *uptr, unsigned long length, in iopt_alloc_pages()
1145 struct iopt_pages *pages; in iopt_alloc_pages()
1184 struct iopt_pages *pages = container_of(kref, struct iopt_pages, kref); in iopt_release_pages()
1199 struct iopt_pages *pages, struct iommu_domain *domain, in iopt_area_unpin_domain()
1259 struct iopt_pages *pages, in __iopt_area_unfill_domain()
1311 struct iopt_pages *pages, in iopt_area_unfill_partial_domain()
1343 void iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages, in iopt_area_unfill_domain()
1409 int iopt_area_fill_domains(struct iopt_area *area, struct iopt_pages *pages) in iopt_area_fill_domains()
1493 void iopt_area_unfill_domains(struct iopt_area *area, struct iopt_pages *pages) in iopt_area_unfill_domains()
1521 struct iopt_pages *pages, in iopt_pages_unpin_xarray()
1543 void iopt_pages_unfill_xarray(struct iopt_pages *pages, in iopt_pages_unfill_xarray()
1591 void iopt_pages_fill_from_xarray(struct iopt_pages *pages, in iopt_pages_fill_from_xarray()
1611 static int iopt_pages_fill_from_domain(struct iopt_pages *pages, in iopt_pages_fill_from_domain()
1633 static int iopt_pages_fill_from_mm(struct iopt_pages *pages, in iopt_pages_fill_from_mm()
1672 int iopt_pages_fill_xarray(struct iopt_pages *pages, unsigned long start_index, in iopt_pages_fill_xarray()
1744 static int iopt_pages_rw_slow(struct iopt_pages *pages, in iopt_pages_rw_slow()
1785 static int iopt_pages_rw_page(struct iopt_pages *pages, unsigned long index, in iopt_pages_rw_page()
1832 int iopt_pages_rw_access(struct iopt_pages *pages, unsigned long start_byte, in iopt_pages_rw_access()
1887 iopt_pages_get_exact_access(struct iopt_pages *pages, unsigned long index, in iopt_pages_get_exact_access()
1920 struct iopt_pages *pages = area->pages; in iopt_area_add_access()
1975 struct iopt_pages *pages = area->pages; in iopt_area_remove_access()