| /linux/tools/testing/selftests/vfio/lib/ |
| H A D | iommu.c | 152 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 D | vfio_dma_mapping_test.c | 141 u64 unmapped; in TEST_F() local 193 rc = __iommu_unmap(self->iommu, ®ion, &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 D | msm_gem_shrinker.c | 246 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()
|
| /linux/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | iommu.h | 45 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 D | rocket_gem.c | 18 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 D | ipu3-mmu.c | 383 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 D | virtio-iommu.c | 364 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 D | iommu.c | 2731 size_t unmapped_page, unmapped = 0; in __iommu_unmap_domain_pgtbl() local 2757 while (unmapped < size) { in __iommu_unmap_domain_pgtbl() 2760 pgsize = iommu_pgsize(domain, iova, iova, size - unmapped, &count); in __iommu_unmap_domain_pgtbl() 2775 unmapped += unmapped_page; in __iommu_unmap_domain_pgtbl() 2778 return unmapped; in __iommu_unmap_domain_pgtbl() 2786 size_t unmapped; in __iommu_unmap() local 2795 unmapped = pt->ops->unmap_range(pt, iova, size, iotlb_gather); in __iommu_unmap() 2797 unmapped = __iommu_unmap_domain_pgtbl(domain, iova, size, in __iommu_unmap() 2799 trace_unmap(iova, size, unmapped); in __iommu_unmap() 2800 iommu_debug_unmap_end(domain, iova, size, unmapped); in __iommu_unmap() [all …]
|
| H A D | io-pgtable-arm-v7s.c | 627 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 D | dma-iommu.c | 831 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() 2075 size_t unmapped; in __iommu_dma_iova_unlink() local 2087 unmapped = iommu_unmap_fast(domain, addr, size, &iotlb_gather); in __iommu_dma_iova_unlink() 2088 WARN_ON(unmapped != size); in __iommu_dma_iova_unlink()
|
| /linux/mm/ |
| H A D | migrate_device.c | 249 unsigned long addr = start, unmapped = 0; in migrate_vma_collect_pmd() local 316 if (unmapped) in migrate_vma_collect_pmd() 359 if (unmapped) in migrate_vma_collect_pmd() 467 unmapped++; in migrate_vma_collect_pmd() 479 if (unmapped) in migrate_vma_collect_pmd() 568 unsigned long unmapped = 0; in migrate_device_unmap() local 579 unmapped++; in migrate_device_unmap() 623 unmapped++; in migrate_device_unmap() 645 return unmapped; in migrate_device_unmap()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | ioas.c | 344 unsigned long unmapped = 0; in iommufd_ioas_unmap() local 352 rc = iopt_unmap_all(&ioas->iopt, &unmapped); in iommufd_ioas_unmap() 361 &unmapped); in iommufd_ioas_unmap() 364 if (!unmapped) { in iommufd_ioas_unmap() 370 cmd->length = unmapped; in iommufd_ioas_unmap()
|
| /linux/Documentation/features/vm/TLB/ |
| H A D | arch-support.txt | 4 # description: arch supports deferral of TLB flush until multiple pages are unmapped
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_mmu.c | 21 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/Documentation/userspace-api/ |
| H A D | tee.rst | 16 any longer it should be unmapped with munmap() to allow the reuse of
|
| /linux/arch/arm64/kvm/hyp/ |
| H A D | pgtable.c | 474 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/drivers/iommu/generic_pt/ |
| H A D | iommu_pt.h | 972 pt_vaddr_t unmapped; member 1063 unmap->unmapped += log2_mul(num_oas, pt_table_item_lg2sz(&pts)); in __unmap_range() 1085 gather_range_pages(iotlb_gather, iommu_table, iova, unmap.unmapped, in NS() 1088 return unmap.unmapped; in NS()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-rnbd-server | 32 When the device is unmapped by that client, the directory will be removed.
|
| H A D | sysfs-block-rnbd | 9 is using the device. When "force" is used, the device is also unmapped
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_umsch_mm.h | 112 uint32_t unmapped; member
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-reqbufs.rst | 67 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/drivers/remoteproc/ |
| H A D | remoteproc_core.c | 1233 size_t unmapped; in rproc_resource_cleanup() local 1235 unmapped = iommu_unmap(rproc->domain, entry->da, entry->len); in rproc_resource_cleanup() 1236 if (unmapped != entry->len) { in rproc_resource_cleanup() 1239 unmapped); in rproc_resource_cleanup()
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-zoned.rst | 180 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 D | unevictable-lru.rst | 402 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/drivers/gpu/drm/ |
| H A D | drm_gpusvm.c | 1458 if (flags.unmapped) { in drm_gpusvm_get_pages() 1758 range->pages.flags.unmapped = true; in drm_gpusvm_range_set_unmapped()
|