Lines Matching refs:index
6 * based and has npages in it. Accessors use 'index' to refer to the entry in
18 * The storage locations of the PFN's index are tracked in the two interval
19 * trees. If no interval includes the index then it is not pinned.
21 * If access_itree includes the PFN's index then an in-kernel access has
25 * If the domains_itree includes the PFN's index then an iommu_domain is storing
28 * the PFN's index.
45 * last_iova + 1 can overflow. An iopt_pages index will always be much less than
193 * index is the number of PAGE_SIZE units from the start of the area's
198 unsigned long index)
201 WARN_ON(index < iopt_area_index(area) ||
202 index > iopt_area_last_index(area));
203 index -= iopt_area_index(area);
204 if (index == 0)
206 return iopt_area_iova(area) - area->page_offset + index * PAGE_SIZE;
210 unsigned long index)
213 WARN_ON(index < iopt_area_index(area) ||
214 index > iopt_area_last_index(area));
215 if (index == iopt_area_last_index(area))
218 (index - iopt_area_index(area) + 1) * PAGE_SIZE - 1;
250 unsigned long index)
254 node = interval_tree_iter_first(&pages->domains_itree, index, index);
487 /* The first index might be a partial page */
1415 unsigned long index;
1432 xa_for_each(&area->iopt->domains, index, domain) {
1457 if (unmap_index < index)
1496 unsigned long index;
1504 xa_for_each(&iopt->domains, index, domain)
1536 * @start_index: Starting PFN index
1537 * @last_index: Last PFN index
1580 * @start_index: The first page index in the range
1581 * @last_index: The last page index in the range
1660 * @start_index: The first page index in the range
1661 * @last_index: The last page index in the range
1784 static int iopt_pages_rw_page(struct iopt_pages *pages, unsigned long index,
1792 return iopt_pages_rw_slow(pages, index, index, offset, data,
1802 pages->source_mm, (uintptr_t)(pages->uptr + index * PAGE_SIZE),
1886 iopt_pages_get_exact_access(struct iopt_pages *pages, unsigned long index,
1894 for (node = interval_tree_iter_first(&pages->access_itree, index, last);
1895 node; node = interval_tree_iter_next(node, index, last))
1896 if (node->start == index && node->last == last)
1905 * @start_index: First page index
1906 * @last_index: Inclusive last page index
1965 * @start_index: First page index
1966 * @last_index: Inclusive last page index