Lines Matching defs:access
21 * If access_itree includes the PFN's index then an in-kernel access has
31 * means removing an iommu_domain or releasing a in-kernel access will not fail
1298 * If the range ends in a access then we do the residual unmap without
1534 * iopt_pages_unfill_xarray() - Update the xarry after removing an access
1540 * The access should already be removed from the access_itree.
1570 /* Otherwise covered by an existing access */
1903 * iopt_area_add_access() - Record an in-knerel access for PFNs
1910 * Record that an in-kernel access will be accessing the pages, ensure they are
1920 struct iopt_pages_access *access;
1927 access = iopt_pages_get_exact_access(pages, start_index, last_index);
1928 if (access) {
1930 access->users++;
1937 access = kzalloc(sizeof(*access), GFP_KERNEL_ACCOUNT);
1938 if (!access) {
1947 access->node.start = start_index;
1948 access->node.last = last_index;
1949 access->users = 1;
1951 interval_tree_insert(&access->node, &pages->access_itree);
1956 kfree(access);
1963 * iopt_area_remove_access() - Release an in-kernel access for PFNs
1975 struct iopt_pages_access *access;
1978 access = iopt_pages_get_exact_access(pages, start_index, last_index);
1979 if (WARN_ON(!access))
1982 WARN_ON(area->num_accesses == 0 || access->users == 0);
1984 access->users--;
1985 if (access->users)
1988 interval_tree_remove(&access->node, &pages->access_itree);
1990 kfree(access);