Home
last modified time | relevance | path

Searched refs:unmapped (Results 1 – 25 of 54) sorted by relevance

123

/linux/tools/testing/selftests/vfio/lib/
H A Diommu.c152 static int __vfio_iommu_unmap(int fd, u64 iova, u64 size, u32 flags, u64 *unmapped) in __vfio_iommu_unmap() argument
164 if (unmapped) in __vfio_iommu_unmap()
165 *unmapped = args.size; in __vfio_iommu_unmap()
171 u64 *unmapped) in vfio_iommu_unmap() argument
174 region->size, 0, unmapped); in vfio_iommu_unmap()
177 static int __iommufd_unmap(int fd, u64 iova, u64 length, u32 ioas_id, u64 *unmapped) in __iommufd_unmap() argument
189 if (unmapped) in __iommufd_unmap()
190 *unmapped = args.length; in __iommufd_unmap()
196 u64 *unmapped) in iommufd_unmap() argument
199 iommu->ioas_id, unmapped); in iommufd_unmap()
[all …]
/linux/tools/testing/selftests/vfio/
H A Dvfio_dma_mapping_test.c141 u64 unmapped; in TEST_F() local
193 rc = __iommu_unmap(self->iommu, &region, &unmapped); in TEST_F()
195 ASSERT_EQ(unmapped, region.size); in TEST_F()
263 u64 unmapped; in TEST_F() local
269 rc = __iommu_unmap(self->iommu, region, &unmapped); in TEST_F()
271 ASSERT_EQ(unmapped, region->size); in TEST_F()
277 u64 unmapped; in TEST_F() local
283 rc = __iommu_unmap_all(self->iommu, &unmapped); in TEST_F()
285 ASSERT_EQ(unmapped, region->size); in TEST_F()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c246 unsigned idx, unmapped = 0; in msm_gem_shrinker_vmap() local
249 for (idx = 0; lrus[idx] && unmapped < vmap_shrink_limit; idx++) { in msm_gem_shrinker_vmap()
250 unmapped += drm_gem_lru_scan(priv->dev, lrus[idx], in msm_gem_shrinker_vmap()
251 vmap_shrink_limit - unmapped, in msm_gem_shrinker_vmap()
257 *(unsigned long *)ptr += unmapped; in msm_gem_shrinker_vmap()
259 if (unmapped > 0) in msm_gem_shrinker_vmap()
260 trace_msm_gem_purge_vmaps(unmapped); in msm_gem_shrinker_vmap()
H A Dmsm_iommu.c119 ssize_t unmapped; in msm_iommu_pagetable_unmap() local
123 unmapped = ops->unmap_pages(ops, iova, pgsize, count, NULL); in msm_iommu_pagetable_unmap()
124 if (unmapped <= 0) { in msm_iommu_pagetable_unmap()
131 unmapped = PAGE_SIZE; in msm_iommu_pagetable_unmap()
134 iova += unmapped; in msm_iommu_pagetable_unmap()
135 size -= unmapped; in msm_iommu_pagetable_unmap()
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Diommu.h45 int __iommu_unmap(struct iommu *iommu, struct dma_region *region, u64 *unmapped);
52 int __iommu_unmap_all(struct iommu *iommu, u64 *unmapped);
/linux/drivers/accel/rocket/
H A Drocket_gem.c18 size_t unmapped; in rocket_gem_bo_free() local
22 unmapped = iommu_unmap(bo->domain->domain, bo->mm.start, bo->size); in rocket_gem_bo_free()
23 drm_WARN_ON(obj->dev, unmapped != bo->size); in rocket_gem_bo_free()
/linux/drivers/staging/media/ipu3/
H A Dipu3-mmu.c383 size_t unmapped_page, unmapped = 0; in imgu_mmu_unmap() local
402 while (unmapped < size) { in imgu_mmu_unmap()
411 unmapped += unmapped_page; in imgu_mmu_unmap()
416 return unmapped; in imgu_mmu_unmap()
/linux/drivers/iommu/
H A Dvirtio-iommu.c364 size_t unmapped = 0; in viommu_del_mappings() local
384 unmapped += mapping->iova.last - mapping->iova.start + 1; in viommu_del_mappings()
391 return unmapped; in viommu_del_mappings()
891 size_t unmapped; in viommu_unmap_pages() local
896 unmapped = viommu_del_mappings(vdomain, iova, iova + size - 1); in viommu_unmap_pages()
897 if (unmapped < size) in viommu_unmap_pages()
902 return unmapped; in viommu_unmap_pages()
908 .virt_end = cpu_to_le64(iova + unmapped - 1), in viommu_unmap_pages()
912 return ret ? 0 : unmapped; in viommu_unmap_pages()
H A Dio-pgtable-arm-v7s.c627 size_t unmapped = 0, ret; in arm_v7s_unmap_pages() local
637 unmapped += pgsize; in arm_v7s_unmap_pages()
641 return unmapped; in arm_v7s_unmap_pages()
H A Ddma-iommu.c831 size_t unmapped; in __iommu_dma_unmap() local
838 unmapped = iommu_unmap_fast(domain, dma_addr, size, &iotlb_gather); in __iommu_dma_unmap()
839 WARN_ON(unmapped != size); in __iommu_dma_unmap()
2100 size_t unmapped; in dma_iova_unlink() local
2111 unmapped = iommu_unmap_fast(domain, addr, size, &iotlb_gather); in dma_iova_unlink()
2112 WARN_ON(unmapped != size); in dma_iova_unlink()
/linux/mm/
H A Dmigrate_device.c253 unsigned long addr = start, unmapped = 0; in migrate_vma_collect_pmd() local
323 if (unmapped) in migrate_vma_collect_pmd()
369 if (unmapped) in migrate_vma_collect_pmd()
478 unmapped++; in migrate_vma_collect_pmd()
490 if (unmapped) in migrate_vma_collect_pmd()
579 unsigned long unmapped = 0; in migrate_device_unmap() local
590 unmapped++; in migrate_device_unmap()
634 unmapped++; in migrate_device_unmap()
656 return unmapped; in migrate_device_unmap()
H A Dkhugepaged.c1288 int referenced, int unmapped, struct collapse_control *cc, in collapse_huge_page() argument
1327 if (unmapped) { in collapse_huge_page()
1499 unsigned long address, int referenced, int unmapped, in mthp_collapse() argument
1526 nr_occupied_ptes += unmapped; in mthp_collapse()
1533 unmapped, cc, order); in mthp_collapse()
1618 int node = NUMA_NO_NODE, unmapped = 0; in collapse_scan_pmd() local
1664 if (++unmapped > max_ptes_swap) { in collapse_scan_pmd()
1771 (unmapped && referenced < HPAGE_PMD_NR / 2))) { in collapse_scan_pmd()
1782 unmapped, cc, enabled_orders); in collapse_scan_pmd()
1788 none_or_zero, result, unmapped); in collapse_scan_pmd()
/linux/Documentation/features/vm/TLB/
H A Darch-support.txt4 # description: arch supports deferral of TLB flush until multiple pages are unmapped
/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.c21 size_t unmapped_page, unmapped = 0; in etnaviv_context_unmap() local
24 while (unmapped < size) { in etnaviv_context_unmap()
31 unmapped += unmapped_page; in etnaviv_context_unmap()
/linux/drivers/accel/amdxdna/
H A Damdxdna_gem.h22 bool unmapped; member
H A Damdxdna_gem.c274 if (!mapp->unmapped) { in amdxdna_hmm_invalidate()
276 mapp->unmapped = true; in amdxdna_hmm_invalidate()
292 return (!mapp->unmapped && mapp->notifier.mm == mm && in compare_range()
305 if (!mapp->unmapped) { in amdxdna_hmm_unregister()
307 mapp->unmapped = true; in amdxdna_hmm_unregister()
/linux/Documentation/userspace-api/
H A Dtee.rst16 any longer it should be unmapped with munmap() to allow the reuse of
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c474 u64 *unmapped = ctx->arg; in hyp_unmap_walker() local
496 *unmapped += granule; in hyp_unmap_walker()
511 u64 unmapped = 0; in kvm_pgtable_hyp_unmap() local
514 .arg = &unmapped, in kvm_pgtable_hyp_unmap()
522 return unmapped; in kvm_pgtable_hyp_unmap()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-rnbd-server32 When the device is unmapped by that client, the directory will be removed.
H A Dsysfs-block-rnbd9 is using the device. When "force" is used, the device is also unmapped
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_umsch_mm.h112 uint32_t unmapped; member
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-reqbufs.rst67 orphaned and will be freed when they are unmapped or when the exported DMABUF
149 when they are unmapped or when the exported DMABUF fds are closed.
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-zoned.rst180 of unmapped (ie free) random zones, <nr_rnd> the total number of zones,
181 <nr_unmap_seq> the number of unmapped sequential zones, and <nr_seq> the
/linux/Documentation/mm/
H A Dunevictable-lru.rst402 the old page when it is unmapped from the last VM_LOCKED VMA, and set when the
489 For each PTE (or PMD) being unmapped from a VMA, folio_remove_rmap_*() calls
514 for each PTE (or PMD) being unmapped from a VMA, folio_remove_rmap_*() calls
520 present, if one of those pages were unmapped by truncation or hole punch before
523 still appear as PG_mlocked after it has been fully unmapped: and it is left to
/linux/Documentation/admin-guide/mm/damon/
H A Dstart.rst76 unmapped huge regions on the virtual address spaces. The second line shows

123