Home
last modified time | relevance | path

Searched refs:last_iova (Results 1 – 4 of 4) sorted by relevance

/drivers/iommu/iommufd/
Dio_pagetable.h149 unsigned long last_iova; member
155 unsigned long last_iova);
160 return iter->area && iter->last_iova <= iopt_area_last_iova(iter->area); in iopt_area_contig_done()
168 #define iopt_for_each_contig_area(iter, area, iopt, iova, last_iova) \ argument
169 for (area = iopt_area_contig_init(iter, iopt, iova, last_iova); area; \
Ddevice.c914 unsigned long last_iova; in iommufd_access_unpin_pages() local
918 WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) in iommufd_access_unpin_pages()
933 iopt_for_each_contig_area(&iter, area, iopt, iova, last_iova) in iommufd_access_unpin_pages()
938 min(last_iova, iopt_area_last_iova(area)))); in iommufd_access_unpin_pages()
989 unsigned long last_iova; in iommufd_access_pin_pages() local
1000 if (check_add_overflow(iova, length - 1, &last_iova)) in iommufd_access_pin_pages()
1011 iopt_for_each_contig_area(&iter, area, iopt, iova, last_iova) { in iommufd_access_pin_pages()
1012 unsigned long last = min(last_iova, iopt_area_last_iova(area)); in iommufd_access_pin_pages()
1045 last_iova = iter.cur_iova - 1; in iommufd_access_pin_pages()
1046 iopt_for_each_contig_area(&iter, area, iopt, iova, last_iova) in iommufd_access_pin_pages()
[all …]
Dio_pagetable.c33 unsigned long last_iova) in iopt_area_contig_init() argument
38 iter->last_iova = last_iova; in iopt_area_contig_init()
51 unsigned long last_iova; in iopt_area_contig_next() local
55 last_iova = iopt_area_last_iova(iter->area); in iopt_area_contig_next()
56 if (iter->last_iova <= last_iova) in iopt_area_contig_next()
59 iter->cur_iova = last_iova + 1; in iopt_area_contig_next()
61 iter->last_iova); in iopt_area_contig_next()
431 unsigned long last_iova; in iopt_get_pages() local
437 if (check_add_overflow(iova, length - 1, &last_iova)) in iopt_get_pages()
441 iopt_for_each_contig_area(&iter, area, iopt, iova, last_iova) { in iopt_get_pages()
[all …]
Dpages.c479 unsigned long last_iova = iopt_area_last_iova(area); in batch_to_domain() local
493 next_iova = min(last_iova + 1, in batch_to_domain()