Home
last modified time | relevance | path

Searched refs:unmapped (Results 1 – 25 of 58) 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.c252 unsigned idx, unmapped = 0; in msm_gem_shrinker_vmap()
255 for (idx = 0; lrus[idx] && unmapped < vmap_shrink_limit; idx++) { in msm_gem_shrinker_vmap()
256 unmapped += drm_gem_lru_scan(priv->dev, lrus[idx], in msm_gem_shrinker_vmap()
257 vmap_shrink_limit - unmapped, in msm_gem_shrinker_vmap()
262 *(unsigned long *)ptr += unmapped; in msm_gem_shrinker_vmap()
264 if (unmapped > 0)
265 trace_msm_gem_purge_vmaps(unmapped);
246 unsigned idx, unmapped = 0; msm_gem_shrinker_vmap() local
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(vm->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.c359 * On success, returns the number of unmapped bytes
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()
[all...]
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.c832 size_t unmapped; in __iommu_dma_unmap()
839 unmapped = iommu_unmap_fast(domain, dma_addr, size, &iotlb_gather); in __iommu_dma_unmap()
840 WARN_ON(unmapped != size); in __iommu_dma_unmap()
2121 size_t unmapped;
2132 unmapped = iommu_unmap_fast(domain, addr, size, &iotlb_gather); in dma_iova_destroy()
2133 WARN_ON(unmapped != size); in dma_iova_destroy()
831 size_t unmapped; __iommu_dma_unmap() local
2100 size_t unmapped; dma_iova_unlink() local
/linux/mm/
H A Dmigrate_device.c234 unsigned long addr = start, unmapped = 0; in migrate_vma_collect_huge_pmd()
251 if (unmapped) in migrate_vma_collect_pmd()
311 if (unmapped) in migrate_vma_collect_pmd()
357 if (unmapped) in migrate_vma_collect_pmd()
466 unmapped++; in migrate_vma_collect_pmd()
478 if (unmapped) in migrate_vma_collect_pmd()
588 unsigned long unmapped = 0; in migrate_device_unmap()
599 unmapped++; in migrate_device_unmap()
643 unmapped++; in migrate_device_unmap()
666 return unmapped;
253 unsigned long addr = start, unmapped = 0; migrate_vma_collect_pmd() local
579 unsigned long unmapped = 0; migrate_device_unmap() local
[all...]
H A Dkhugepaged.c197 * any unmapped ptes in turn potentially increasing the memory in pages_to_scan_store()
1043 * Anon VMA expected, the address may be unmapped then in collapse_find_target_node()
1342 * hold prevent anybody from stumbling over such temporarily unmapped in collapse_huge_page()
1598 int node = NUMA_NO_NODE, unmapped = 0; in mthp_collapse()
1644 if (++unmapped > max_ptes_swap) { in collapse_scan_pmd()
1758 (unmapped && referenced < HPAGE_PMD_NR / 2))) { in collapse_scan_pmd()
1768 cc->scan_unmapped = unmapped; in collapse_scan_pmd()
1772 none_or_zero, result, unmapped); in collapse_scan_pmd()
2157 /* PTEs were notified when unmapped; but now for the PMD? */ in retract_page_tables()
2448 * At this point, the folio is locked and unmapped in collapse_file()
1288 collapse_huge_page(struct mm_struct * mm,unsigned long start_addr,int referenced,int unmapped,struct collapse_control * cc,unsigned int order) collapse_huge_page() argument
1499 mthp_collapse(struct mm_struct * mm,unsigned long address,int referenced,int unmapped,struct collapse_control * cc,unsigned long enabled_orders) mthp_collapse() argument
1618 int node = NUMA_NO_NODE, unmapped = 0; collapse_scan_pmd() local
[all...]
/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.h21 bool unmapped;
22 bool unmapped; global() member
H A Damdxdna_gem.c239 if (mapp->unmapped) in amdxdna_gem_dev_addr()
257 mapp->unmapped = true; in amdxdna_hmm_invalidate()
273 return (!mapp->unmapped && mapp->notifier.mm == mm && in amdxdna_hmm_invalidate()
288 mapp->unmapped = true; in compare_range()
302 if (!force && !mapp->unmapped) in amdxdna_hmm_unregister()
305 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.c437 * would leave the rest of the block unmapped. in hyp_map_walker()
484 u64 *unmapped = ctx->arg; in hyp_unmap_walker()
506 *unmapped += granule; in hyp_unmap_walker()
521 u64 unmapped = 0; in kvm_pgtable_hyp_unmap()
524 .arg = &unmapped,
532 return unmapped; in kvm_pgtable_hyp_init()
474 u64 *unmapped = ctx->arg; hyp_unmap_walker() local
511 u64 unmapped = 0; kvm_pgtable_hyp_unmap() local
/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/translations/zh_CN/mm/damon/
H A Ddesign.rst620 - unmapped
/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

123